Example #1
0
 /**
  * 
  * Sets a key in the data to null.
  * 
  * @param string $key The requested data key.
  * 
  * @return void
  * 
  */
 public function __unset($key)
 {
     // if an accessor method exists, use it
     if (!empty($this->_access_methods[$key]['unset'])) {
         // use accessor method
         $method = $this->_access_methods[$key]['unset'];
         $this->{$method}();
         $this->_setIsDirty();
     } else {
         // no accessor method; use parent method
         parent::__unset($key);
     }
 }