Source of file RestfulServerList.php
Size: 0,420 Bytes - Last Modified: 2021-12-23T10:34:00+00:00
/var/www/docs.ssmods.com/process/src/src/RestfulServerList.php
123456789101112131415161718192021222324 | <?php namespace SilverStripe\RestfulServer; /** * Restful server handler for a SS_List */ class RestfulServerList { private static $url_handlers = array( '#ID' => 'handleItem', ); public function __construct($list) { $this->list = $list; } public function handleItem($request) { return new RestfulServerItem($this->list->getById($request->param('ID'))); } } |