Example #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;
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     $this->user = new FR_User();
     $this->session = FR_Session::singleton();
 }