PHP Interface RESTfulAPI_DeSerializer

Author: Thierry Francois @colymba [email protected]
Show file Open project: colymba/silverstripe-restfulapi Interface Usage Examples

Public Methods

Method Description
deserialize ( $json ) : array Convert client JSON data to an array of data ready to be consumed by SilverStripe
unformatName ( string $name ) : string Format a ClassName of DBField name sent by client API to be used by SilverStripe

Method Details

deserialize() public method

Convert client JSON data to an array of data ready to be consumed by SilverStripe
public deserialize ( $json ) : array
return array Formatted array representation of the JSON data

unformatName() public method

Format a ClassName of DBField name sent by client API to be used by SilverStripe
public unformatName ( string $name ) : string
$name string ClassName of DBField name
return string Formatted name