attr('dir', 'auto'); } /** * Get or set the element's value * * This is the preferred way of setting the element's value * * @param null|string $value * @return string|$this */ public function val($value = null) { if ($value !== null) { $this->text = cleanText($value); return $this; } return $this->text; } /** * The HTML representation of this element * * @return string */ protected function mainElementHTML() { if ($this->useInput) $this->prefillInput(); return ''; } }