Пример #1
0
 /**
  * @param Plugin $owner
  * @param str $callable - method from $owner to call
  * @param array	$remote - Array containing $host,$port,$auth data
  * @param str $cmd - remote command to execute
  * @param array $args	- extra arguments to pass to callback method
  */
 public function __construct(Plugin $owner, $callable, array $remote, $cmd, array $args = [])
 {
     parent::__construct($owner, $callable, $args);
     $this->server = $remote;
     $this->cmd = $cmd;
     $this->sock = false;
 }
Пример #2
0
 /**
  * @param Plugin	$owner
  * @param str 		$callable		method from $owner to call
  * @param str			$host				host to query
  * @param int			$port				port of host to query
  * @param array   $args				arguments to pass to callback method
  */
 public function __construct(Plugin $owner, $callable, $host, $port = 19132, array $args = [])
 {
     parent::__construct($owner, $callable, $args);
     $this->host = $host;
     $this->port = $port;
 }