示例#1
0
 public function getEvents()
 {
     if (!$this->_events) {
         $event = new Event_Model_Event_Custom();
         $this->_events = $event->findAll(array('agenda_id' => $this->getCurrentEvent()->getId()));
     }
     return $this->_events;
 }
示例#2
0
 protected function _parseCustomAgenda($custom_agenda_id)
 {
     $event = new Event_Model_Event_Custom();
     $custom_events = $event->findAll(array('agenda_id' => $custom_agenda_id));
     foreach ($custom_events as $custom_event) {
         if (strtotime($custom_event->getEndAt()) > strtotime(date("Y-m-d H:i:s", time()))) {
             $image = $custom_event->getPictureUrl();
             if (!$image) {
                 $image = $this->_getNoImage();
             }
             $custom_event->setPicture($image);
             $this->_tmp_list[] = $custom_event;
         }
     }
 }