Ejemplo n.º 1
0
 function __construct($text = null, $value = null, $selected = false)
 {
     if ($value !== null) {
         $this->attributes['value'] = $value;
     }
     if ($selected) {
         $this->attributes['selected'] = null;
     }
     $this->text = \Forma\Helpers::hasLang($text) ? \Forma\Helpers::lang($text) : $text;
 }
Ejemplo n.º 2
0
 public function placeholder($text)
 {
     $this->attributes['placeholder'] = \Forma\Helpers::hasLang($text) ? \Forma\Helpers::lang($text) : $text;
     return $this;
 }
Ejemplo n.º 3
0
 function __construct($text = null)
 {
     $this->text = \Forma\Helpers::hasLang($text) ? \Forma\Helpers::lang($text) : $text;
 }