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