PHP Class opensrs\Request

显示文件 Open project: opensrs/osrs-toolkit-php Class Usage Examples

Public Methods

Method Description
array2object ( hash $data ) : stdClass Method to convert Array -> Object -> Array.
array_filter_recursive ( $input )
convertArray2Formatted ( $type = '', $data = '' )
convertFormatted2array ( $type = '', $data = '' )
process ( string $format = '', string $data = '' ) Process an OpenSRS Request.

Method Details

array2object() public method

Method to convert Array -> Object -> Array.
Since: 3.4
public array2object ( hash $data ) : stdClass
$data hash Containing array object
return stdClass Object $object Containing stdClass object

array_filter_recursive() public method

public array_filter_recursive ( $input )

convertArray2Formatted() public method

public convertArray2Formatted ( $type = '', $data = '' )

convertFormatted2array() public method

public convertFormatted2array ( $type = '', $data = '' )

process() public method

Process an OpenSRS Request.
public process ( string $format = '', string $data = '' )
$format string input format (xml, json, array)
$data string data