예제 #1
0
 /**
  * singleton
  *
  * Implementation of the singleton pattern. Returns a sincle instance
  * of the session class.
  *
  * @author Joe Stump <*****@*****.**>
  * @return mixed Instance of session
  */
 public static function singleton()
 {
     if (!isset(self::$instance)) {
         $className = __CLASS__;
         self::$instance = new $className();
     }
     return self::$instance;
 }