Esempio n. 1
0
 public static function create($connectionName = "default")
 {
     if (self::$instance === null) {
         self::$instance = new self($connectionName);
         register_shutdown_function(array(self::$instance, "destruct"));
     }
     return self::$instance;
 }
Esempio n. 2
0
 public function setUp()
 {
     $_SERVER["REQUEST_METHOD"] = "GET";
     $this->session = Sabel_Session_Database::create();
     $this->session->setTableName("session");
     $_GET[session_name()] = self::$sid;
     $this->session->start();
 }
Esempio n. 3
0
 public static function create($mdlName = "SblSession")
 {
     if (self::$instance === null) {
         self::$instance = new self($mdlName);
         register_shutdown_function(array(self::$instance, "destruct"));
     }
     return self::$instance;
 }