3 final class AphrontFormTextControl
extends AphrontFormControl
{
5 private $disableAutocomplete;
10 public function setDisableAutocomplete($disable) {
11 $this->disableAutocomplete
= $disable;
15 private function getDisableAutocomplete() {
16 return $this->disableAutocomplete
;
19 public function getPlaceholder() {
20 return $this->placeholder
;
23 public function setPlaceholder($placeholder) {
24 $this->placeholder
= $placeholder;
28 public function setAutofocus($autofocus) {
29 $this->autofocus
= $autofocus;
33 public function getAutofocus() {
34 return $this->autofocus
;
37 public function getSigil() {
41 public function setSigil($sigil) {
42 $this->sigil
= $sigil;
46 protected function getCustomControlClass() {
47 return 'aphront-form-control-text';
50 protected function renderInput() {
55 'name' => $this->getName(),
56 'value' => $this->getValue(),
57 'disabled' => $this->getDisabled() ?
'disabled' : null,
58 'autocomplete' => $this->getDisableAutocomplete() ?
'off' : null,
59 'id' => $this->getID(),
60 'sigil' => $this->getSigil(),
61 'placeholder' => $this->getPlaceholder(),
62 'autofocus' => ($this->getAutofocus() ?
'autofocus' : null),