Exemplo n.º 1
0
 /**
  * Consructor.
  * 
  * @param SBTCookieAdapter $adp
  */
 public static function init(SBTCookieAdapter $adp)
 {
     self::$adapter = $adp;
 }
 /**
  * Returns true if the user is logged in; false if not.
  * 
  * @return boolean		true if the user is logged in; false if not.
  */
 private function _isUserLoggedIn()
 {
     $data = SBTCookie::get(WP_SESSION_INDICATOR);
     $this->userID = $data;
     return $this->userID > 0 || is_user_logged_in();
 }