add Server function

pull/1207/head
Isaac Connor 2015-12-02 11:21:04 -05:00
parent 70fb6a6786
commit 961dc90b0e
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,9 @@ class Monitor {
Error("No row for Monitor " . $IdOrRow );
}
} // end function __construct
public function Server() {
return new Server( $this->{'ServerId'} );
}
public function __call( $fn, array $args){
if(isset($this->{$fn})){
return $this->{$fn};