Esempio n. 1
0
 function getEventos($aRes, $vista)
 {
     include sfConfig::get('sf_app_lib_dir') . "/miExportadorIcal.class.php";
     $e = new miExportadorIcal(new sfEventDispatcher());
     $archivo = sfConfig::get('sf_cache_dir') . "/" . $e->exportar($aRes, 0);
     if ($this->getRequestParameter('date')) {
         $date_component = $this->getRequestParameter('date');
     } else {
         $date_component = "";
     }
     $view = $this->getRequestParameter('view', $vista);
     return array($view, $archivo, $date_component);
 }
Esempio n. 2
0
 public function executeVerCalendario()
 {
     $this->executeList();
     include sfConfig::get('sf_app_lib_dir') . "/miExportadorIcal.class.php";
     $e = new miExportadorIcal(new sfEventDispatcher());
     $this->archivo = sfConfig::get('sf_cache_dir') . "/" . $e->exportar($this->pager->getResults(), 0);
     if ($this->getRequestParameter('date')) {
         $this->date_component = $this->getRequestParameter('date');
     } else {
         $this->date_component = "";
     }
     $this->view = $this->getRequestParameter('view', 'verPorDia');
 }
Esempio n. 3
0
 public function executeVerCalendario()
 {
     $this->executeList();
     include sfConfig::get('sf_app_lib_dir') . "/miExportadorIcal.class.php";
     $e = new miExportadorIcal();
     $this->archivo = sfConfig::get('sf_cache_dir') . "/" . $e->exportar($this->pager->getResults(), 0);
     if ($this->getRequestParameter('date')) {
         $this->date_component = $this->getRequestParameter('date');
     } else {
         $this->date_component = "";
     }
     $this->view = $this->getRequestParameter('view', 'verPorDia');
     //         if($this->getRequestParameter('view')) {
     //             switch($this->getRequestParameter('view')) {
     //                 case 'week': $this->view = 'verPorSemana'; break;
     //                 case 'day': $this->view = 'verPorDia'; break;
     //                 default: $this->view = 'verPorSemana';
     //             }
     //         } else {
     //             $this->view = "verPorDia";
     //         }
 }