gui\Application::waitCommand PHP Méthode

waitCommand() public méthode

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

Usage Example

Exemple #1
0
 /**
  * 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]);
 }