PHP Класс Prado\Util\TBehavior

С версии: 3.2.3
Автор: Qiang Xue ([email protected])
Наследование: extends Prado\TComponent, implements Prado\Util\IBehavior
Показать файл Открыть проект

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

Метод Описание
attach ( $owner ) Attaches the behavior object to the component.
detach ( $owner ) Detaches the behavior object from the component.
events ( ) : array Declares events and the corresponding event handler methods.
getEnabled ( ) : boolean
getOwner ( ) : TComponent
setEnabled ( $value )

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

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

The default implementation will set the {@link owner} property and attach event handlers as declared in {@link events}. Make sure you call the parent implementation if you override this method.
public attach ( $owner )

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

The default implementation will unset the {@link owner} property and detach event handlers declared in {@link events}. Make sure you call the parent implementation if you override this method.
public detach ( $owner )

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

The events are defined by the {@link owner} component, while the handler methods by the behavior class. The handlers will be attached to the corresponding events when the behavior is attached to the {@link owner} component; and they will be detached from the events when the behavior is detached from the component.
public events ( ) : array
Результат array events (array keys) and the corresponding event handler methods (array values).

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

public getEnabled ( ) : boolean
Результат boolean whether this behavior is enabled

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

public getOwner ( ) : TComponent
Результат TComponent the owner component that this behavior is attached to.

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

public setEnabled ( $value )