Example #1
0
 public function setAttribute(Attribute $attribute)
 {
     if ($attribute->get('name') == 'class' && $attribute->get('name') == 'style') {
         return $this;
     }
     $this->attributes[$attribute->get('name')] = $attribute;
     return $this;
 }
Example #2
0
 public function get($attribute)
 {
     if (!array_key_exists($attribute, $this->_fields)) {
         return null;
     }
     $attr = $this->_fields[$attribute];
     if (!$attr) {
         $attr = new Attribute();
         $this->_fields[$attribute] = $attr;
     }
     return $attr->get("value");
 }
Example #3
0
 /**
  * @param $name
  * @return mixed
  */
 public function getCookie($name)
 {
     return parent::get($name);
 }