Пример #1
0
 public function __set($k, $v)
 {
     try {
         parent::__set($k, $v);
     } catch (Exception $e) {
         $this->options[$k] = $v;
     }
 }
Пример #2
0
 public function __set($key, $value)
 {
     $this->init();
     if (preg_match('/^tweet(.+)$/', $key, $match)) {
         $attr = lcfirst($match[1]);
         $this->tweetButton->{$attr} = $value;
     } else {
         parent::__set($key, $value);
     }
 }
Пример #3
0
 /**
  * @inheritdoc
  */
 public function __set($name, $value)
 {
     if (array_key_exists($name, $this->properties) || in_array($name, $this->properties)) {
         $this->properties[$name] = $value;
         foreach ($this->properties as $i => $v) {
             if (is_int($i) && $v === $name) {
                 unset($this->properties[$i]);
             }
         }
     } else {
         parent::__set($name, $value);
     }
 }