Example #1
0
 public function getValue()
 {
     if (parent::hasValue()) {
         return parent::getValue();
     } else {
         return false;
     }
 }
Example #2
0
 public function reset()
 {
     parent::reset();
     $this->_query = new Ajde_Query();
     $this->_filters = array();
     $this->_filterValues = array();
     $this->_sqlInitialized = false;
 }
Example #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);
 }
Example #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;
 }
Example #5
0
 /**
  *
  * @return Ajde_Shop_Transaction
  */
 protected function getTransaction()
 {
     return parent::getTransaction();
 }
Example #6
0
File: View.php Project: nabble/ajde
 public function getMainFilterGrouper()
 {
     return parent::getMainFilterGrouper();
 }
Example #7
0
File: Crud.php Project: nabble/ajde
 public function getSessionName()
 {
     if (parent::hasSessionName()) {
         return parent::getSessionName();
     } else {
         return (string) $this->getModel()->getTable();
     }
 }
Example #8
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 the session, use Ajde_Session::setModel() instead.');
     }
     $_SESSION[$this->_namespace][$key] = $value;
 }
Example #9
0
 protected function _set($key, $value)
 {
     parent::_set($key, $value);
     return $this;
 }
Example #10
0
 public function reset()
 {
     parent::reset();
     $this->_items = null;
     $this->_position = 0;
 }
Example #11
0
 /**
  *
  * @return Ajde_Shop_Transaction
  */
 public function getTransaction()
 {
     return parent::getTransaction();
 }
Example #12
0
 public function getValidationErrors()
 {
     return parent::getValidationErrors();
 }
Example #13
0
 public function getFilter()
 {
     return parent::getFilter();
 }
 public function getIsAutoIncrement()
 {
     return parent::getIsAutoIncrement();
 }
Example #15
0
 public function getIsUnique()
 {
     return parent::getIsUnique();
 }
Example #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;
 }