Example #1
0
 /**
  * 
  * @param mixed $data
  */
 public function __construct(&$data = null)
 {
     parent::__construct();
     if (!is_null($data)) {
         $this->setData($data);
     }
 }
Example #2
0
 /**
  * (non-PHPdoc)
  * @see \Simplify\Dictionary::_set()
  */
 protected function _set($name, $value)
 {
     if (parent::_get($name) === $value) {
         unset($this->modified[$name]);
     } else {
         $this->modified[$name] = $value;
     }
     $this->dirty = (bool) count($this->modified);
     return $this;
 }