Beispiel #1
0
 function getOperators()
 {
     $oMapper = new Gyuser_Model_OperatorDataMapper();
     $opeObj = $oMapper->fetchAll();
     $operatorArray[''] = '---------';
     foreach ($opeObj as $operator) {
         $operatorArray[$operator->id] = $operator->name;
     }
     return $operatorArray;
 }
 public function eventsAction()
 {
     try {
         $sessionNamespace = new Zend_Session_Namespace();
         if ($sessionNamespace->loginAuth == true) {
             $cMapper = new Gyuser_Model_EventsDataMapper();
             $cList = $cMapper->fetchAll();
             $this->view->cList = $cList;
             $statusMapper = new Gyuser_Model_StatusListDataMapper();
             $sList = $statusMapper->fetchAll();
             $this->view->statusList = $sList;
             $opeMapper = new Gyuser_Model_OperationsDataMapper();
             $result = $opeMapper->GetAllOperations();
             $this->view->operations = $result;
             $cMapper = new Gyuser_Model_UserDataMapper();
             $cList = $cMapper->fetchAllClientNames();
             $this->view->clientList = $cList;
             $eActionMapper = new Gyuser_Model_EventActionDataMapper();
             $eAction = $eActionMapper->fetchAll();
             $this->view->eventAction = $eAction;
             $eTypeMapper = new Gyuser_Model_EventTypeDataMapper();
             $eType = $eTypeMapper->fetchAll();
             $this->view->eventType = $eType;
             $oMapper = new Gyuser_Model_OperatorDataMapper();
             $operator = $oMapper->fetchAll();
             $this->view->operator = $operator;
             $opMapper = new Gyuser_Model_OperationsDataMapper();
             $opList = $opMapper->fetchAll();
             $this->view->operationList = $opList;
         } else {
             $this->_helper->redirector('login', 'index', 'gyuser');
         }
     } catch (Exception $e) {
         echo $e;
     }
 }