log invalid calls to Monitor Object

This commit is contained in:
Isaac Connor 2016-06-14 12:38:17 -04:00
parent 98fab6528d
commit 0f1a1a6294
1 changed files with 6 additions and 1 deletions

View File

@ -53,7 +53,9 @@ class Monitor {
return $this->{$fn};
#array_unshift($args, $this);
#call_user_func_array( $this->{$fn}, $args);
}
} else {
Warning( "Unknown function call Monitor->$fn" );
}
}
public function getStreamSrc( $args, $querySep='&' ) {
if ( isset($this->{'ServerId'}) and $this->{'ServerId'} ) {
@ -88,18 +90,21 @@ class Monitor {
return( $streamSrc );
} // end function getStreamSrc
public function Width() {
if ( $this->Orientation() == '90' or $this->Orientation() == '270' ) {
return $this->{'Height'};
}
return $this->{'Width'};
}
public function Height() {
if ( $this->Orientation() == '90' or $this->Orientation() == '270' ) {
return $this->{'Width'};
}
return $this->{'Height'};
}
public function set( $data ) {
foreach ($data as $k => $v) {
if ( is_array( $v ) ) {