PHP 클래스 xajaxFunctionPlugin

상속: extends xajaxRequestPlugin
파일 보기 프로젝트 열기: xajax/xajax

공개 프로퍼티들

프로퍼티 타입 설명
$aFunctions An array of object that are registered and available via a call.
$bDeferScriptGeneration
$sDefer Configuration option that can be used to request that the javascript file is loaded after the page has been fully loaded.
$sRequestedFunction This string is used to temporarily hold the name of the function that is being requested (during the request processing phase). Since canProcessRequest loads this value from the get or post data, it is unnecessary to load it again.
$sXajaxPrefix A configuration setting that is stored locally and used during the client script generation phase.

공개 메소드들

메소드 설명
canProcessRequest ( ) * Function: canProcessRequest
configure ( $sName, $mValue ) * Function: configure
generateClientScript ( ) * Function: generateClientScript
generateHash ( )
processRequest ( ) * Function: processRequest
register ( $aArgs ) * Function: register
xajaxFunctionPlugin ( ) * Function: xajaxFunctionPlugin

메소드 상세

canProcessRequest() 공개 메소드

Determines whether or not the current request can be processed by this plugin. Returns: boolean - True if the current request can be handled by this plugin; false otherwise.
public canProcessRequest ( )

configure() 공개 메소드

Sets/stores configuration options used by this plugin.
public configure ( $sName, $mValue )

generateClientScript() 공개 메소드

Called by the during the client script generation phase. This is used to generate a block of javascript code that will contain function declarations that can be used on the browser through javascript to initiate xajax requests.

generateHash() 공개 메소드

public generateHash ( )

processRequest() 공개 메소드

Called by the when a request needs to be processed. Returns: mixed - True when the request has been processed successfully. An error message when an error has occurred.
public processRequest ( )

register() 공개 메소드

Provides a mechanism for functions to be registered and made available to the page via the javascript call.
public register ( $aArgs )

xajaxFunctionPlugin() 공개 메소드

Constructs and initializes the . The GET and POST data is searched for xajax function call parameters. This will later be used to determine if the request is for a registered function in canProcessRequest>
public xajaxFunctionPlugin ( )

프로퍼티 상세

$aFunctions 공개적으로 프로퍼티

An array of object that are registered and available via a call.
public $aFunctions

$bDeferScriptGeneration 공개적으로 프로퍼티

public $bDeferScriptGeneration

$sDefer 공개적으로 프로퍼티

Configuration option that can be used to request that the javascript file is loaded after the page has been fully loaded.
public $sDefer

$sRequestedFunction 공개적으로 프로퍼티

This string is used to temporarily hold the name of the function that is being requested (during the request processing phase). Since canProcessRequest loads this value from the get or post data, it is unnecessary to load it again.
public $sRequestedFunction

$sXajaxPrefix 공개적으로 프로퍼티

A configuration setting that is stored locally and used during the client script generation phase.
public $sXajaxPrefix