Example #1
0
 public function __construct($response, $url, $adapter)
 {
     parent::__construct($response, $url, $adapter);
     $this->_updatePageSize();
 }
Example #2
0
 /**
  * __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);
     }
 }
Example #3
0
File: api.php Project: grlf/eyedock
 /**
  * __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);
     }
 }