Ejemplo n.º 1
0
 public static function getInstance()
 {
     if (!self::$instance instanceof self) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Ejemplo n.º 2
0
 /**
  * @return SessionManager_obj
  */
 public static function getInstance()
 {
     if (self::$instance == null) {
         self::$instance = new SessionManager_obj();
     }
     return self::$instance;
 }
Ejemplo n.º 3
0
 /**
  * singleton function to return
  * the instance of the class
  *
  * @return SessionManager
  */
 public static function singleton($args = NULL)
 {
     if (!self::$instance) {
         self::$instance = new SessionManager($args);
     }
     return self::$instance;
 }