public function items()
 {
     $items = parent::items();
     foreach ($items as $item) {
         $item->setRetriever($this->retriever);
     }
     return $items;
 }
Esempio n. 2
0
 protected function init($args)
 {
     parent::init($args);
     if (isset($args['TAG']) && strlen($args['TAG'])) {
         $this->setOption('tag', $args['TAG']);
     }
     if (isset($args['AUTHOR']) && strlen($args['AUTHOR'])) {
         $this->setOption('author', $args['AUTHOR']);
     }
 }
 protected function init($args)
 {
     parent::init($args);
 }
 public function search($searchTerms)
 {
     if ($this->retriever instanceof SearchDataRetriever) {
         $calendar = $this->retriever->search($searchTerms, $response);
         $items = $calendar->getEvents();
         if ($totalItems = $response->getContext('totalItems')) {
             $this->setTotalItems($totalItems);
         }
         return $items;
     } else {
         return parent::search($searchTerms);
     }
 }
 protected function init($args)
 {
     parent::init($args);
     $this->locations = $this->items();
     $this->filteredLocations = $this->locations;
 }