PHP 클래스 xajaxScriptPlugin

Contains the code that can produce script and style data during deferred script generation. This allows the xajax generated javascript and style sheet information to be loaded via an external file reference instead of inlined into the page source.
상속: extends xajaxRequestPlugin
파일 보기 프로젝트 열기: xajax/xajax

공개 메소드들

메소드 설명
_getSections ( $sType ) todo: clean
canProcessRequest ( ) * Function: canProcessRequest
configure ( $sName, $mValue ) * Function: configure
generateClientScript ( ) * Function: generateClientScript
processRequest ( ) * Function: processRequest
xajaxScriptPlugin ( ) * Function: xajaxScriptPlugin

메소드 상세

_getSections() 공개 메소드

todo: clean
public _getSections ( $sType )

canProcessRequest() 공개 메소드

Called by the to determine if this plugin can process the current request. This will return true when the requestURI contains an appropriate hash code.
public canProcessRequest ( )

configure() 공개 메소드

Sets/stores configuration options used by this plugin. See also: . This plugin will watch for and store the current setting for the following configuration options: - (string): The requestURI of the current script file. - (boolean): A flag that indicates whether script deferral is in effect or not. - (boolean): A flag that indicates whether or not the script hash should be validated.
public configure ( $sName, $mValue )

generateClientScript() 공개 메소드

Called by the when the text of the client script (or style) declarations are needed. This function will only output script or style information if the request URI contained an appropriate hash code and script deferral is in effect.

processRequest() 공개 메소드

Called by the when the current request should be processed. This plugin will generate the javascript or style sheet information that would normally be output by the other xajax plugin objects, when script deferral is in effect. If script deferral is disabled, this function returns without performing any functions.
public processRequest ( )

xajaxScriptPlugin() 공개 메소드

Construct and initialize the xajax script plugin object. During initialization, this plugin will look for hash codes in the GET data (parameters passed on the request URI) and store them for later use.
public xajaxScriptPlugin ( )