/** * Setter * Sets value to an attribute for the content object attribute. * All "classic" attributes can be used (See {@link eZContentObjectAttribute::definition()}). * If attribute doesn't exist, will throw an exception * @param string $name Attribute name * @param mixed $value Attribute value * @throws ezcBasePropertyNotFoundException * @return void */ public function __set($name, $value) { if (!$this->attribute->hasAttribute($name)) { throw new ezcBasePropertyNotFoundException($name); } $this->attribute->setAttribute($name, $value); }