Exemplo n.º 1
0
 public function __unset($key)
 {
     $column = $this->formatColumnName($key);
     if (parent::__isset($column) || !ObjectMixin::has($this, $key)) {
         parent::__unset($column);
     } else {
         ObjectMixin::remove($this, $key);
     }
 }
Exemplo n.º 2
0
 /**
  * Is property defined?
  * @param  string  property name
  * @return bool
  */
 public function __isset($name)
 {
     return Nette\ObjectMixin::has($this, $name);
 }
Exemplo n.º 3
0
Nette\ObjectMixin::set($this,$name,$value);}function
__isset($name){return
Nette\ObjectMixin::has($this,$name);}function
Exemplo n.º 4
0
 /**
  * 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));
 }
Exemplo n.º 5
0
 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);
 }