public function __construct($response, $url, $adapter) { parent::__construct($response, $url, $adapter); $this->_updatePageSize(); }
/** * __set * * If the key provided is part of the data array, then update it in the * data array. Otherwise, use the default __set() behavior. * * @param mixed $key Key of the attr being set * @param mixed $value Value being set to the $key attr * @access public */ public function __set($key, $value) { if (array_key_exists($key, $this->data)) { $this->_localDiff[$key] = $value; return $this->data[$key] = $value; } else { return parent::__set($key, $value); } }
/** * __set * * If the key provided is part of the data array, then update it in the * data array. Otherwise, use the default __set() behavior. * * @param mixed $key Key of the attr being set * @param mixed $value Value being set to the $key attr * @access public */ public function __set($key, $value) { if (isset($this->data[$key])) { $this->_localDiff[$key] = $value; return $this->data[$key] = $value; } else { return parent::__set($key, $value); } }