예제 #1
0
파일: Auth.php 프로젝트: phavour/phavour
 /**
  * Check if a user is logged in or not.
  *
  * @return boolean
  */
 public function isLoggedIn()
 {
     if ($this->instance instanceof \Phavour\Session\Storage) {
         if ($this->instance->get('identity') != false) {
             return true;
         }
     }
     return false;
 }
예제 #2
0
파일: Session.php 프로젝트: phavour/phavour
 /**
  * Retrieve a value from the session
  *
  * @param string $name
  * @throws \Exception
  * @return value|boolean false for failure
  */
 public function get($name)
 {
     return $this->instance->get($name);
 }