Changeset 57055

Show
Ignore:
Timestamp:
29/06/08 14:15:46 (2 months ago)
Author:
ischommer
Message:

MINOR Documentation

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • modules/sapphire/branches/roa/api/RestfulServer.php

    r55707 r57055  
    3939 * @todo Allow for range-searches (e.g. on Created column) 
    4040 * @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) 
    4147 */ 
    4248class RestfulServer extends Controller { 
     
    152158                        if(!$obj) return $this->notFound(); 
    153159                        if(!$obj->canView()) return $this->permissionFailure(); 
    154                          
     160 
    155161                        if($relation) { 
    156162                                if($relationClass = $obj->many_many($relation)) { 
     
    167173                                        return $this->notFound(); 
    168174                                } 
    169                                  
     175 
    170176                                // get all results 
    171177                                $obj = $this->search($relationClass, $this->request->getVars(), $sort, $limit, $query);