Exemplo n.º 1
0
 /**
  * Adds soft attributes support to magic __unset method
  * @see CComponent::__unset()
  * @since v1.3.4
  */
 public function __unset($name)
 {
     if (array_key_exists($name, $this->softAttributes)) {
         // Use of array_key_exists is mandatory !!!
         unset($this->softAttributes[$name]);
     } else {
         parent::__unset($name);
     }
 }