Example #1
0
 public function getAction()
 {
     /* 
      * Example of using a Model/Service and outputting the data
      */
     /*
     $sessions = new Terena_Session_Model();
     $list = $sessions->getRecentlyModified();
     $output = array();
     foreach ($list as $session) {
     			$output[] = $session->getTitle();
     }
     */
     #$model = new Application_Model_Shared();
     #$localModule = new Rest_Model_Local();
     #$output[] = 'Title';
     #$output[] = $model->getName();
     #$output[] = $localModule->getId();
     #$this->view->output = $output;
     $scheduleModel = new Core_Model_Schedule();
     $conference = Zend_Registry::get('conference');
     $view = $this->_getParam('view', 'titles');
     $day = $this->_getParam('day') ? urldecode($this->_getParam('day')) : $conference['start']->get('dd/MM/YYYY');
     $timeslot = $this->_getParam('t', null);
     $location = $this->_getParam('l', null);
     $personal = $this->_getParam('personal', false);
     $output = $scheduleModel->getSchedule(null, array('view' => $view, 'day' => $day, 'personal' => $personal));
     $this->view->output = $output;
 }