Property | Type | Description | |
---|---|---|---|
$defaultApplication | The application object | ||
$process | React\ChildProcess\Process | The object responsible to manage the lazarus process |
Property | Type | Description | |
---|---|---|---|
$eventHandlers | array | The internal array of all callbacks | |
$loop | React\EventLoop\LoopInterface | The application loop | |
$objectId | integer | The next object ID available | |
$objects | array | The internal array of all Components Objects in this application | |
$receiver | The responsible object to receive the communication messages | ||
$running | boolean | Defines if the application is running | |
$sender | The responsible object to sent the communication messages | ||
$verboseLevel | integer | The verbose level | |
$window | The 1st Window of the Application |
Method | Description | |
---|---|---|
__construct ( array $defaultAttributes = [], React\EventLoop\LoopInterface $loop = null ) : void | The constructor method | |
__unset ( $objectId ) : void | Unset the object referency from the stack | |
addObject ( |
Put a object to the internal objects array | |
alert ( mixed $message, string $title = '' ) : void | Shows an alert dialog | |
destroyObject ( |
Destroy a object | |
fire ( string $eventName ) : void | Fire an application event | |
getLoop ( ) : React\EventLoop\LoopInterface | Get the event loop | |
getNextObjectId ( ) : integer | Returns the next avaible object ID | |
getObject ( integer $id ) : |
Get a object from the internal objects array | |
getVerboseLevel ( ) : integer | Returns the verbose level | |
getWindow ( ) : |
Returns the 1st Window of the Application | |
on ( string $eventName, callable $eventHandler ) : void | Returns the next avaible object ID | |
ping ( ) : float | Returns the communication time between php and lazarus | |
run ( ) : void | Runs the application | |
sendCommand ( string $method, array $params, callable $callback ) : void | Send a command | |
sendEvent ( string $method, array $params ) : void | Send an event | |
setVerboseLevel ( integer $verboseLevel ) : void | Set the verbose level | |
waitCommand ( string $method, array $params ) : mixed | Send a command and wait the return |
public __construct ( array $defaultAttributes = [], React\EventLoop\LoopInterface $loop = null ) : void | ||
$defaultAttributes | array | |
$loop | React\EventLoop\LoopInterface | |
return | void |
public destroyObject ( |
||
$object | Component Object | |
return | void |
public getLoop ( ) : React\EventLoop\LoopInterface | ||
return | React\EventLoop\LoopInterface |
public getNextObjectId ( ) : integer | ||
return | integer |
public getVerboseLevel ( ) : integer | ||
return | integer |
public getWindow ( ) : |
||
return |
public setVerboseLevel ( integer $verboseLevel ) : void | ||
$verboseLevel | integer | |
return | void |
public static Application,gui $defaultApplication | ||
return |
protected array $eventHandlers | ||
return | array |
protected LoopInterface,React\EventLoop $loop | ||
return | React\EventLoop\LoopInterface |
protected array $objects | ||
return | array |
public Process,React\ChildProcess $process | ||
return | React\ChildProcess\Process |
protected Receiver,Gui\Ipc $receiver | ||
return |
protected bool $running | ||
return | boolean |
protected Sender,Gui\Ipc $sender | ||
return |