Changeset 57055
- Timestamp:
- 29/06/08 14:15:46 (2 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
modules/sapphire/branches/roa/api/RestfulServer.php
r55707 r57055 39 39 * @todo Allow for range-searches (e.g. on Created column) 40 40 * @todo Allow other authentication methods (currently only HTTP BasicAuth) 41 * @todo Filter relation listings by $api_access and canView() permissions 42 * @todo Exclude relations when "fields" are specified through URL (they should be explicitly requested in this case) 43 * @todo Custom filters per DataObject subclass, e.g. to disallow showing unpublished pages in SiteTree/Versioned/Hierarchy 44 * @todo URL parameter namespacing for search-fields, limit, fields, add_fields (might all be valid dataobject properties) 45 * e.g. you wouldn't be able to search for a "limit" property on your subclass as its overlayed with the search logic 46 * @todo i18n integration (e.g. Page/1.xml?lang=de_DE) 41 47 */ 42 48 class RestfulServer extends Controller { … … 152 158 if(!$obj) return $this->notFound(); 153 159 if(!$obj->canView()) return $this->permissionFailure(); 154 160 155 161 if($relation) { 156 162 if($relationClass = $obj->many_many($relation)) { … … 167 173 return $this->notFound(); 168 174 } 169 175 170 176 // get all results 171 177 $obj = $this->search($relationClass, $this->request->getVars(), $sort, $limit, $query);
