PHP Class xajaxArgumentManager

This class processes the input arguments from the GET or POST data of the request. If this is a request for the initial page load, no arguments will be processed. During a xajax request, any arguments found in the GET or POST will be converted to a PHP array.
显示文件 Open project: xajax/xajax Class Usage Examples

Public Methods

Method Description
configure ( $sName, $mValue ) * Function: configure
getInstance ( ) * Function: getInstance
getRequestMethod ( ) * Function: getRequestMethod
process ( ) * Function: process

Private Methods

Method Description
__argumentDecode ( &$sArg ) }
__argumentDecodeUTF8_iconv ( &$mArg )
__argumentDecodeUTF8_mb_convert_encoding ( &$mArg )
__argumentDecodeUTF8_utf8_decode ( &$mArg )
__argumentStripSlashes ( &$sArg )
__construct ( ) * Constructor: xajaxArgumentManager
__convertStringToBool ( $sValue ) * Function: __convertStringToBool
__convertValue ( $value )

Method Details

configure() public method

Accepts configuration settings from the main object. Parameters: The tracks the following configuration settings: - (boolean): See bDecodeUTF8Input> - (string): See sCharacterEncoding>
public configure ( $sName, $mValue )

getInstance() public static method

Returns: object - A reference to an instance of this class. This function is used to implement the singleton pattern.
public static getInstance ( )

getRequestMethod() public method

Returns the method that was used to send the arguments from the client.
public getRequestMethod ( )

process() public method

Returns the array of arguments that were extracted and parsed from the GET or POST data.
public process ( )