Beispiel #1
0
 /**
  * @return UserSession The single shared instance
  */
 public static function getInstance()
 {
     if (!self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Beispiel #2
0
 public static function getInstance()
 {
     if (!isset(UserSession::$instance)) {
         UserSession::$instance = new UserSession();
     }
     return UserSession::$instance;
 }