PHP 클래스 Gui\Components\Object

It is base abstraction for Lazarus Object
부터: 0.1
저자: Gabriel Couto @gabrielrcouto
상속: implements Gui\Components\LazarusObjectInterface
파일 보기 프로젝트 열기: gabrielrcouto/php-gui 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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