/** * * @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}; }
public function __construct($namespace = self::NAMESPACE_DEFAULT, $member = self::MEMBER_DEFAULT) { $this->_namespace = $namespace; $this->_member = $member; $this->_session = Yaf_session::getInstance(); }