public static function start($namespace = '', $adapter = 'session') { if (self::$instance == null) { self::$instance = new self($namespace, $adapter); } return self::$instance; }
public function __construct() { if ($this->_dbAdapter == null) { $this->_dbAdapter = new Yasui_Database(); } if ($this->_session == null) { $this->_session = Yasui_Session::start('auth'); } }