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; }
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(); }
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; }