Ignore:
Timestamp:
06/06/12 09:01:21 (12 years ago)
Author:
gustavo
Message:

Ticket #2766 - Correções na arquitetura REST(campo DATA) e arrumado os recursos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.4.1-3/prototype/rest/hypermedia/collection.php

    r6351 r6429  
    1414    public $error; 
    1515    public $pagination; 
    16     public $queries; 
     16    public $queries = array(); 
    1717    public $template; 
    1818    public $type; 
    19     public $data; 
     19    public $data = array(); 
    2020 
    2121    function __construct($config, $className) { 
     
    3232        $this->itens[] = $item; 
    3333    } 
    34  
    35     function setData($data) { 
    36         $this->data = $data; 
     34         
     35        function addData($data) { 
     36        $this->data[] = $data; 
    3737    } 
    3838 
     
    5757    } 
    5858 
    59     function setQueries($queries) { 
    60         $this->queries = $queries; 
     59    function addQueries($queries) { 
     60        $this->queries[] = $queries; 
    6161    } 
    6262 
Note: See TracChangeset for help on using the changeset viewer.