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