Exemplo n.º 1
0
 /**
  * 
  * @param string $table the table name
  */
 protected function getSession($table)
 {
     $session = Yaf_session::getInstance();
     $session->start();
     if (!isset($session->{$table})) {
         $session->{$table} = new stdClass();
     }
     return $session->{$table};
 }
Exemplo n.º 2
0
 public function __construct($namespace = self::NAMESPACE_DEFAULT, $member = self::MEMBER_DEFAULT)
 {
     $this->_namespace = $namespace;
     $this->_member = $member;
     $this->_session = Yaf_session::getInstance();
 }