gui\Application::waitCommand PHP Method

waitCommand() public method

Send a command and wait the return
public waitCommand ( string $method, array $params ) : mixed
$method string the method name
$params array the method params
return mixed
    public function waitCommand($method, array $params)
    {
        $message = new CommandMessage($method, $params);
        return $this->sender->waitReturn($message);
    }

Usage Example

コード例 #1
0
ファイル: Object.php プロジェクト: gabrielrcouto/php-gui
 /**
  * This magic method is used to send the IPC message when a property is get
  *
  * @param string $name Property name
  *
  * @return mixed
  */
 protected function get($name)
 {
     return $this->application->waitCommand('getObjectProperty', [$this->lazarusObjectId, $name]);
 }