Source of file RESTfulAPI_DeSerializer.php
Size: 0,945 Bytes - Last Modified: 2021-12-24T06:44:03+00:00
/var/www/docs.ssmods.com/process/src/code/serializers/RESTfulAPI_DeSerializer.php
1234567891011121314151617181920212223242526272829303132333435 | <?php /** * Defines requirements for RESTfulAPI DeSerializer * * @author Thierry Francois @colymba thierry@colymba.com * @copyright Copyright (c) 2013, Thierry Francois * * @license http://opensource.org/licenses/BSD-3-Clause BSD Simplified * * @package RESTfulAPI * @subpackage Serializer */ interface RESTfulAPI_DeSerializer { /** * Convert client JSON data to an array of data * ready to be consumed by SilverStripe * * @param string $data JSON to be converted to data ready to be consumed by SilverStripe * @return array Formatted array representation of the JSON data */ public function deserialize($json); /** * Format a ClassName of DBField name sent by client API * to be used by SilverStripe * * @param string $name ClassName of DBField name * @return string Formatted name */ public function unformatName($name); } |