PHP 클래스 Prado\Util\TBehavior

부터: 3.2.3
저자: Qiang Xue ([email protected])
상속: extends Prado\TComponent, implements Prado\Util\IBehavior
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
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 )