Exemple #1
0
 public function getValue()
 {
     if (parent::hasValue()) {
         return parent::getValue();
     } else {
         return false;
     }
 }
 public function reset()
 {
     parent::reset();
     $this->_query = new Ajde_Query();
     $this->_filters = array();
     $this->_filterValues = array();
     $this->_sqlInitialized = false;
 }
Exemple #3
0
 public function set($key, $value)
 {
     parent::set($key, $value);
     if ($value instanceof Ajde_Model) {
         // TODO:
         throw new Ajde_Exception('It is not allowed to store a Model directly in a cookie, use Ajde_Cookie::setModel() instead.');
     }
     $this->_setcookie(serialize($this->values()), time() + 60 * 60 * 24 * $this->_lifetime);
 }
Exemple #4
0
 public function reset()
 {
     parent::reset();
     $this->_query = new Ajde_Query();
     $this->_filters = [];
     $this->_filterValues = [];
     $this->_items = null;
     $this->_position = 0;
     $this->_queryCount = null;
     $this->_sqlInitialized = false;
 }
Exemple #5
0
 /**
  *
  * @return Ajde_Shop_Transaction
  */
 protected function getTransaction()
 {
     return parent::getTransaction();
 }
Exemple #6
0
 public function getMainFilterGrouper()
 {
     return parent::getMainFilterGrouper();
 }
Exemple #7
0
 public function getSessionName()
 {
     if (parent::hasSessionName()) {
         return parent::getSessionName();
     } else {
         return (string) $this->getModel()->getTable();
     }
 }
 public function set($key, $value)
 {
     parent::set($key, $value);
     if ($value instanceof Ajde_Model) {
         // TODO:
         throw new Ajde_Exception('It is not allowed to store a Model directly in the session, use Ajde_Session::setModel() instead.');
     }
     $_SESSION[$this->_namespace][$key] = $value;
 }
Exemple #9
0
 protected function _set($key, $value)
 {
     parent::_set($key, $value);
     return $this;
 }
Exemple #10
0
 public function reset()
 {
     parent::reset();
     $this->_items = null;
     $this->_position = 0;
 }
 /**
  *
  * @return Ajde_Shop_Transaction
  */
 public function getTransaction()
 {
     return parent::getTransaction();
 }
Exemple #12
0
 public function getValidationErrors()
 {
     return parent::getValidationErrors();
 }
Exemple #13
0
 public function getFilter()
 {
     return parent::getFilter();
 }
 public function getIsAutoIncrement()
 {
     return parent::getIsAutoIncrement();
 }
Exemple #15
0
 public function getIsUnique()
 {
     return parent::getIsUnique();
 }
Exemple #16
0
 public function decrypt($field)
 {
     if (!$this->isEncrypted($field)) {
         return parent::_get($field);
     }
     $decrypted = str_replace(self::ENCRYPTION_PREFIX . config('security.secret'), '', Ajde_Component_String::decrypt(parent::_get($field)));
     return $decrypted;
 }