Beispiel #1
0
 /**
  * Unset a property from private settings or attribute.
  *
  * @see \ElggEntity->__unset
  *
  * @param string $name The name of the attribute or metadata.
  *
  * @return void
  * @since 2.2.0
  */
 public function __unset($name)
 {
     if (array_key_exists($name, $this->attributes)) {
         parent::__unset($name);
     } else {
         $this->removePrivateSetting($name);
     }
 }