log invalid calls to Monitor Object
This commit is contained in:
parent
98fab6528d
commit
0f1a1a6294
|
@ -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 ) ) {
|
||||
|
|
Loading…
Reference in New Issue