Exemplo n.º 1
0
 public function getValue()
 {
     if (parent::hasValue()) {
         return parent::getValue();
     } else {
         return false;
     }
 }
Exemplo n.º 2
0
 public function set($key, $value)
 {
     parent::set($key, $value);
     if ($value instanceof Model) {
         // TODO:
         throw new AjdeException('It is not allowed to store a Model directly in a cookie, use Ajde_Cookie::setModel() instead.');
     }
     $this->_setcookie($this->writer(), time() + 60 * 60 * 24 * $this->_lifetime);
 }
Exemplo n.º 3
0
 /**
  *
  * @return Ajde_Shop_Transaction
  */
 public function getTransaction()
 {
     return parent::getTransaction();
 }
Exemplo n.º 4
0
 public function getSessionName()
 {
     if (parent::hasSessionName()) {
         return parent::getSessionName();
     } else {
         return (string) $this->getModel()->getTable();
     }
 }
Exemplo n.º 5
0
 public function reset()
 {
     parent::reset();
     $this->_query = new Query();
     $this->_filters = array();
     $this->_filterValues = array();
     $this->_items = null;
     $this->_position = 0;
     $this->_queryCount = null;
     $this->_sqlInitialized = false;
 }
Exemplo n.º 6
0
 public function set($key, $value)
 {
     parent::set($key, $value);
     if ($value instanceof Model) {
         // TODO:
         throw new AjdeException('It is not allowed to store a Model directly in the session, use Ajde_Session::setModel() instead.');
     }
     $_SESSION[$this->_namespace][$key] = $value;
     Cache::getInstance()->updateHash($this->hash());
 }
Exemplo n.º 7
0
 /**
  *
  * @return Ajde_Shop_Transaction
  */
 protected function getTransaction()
 {
     return parent::getTransaction();
 }
Exemplo n.º 8
0
 public function reset()
 {
     parent::reset();
     $this->_items = null;
     $this->_position = 0;
 }
Exemplo n.º 9
0
 public function getIsUnique()
 {
     return parent::getIsUnique();
 }
Exemplo n.º 10
0
 public function getMainFilterGrouper()
 {
     return parent::getMainFilterGrouper();
 }
Exemplo n.º 11
0
 protected function _set($key, $value)
 {
     parent::_set($key, $value);
     return $this;
 }