Example #1
0
 /**
  * @return Member
  */
 public static function getInstance()
 {
     if (empty(self::$instance)) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Example #2
0
 /**
  * @return Member
  */
 public static function getInstance()
 {
     if (empty(self::$instance)) {
         if (session_status() != PHP_SESSION_ACTIVE) {
             session_start();
         }
         self::$instance = new self();
     }
     return self::$instance;
 }