Example #1
0
 public function __construct()
 {
     parent::__construct();
     $this->usermanager->student_login_protected_redirect();
     $this->_init_language_for_student();
     $this->_load_student_langfile();
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     $this->_init_language_for_teacher();
     $this->_load_teacher_langfile();
     $this->_init_teacher_quick_prefered_course_menu();
     $this->usermanager->teacher_login_protected_redirect();
 }
Example #3
0
 public function __construct()
 {
     parent::__construct();
     $this->_init_language_for_student();
     $this->_load_student_langfile();
     $this->_load_student_langfile('pagemenu');
     $this->student_registration_config = $this->config->item('student_registration');
 }
Example #4
0
 public function __construct()
 {
     parent::__construct();
     if ($this->router->method != 'show_details') {
         $this->usermanager->student_login_protected_redirect();
     }
     $this->_init_language_for_student();
     $this->_load_student_langfile();
 }
Example #5
0
 public function __construct()
 {
     parent::__construct();
     $this->_init_language_for_teacher();
     $this->_load_teacher_langfile();
     if ($this->usermanager->is_teacher_session_valid()) {
         $this->_init_teacher_quick_prefered_course_menu();
     }
 }
Example #6
0
 public function __construct()
 {
     parent::__construct();
     $this->_init_language_for_teacher();
     $this->_load_teacher_langfile();
     $this->_initialize_teacher_menu();
     $this->_initialize_open_task_set();
     $this->_init_teacher_quick_prefered_course_menu();
     $this->usermanager->teacher_login_protected_redirect();
     $this->load->library('configurator');
 }
Example #7
0
 public function __construct()
 {
     parent::__construct();
     if ($this->usermanager->is_teacher_session_valid()) {
         $this->_init_language_for_teacher();
     } elseif ($this->usermanager->is_student_session_valid()) {
         $this->_init_language_for_student();
     } else {
         if ($this->router->method != 'login_error') {
             redirect(create_internal_url('help/login_error'));
         }
     }
     $this->_load_student_langfile();
 }
Example #8
0
 public function __construct()
 {
     parent::__construct();
     $this->_init_language_for_teacher();
     $this->_load_teacher_langfile('tests');
     $this->_initialize_teacher_menu();
     $this->_initialize_open_task_set();
     $this->_init_teacher_quick_prefered_course_menu();
     if ($this->router->method == 'run_test_for_task' || $this->router->method == 'request_token' && $this->router->method == 'evaluate_test_result') {
         if (!$this->usermanager->is_student_session_valid() && !$this->usermanager->is_teacher_session_valid()) {
             die;
         }
     } elseif ($this->router->method == 'enqueue_test' || $this->router->method == 'get_student_test_queue' || $this->router->method == 'get_student_test_queue_all') {
         $this->usermanager->student_login_protected_redirect();
     } else {
         $this->usermanager->teacher_login_protected_redirect();
     }
 }
Example #9
0
 public function __construct()
 {
     parent::__construct();
     $this->_init_language_for_student();
     $this->_load_student_langfile();
 }