_dynamicAttributes[$name]); } /** * __unset() * * @param string $name * @return null */ public function __unset($name) { unset($this->_dynamicAttributes[$name]); return; } /** * __get() - Get a property via property call $metadata->foo * * @param string $name * @return mixed */ public function __get($name) { if (method_exists($this, 'get' . $name)) { return $this->{'get' . $name}(); } elseif (array_key_exists($name, $this->_dynamicAttributes)) { return ; } else { require_once 'Zend/Tool/Framework/Registry/Exception.php'; throw new Zend_Tool_Framework_Registry_Exception('Property ' . $name . ' was not located in this metadata.'); } } /** * __set() - Set a property via the magic set $metadata->foo = 'foo' * * @param string $name * @param mixed $value */ public function __set($name, $value) { if (method_exists($this, 'set' . $name)) { $this->{'set' . $name}($value); return; } else { require_once 'Zend/Tool/Framework/Registry/Exception.php'; throw new Zend_Tool_Framework_Registry_Exception('Property ' . $name . ' was not located in this registry.'); } } }