コード例 #1
0
ファイル: Front.php プロジェクト: pmatsis/JoshuaTree
 /**
  * This method sets the initial session state.
  * Checks if the $_SESSION superglobal has a 'user' key, 
  * if not set's the user as a guest in the system 
  *
  * @access public
  * @return System_Controller_Front
  */
 public function setSession()
 {
     if (!isset($_SESSION['user'])) {
         $session = new System_Session_Controller();
         $session->guest();
     }
     return $this;
 }
コード例 #2
0
ファイル: Loggedin.php プロジェクト: pmatsis/JoshuaTree
 /**
  * validation method
  * 
  * @access public
  * @return boolean
  */
 public function validate()
 {
     return System_Session_Controller::isLoggedIn();
 }