PHP Класс Gui\Components\Object

It is base abstraction for Lazarus Object
С версии: 0.1
Автор: Gabriel Couto @gabrielrcouto
Наследование: implements Gui\Components\LazarusObjectInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$application gui\Application The application object
$eventHandlers array The array of callbacks
$lazarusClass string The lazarus class as string
$lazarusObjectId integer The communication object id
$runTimeProperties array The array of special properties

Открытые методы

Метод Описание
__call ( string $method, array $params ) : self | mixed The special method used to do the getters/setters for special properties
__construct ( array $defaultAttributes = [], Gui\Components\ContainerObjectInterface $parent = null, Application $application = null ) : void The constructor
fire ( $eventName )
getLazarusClass ( )
getLazarusObjectId ( )
on ( $eventName, callable $eventHandler )

Защищенные методы

Метод Описание
call ( string $method, array $params, boolean $isCommand = true ) : void This method is used to send an object command/envent to lazarus
get ( string $name ) : mixed This magic method is used to send the IPC message when a property is get
set ( string $name, mixed $value ) : void this method is used to send the IPC message when a property is set

Описание методов

__call() публичный Метод

The special method used to do the getters/setters for special properties
public __call ( string $method, array $params ) : self | mixed
$method string
$params array
Результат self | mixed

__construct() публичный Метод

The constructor
public __construct ( array $defaultAttributes = [], Gui\Components\ContainerObjectInterface $parent = null, Application $application = null ) : void
$defaultAttributes array
$parent Gui\Components\ContainerObjectInterface
$application gui\Application
Результат void

call() защищенный Метод

This method is used to send an object command/envent to lazarus
protected call ( string $method, array $params, boolean $isCommand = true ) : void
$method string
$params array
$isCommand boolean
Результат void

fire() публичный Метод

public fire ( $eventName )

get() защищенный Метод

This magic method is used to send the IPC message when a property is get
protected get ( string $name ) : mixed
$name string Property name
Результат mixed

getLazarusClass() публичный Метод

public getLazarusClass ( )

getLazarusObjectId() публичный Метод

public getLazarusObjectId ( )

on() публичный Метод

public on ( $eventName, callable $eventHandler )
$eventHandler callable

set() защищенный Метод

this method is used to send the IPC message when a property is set
protected set ( string $name, mixed $value ) : void
$name string Property name
$value mixed Property value
Результат void

Описание свойств

$application защищенное свойство

The application object
protected Application,Gui $application
Результат gui\Application

$eventHandlers защищенное свойство

The array of callbacks
protected array $eventHandlers
Результат array

$lazarusClass защищенное свойство

The lazarus class as string
protected string $lazarusClass
Результат string

$lazarusObjectId защищенное свойство

The communication object id
protected int $lazarusObjectId
Результат integer

$runTimeProperties защищенное свойство

The array of special properties
protected array $runTimeProperties
Результат array