Пример #1
0
 /**
  * Returns an instance.
  *
  * Singleton pattern implementation.
  *
  * @return Manager_Session_Student
  */
 public static function getInstance()
 {
     if (null === self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Пример #2
0
 /**
  * Student logout.
  */
 public function studentAction()
 {
     if (Auth_Wrapper_Student::logout()) {
         //Zend_Session::namespaceUnset('studentCourseDetails');
         $studentSession = Manager_Session_Student::getInstance();
         $studentSession->clearStudentId();
         $this->_redirect('/student');
     }
 }