public function _list($args=null) 
    {
      $data = Ensure::Input($args);
      $data = $data->get();
      if (isset($data[0])) {
        $data = $data[0];
      }
      if (!(isset($data["size"]))) {
        $data["size"] = DEFAULTS::SIZE;			
      }
      if (!(isset($data["page"]))) {
        $data["page"] = DEFAULTS::PAGE;
      }
      $url = URIResource::Make($this->path);
      $class = get_class($this) . "Collection";

      return new $class(new DataPacketCollection($this->client->get($url, $data)));
    }
public function _list($args=null) 
    {
      $data = Ensure::Input($args);
      $data = $data->get();
      if (isset($data[0])) {
        $data = $data[0];
      }
      if (!(isset($data["size"]))) {
        $data["size"] = DEFAULTS::SIZE;			
      }
      if (!(isset($data["page"]))) {
        $data["page"] = DEFAULTS::PAGE;
      }
      $url = URIResource::Make($this->path);
      $class = get_class($this) . "Collection";

      return new $class(new DataPacketCollection($this->client->get($url, $data)));
    }
public function _list ( $ args = null ) { $ data = Ensure :: Input ( $ args ) ; $ data = $ data -> get ( ) ; if ( isset ( $ data [ 0 ] ) ) { $ data = $ data [ 0 ] ; } if ( ! ( isset ( $ data [ "size" ] ) ) ) { $ data [ "size" ] = DEFAULTS :: SIZE ; } if ( ! ( isset ( $ data [ "page" ] ) ) ) { $ data [ "page" ] = DEFAULTS :: PAGE ; } $ url = URIResource :: Make ( $ this -> path ) ; $ class = get_class ( $ this ) . "Collection" ; return new $ class ( new DataPacketCollection ( $ this -> client -> get ( $ url , $ data ) ) ) ; }
Generic list. Moved from independant
declaration, should work on all models

@param args arguments with page, and size [optional]
Generic list . Moved from independant declaration should work on all models