Show
Ignore:
Timestamp:
04/07/08 16:38:19 (5 months ago)
Author:
ischommer
Message:

FEATURE Added getSearchQuery(), getObjectQuery(), getObjectsQuery(), getObjectRelationQuery() to RestfulServer?
FEATURE Added $totalSize to DataFormatter? to add useful output for pagination via "limit" and "offset" parameters
API CHANGE Removed RestfulServer?->search()
API CHANGE Changed output format for convertDataObjectSet() in XMLDataFormatter and JSONDataFormatter

Files:
1 modified

Legend:

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

    r55565 r57417  
    9797                $className = $set->class; 
    9898         
    99                 $xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<$className>\n"; 
     99                $xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; 
     100                $xml .= (is_numeric($this->totalSize)) ? "<$className totalSize=\"{$this->totalSize}\">\n" : "<$className>\n"; 
    100101                foreach($set as $item) { 
    101102                        if($item->canView()) $xml .= $this->convertDataObjectWithoutHeader($item);