PHP 클래스 xajaxCallableObject

A class that stores a reference to an object whose methods can be called from the client via a xajax request. will call generateClientScript> so that stub functions can be generated and sent to the browser.
파일 보기 프로젝트 열기: xajax/xajax 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( $obj ) * Function: xajaxCallableObject
call ( $sMethod, $aArgs ) * Function: call
configure ( $sMethod, $sName, $sValue ) * Function: configure
generateClientScript ( $sXajaxPrefix ) * Function: generateClientScript
generateRequests ( $sXajaxPrefix ) * Function: generateRequests
getMethods ( )
getName ( ) * Function: getName
hasMethod ( $sMethod ) * Function: hasMethod
isClass ( $sClass ) * Function: isClass

메소드 상세

__construct() 공개 메소드

Constructs and initializes the obj - (object): The object to reference.
public __construct ( $obj )

call() 공개 메소드

Call the specified method of the object being referenced using the specified array of arguments. sMethod - (string): The name of the method to call. aArgs - (array): The arguments to pass to the method.
public call ( $sMethod, $aArgs )

configure() 공개 메소드

Used to set configuration options / call options for each method. sMethod - (string): The name of the method. sName - (string): The name of the configuration option. sValue - (string): The value to be set.
public configure ( $sMethod, $sName, $sValue )

generateClientScript() 공개 메소드

Called by generateClientScript> while is generating the javascript to be sent to the browser. sXajaxPrefix - (string): The prefix to be prepended to the javascript function names.
public generateClientScript ( $sXajaxPrefix )

generateRequests() 공개 메소드

Produces an array of objects, one for each method exposed by this callable object. sXajaxPrefix - (string): The prefix to be prepended to the javascript function names; this will correspond to the name used for the function stubs that are generated by the generateClientScript> call.
public generateRequests ( $sXajaxPrefix )

getMethods() 공개 메소드

public getMethods ( )

getName() 공개 메소드

Returns the name of this callable object. This is typically the class name of the object.
public getName ( )

hasMethod() 공개 메소드

Determines if the specified method name is one of the methods of the object referenced by obj>. sMethod - (object): The name of the method to check. Returns: boolean - True of the referenced object contains the specified method, false otherwise.
public hasMethod ( $sMethod )

isClass() 공개 메소드

Determins if the specified class name matches the class name of the object referenced by obj>. sClass - (string): The name of the class to check. Returns: boolean - True of the specified class name matches the class of the object being referenced; false otherwise.
public isClass ( $sClass )