Exemplo n.º 1
0
 public function init()
 {
     $authInfo = Zend_Auth::getInstance()->getStorage()->read();
     $this->_department_id = $authInfo['department_id'];
     $this->_staff_id = $authInfo['identity'];
     parent::init();
 }
Exemplo n.º 2
0
 /**
  * Initlization of settings usually required by controllers.
  */
 public function init()
 {
     $this->_helper->viewRenderer->setNoRender(TRUE);
     $this->_helper->layout()->disableLayout();
     /*
      * To show debug messages.
      */
     if ('development' == APPLICATION_ENV) {
         self::$debug = true;
     }
     /**
      * Automatically creates model object
      */
     if (TRUE == $this->_autoModel) {
         self::createModel();
     }
     //Automatically Setup Database Columns
     if (TRUE == $this->_autoDbCols) {
         self::createDbCols();
         /*
         			if ($this->debug) {
         				$this->_helper->logger->info ( 'Auto $dbCols' );
         				$this->_helper->logger->debug ( $this->dbCols );
         				$this->_helper->logger->info ( 'Auto $_hideDbCols' );
         				$this->_helper->logger->debug ( $this->_hideDbCols );
         			}*/
     }
 }
Exemplo n.º 3
0
 public function init()
 {
     $authInfo = Zend_Auth::getInstance()->getStorage()->read();
     $this->department_id = $authInfo['department_id'];
     $this->view->assign('masterDepartment', $this->department_id);
     $slaves = Acad_Model_DbTable_SemesterDegree::slaveDepartment($this->department_id);
     $this->view->assign('slaveDepartment', $slaves);
     parent::init();
 }
 public function init()
 {
     $session_startdate = Acad_Model_DbTable_AcademicSession::getSessionStartDate();
     $this->view->assign('session_startdate', $session_startdate);
     if (Zend_Auth::getInstance()->hasIdentity()) {
         $authInfo = Zend_Auth::getInstance()->getStorage()->read();
         $this->department_id = $authInfo['department_id'];
         $this->identity = $authInfo['identity'];
         $staff_id = $authInfo['identity'];
     }
     $this->view->assign('controller', $this->_request->getControllerName());
     $this->view->assign('module', $this->_request->getModuleName());
     $this->view->assign('staff_id', $this->identity);
     parent::init();
 }
Exemplo n.º 5
0
 public function init()
 {
     $this->model = new Acad_Model_DbTable_TimeTable();
     //$this->objsubject = new Department_Model_DbTable_Subject ( );
     $this->dbCols[] = 'department_id';
     $this->dbCols[] = 'period_id';
     $this->dbCols[] = 'period';
     $this->dbCols[] = 'subject_code';
     $this->dbCols[] = 'subject_mode_id';
     $this->dbCols[] = 'staff_id';
     $this->dbCols[] = 'group_id';
     $this->dbCols[] = 'period_duration';
     //$this->dbCols [] = 'block_id';
     //$this->dbCols [] = 'room_id';
     //$this->dbCols [] = 'valid_upto';
     $this->dbCols[] = 'valid_from';
     $authInfo = Zend_Auth::getInstance()->getStorage()->read();
     $this->department_id = $authInfo['department_id'];
     $this->identity = $authInfo['identity'];
     //$this->objtimetable = new Department_Model_DbTable_TimeTable ( );
     //$this->_autoModel = TRUE;
     //$this->_autoDbCols = TRUE;
     parent::init();
 }
 public function init()
 {
     parent::init();
 }