public function items($start=0, $limit=null) {
        $this->setStandardFilters();
	    $this->addFilter('command', 'find_all_videos');
	    $this->addFilter('page_size', $limit);
	    $this->addFilter('page_number', floor($start / $limit));
        $items = parent::items(0, $limit);
        return $items;
    }
 public function items($start=0, $limit=null) {
 
     $this->addFilter('max-results', $limit);
     $this->addFilter('start-index', $start+1);
             
     $items = parent::items(0, $limit);
     return $items;
 }
    public function items($start=0, $limit=null) {
        $this->setStandardFilters();
        //$this->addFilter('service', 'media');
	    //$this->addFilter('action', 'list');
	    $this->addFilter('pager:pageSize', $limit);
	    $this->addFilter('pager:pageIndex', floor($start / $limit));
        $items = parent::items(0, $limit);
        return $items;
    }
Exemple #4
0
 public function items($start = 0, $limit = null)
 {
     $items = array();
     $rawItems = parent::items();
     // invoke parse
     if ($this->drillDownPath) {
         $selectedCategory = $this;
         foreach ($this->drillDownPath as $pathElement) {
             foreach ($selectedCategory->categories() as $category) {
                 if ($category->getId() == $pathElement) {
                     $selectedCategory = $category;
                     break;
                 }
             }
         }
         $items = array_merge($items, $selectedCategory->categories());
         foreach ($selectedCategory->placemarks() as $placemark) {
             $items[] = $this->getProjectedFeature($placemark);
         }
     } else {
         foreach ($rawItems as $rawItem) {
             if ($rawItem instanceof Placemark) {
                 $items[] = $this->getProjectedFeature($rawItem);
             } else {
                 $items[] = $rawItem;
             }
         }
     }
     return $items;
 }