Ejemplo n.º 1
0
 public function setAttribute($key, $value, $append = false, $translated = false)
 {
     if ($translated) {
         $this->translatedArguments[] = $key;
         $this->translatedArguments = array_unique($this->translatedArguments);
         $value = $this->getTranslator()->translate($value);
     }
     Mesour\Components\Utils\Helpers::createAttribute($this->attributes, $key, $value, $append);
     if ($this->htmlElement) {
         $this->htmlElement->{$key}($this->getAttribute($key, false));
     }
     return $this;
 }
Ejemplo n.º 2
0
 public function setAttribute($key, $value, $append = false)
 {
     Mesour\Components\Utils\Helpers::createAttribute($this->attributes, $key, $value, $append);
     return $this;
 }