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
 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.º 4
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();
 }