PHP 클래스 xajaxEvent

A container class which holds a reference to handler functions and configuration options associated with a registered event.
파일 보기 프로젝트 열기: xajax/xajax 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( $sName ) * Function: xajaxEvent
addHandler ( $xuf ) * Function: addHandler
configure ( $sName, $mValue ) * Function: configure
fire ( $aArgs ) * Function: fire
generateClientScript ( $sXajaxPrefix, $sEventPrefix ) * Function: generateClientScript
generateRequest ( $sXajaxPrefix, $sEventPrefix ) * Function: generateRequest
getName ( ) * Function: getName

메소드 상세

__construct() 공개 메소드

Construct and initialize this object.
public __construct ( $sName )

addHandler() 공개 메소드

Adds a object to the list of handlers that will be fired when the event is triggered.
public addHandler ( $xuf )

configure() 공개 메소드

Sets/stores configuration options that will be used when generating the client script that is sent to the browser.
public configure ( $sName, $mValue )

fire() 공개 메소드

Called by the when the event has been triggered.
public fire ( $aArgs )

generateClientScript() 공개 메소드

Generates a block of javascript code that declares a stub function that can be used to easily trigger the event from the browser.
public generateClientScript ( $sXajaxPrefix, $sEventPrefix )

generateRequest() 공개 메소드

Generates a object that corresponds to the event so that the client script can easily invoke this event. sXajaxPrefix - (string): The prefix that will be prepended to the client script stub function associated with this event. sEventPrefix - (string): The prefix prepended to the client script function stub and script.
public generateRequest ( $sXajaxPrefix, $sEventPrefix )

getName() 공개 메소드

Returns the name of the event. Returns: string - the name of the event.
public getName ( )