Exemplo n.º 1
0
 protected function get_items()
 {
     $items = $this->load_batch('video');
     foreach ($items as $id => &$item) {
         $item['id'] = $id;
         $item = new Model_Video($item);
         $item->set_display_object('thumb');
         if ($this->area == 'workshop' || sets::user('rights')) {
             $item['is_editable'] = true;
         }
     }
     $this->load_meta($items);
     $this->data['items'] = $items;
     if ($this->count > $this->per_page) {
         $this->data['navi'] = $this->get_bottom_navi('video');
     }
 }