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; }
public function placeholder($text) { $this->attributes['placeholder'] = \Forma\Helpers::hasLang($text) ? \Forma\Helpers::lang($text) : $text; return $this; }
function __construct($text = null) { $this->text = \Forma\Helpers::hasLang($text) ? \Forma\Helpers::lang($text) : $text; }