public function __unset($key) { $column = $this->formatColumnName($key); if (parent::__isset($column) || !ObjectMixin::has($this, $key)) { parent::__unset($column); } else { ObjectMixin::remove($this, $key); } }
/** * Is property defined? * @param string property name * @return bool */ public function __isset($name) { return Nette\ObjectMixin::has($this, $name); }
Nette\ObjectMixin::set($this,$name,$value);}function __isset($name){return Nette\ObjectMixin::has($this,$name);}function
/** * Is property defined? * * @param string property name * @return bool */ public function __isset($name) { return ObjectMixin::has($this, $name) ? TRUE : (isset($this->_data[$name]) ? TRUE : array_key_exists($name, $this->_associations)); }
public function __set($name, $value) { foreach ($this->getExtensions() as $extension) { /* @var $extension ExtensionObject */ if ($extension->getReflection()->hasProperty($name)) { $property = $extension->getReflection()->getProperty($name); if ($property->isPublic() && !$property->isStatic()) { $extension->{$name} = $value; return; } } if (ObjectMixin::has($extension, $name)) { ObjectMixin::set($extension, $name, $value); return; } } return parent::__set($name, $value); }