프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$defaultApplication | The application object | ||
$process | React\ChildProcess\Process | The object responsible to manage the lazarus process |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
메소드 | 설명 | |
---|---|---|
__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 | |
리턴 | void |
public destroyObject ( |
||
$object | Component Object | |
리턴 | void |
public getLoop ( ) : React\EventLoop\LoopInterface | ||
리턴 | React\EventLoop\LoopInterface |
public getNextObjectId ( ) : integer | ||
리턴 | integer |
public getWindow ( ) : |
||
리턴 |
public setVerboseLevel ( integer $verboseLevel ) : void | ||
$verboseLevel | integer | |
리턴 | void |
public static Application,gui $defaultApplication | ||
리턴 |
protected array $eventHandlers | ||
리턴 | array |
protected LoopInterface,React\EventLoop $loop | ||
리턴 | React\EventLoop\LoopInterface |
protected array $objects | ||
리턴 | array |
public Process,React\ChildProcess $process | ||
리턴 | React\ChildProcess\Process |
protected Receiver,Gui\Ipc $receiver | ||
리턴 |
protected Sender,Gui\Ipc $sender | ||
리턴 |