[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class AphrontFormTextControl extends AphrontFormControl { 4 5 private $disableAutocomplete; 6 private $sigil; 7 private $placeholder; 8 9 public function setDisableAutocomplete($disable) { 10 $this->disableAutocomplete = $disable; 11 return $this; 12 } 13 14 private function getDisableAutocomplete() { 15 return $this->disableAutocomplete; 16 } 17 18 public function getPlaceholder() { 19 return $this->placeholder; 20 } 21 22 public function setPlaceholder($placeholder) { 23 $this->placeholder = $placeholder; 24 return $this; 25 } 26 27 public function getSigil() { 28 return $this->sigil; 29 } 30 31 public function setSigil($sigil) { 32 $this->sigil = $sigil; 33 return $this; 34 } 35 36 protected function getCustomControlClass() { 37 return 'aphront-form-control-text'; 38 } 39 40 protected function renderInput() { 41 return javelin_tag( 42 'input', 43 array( 44 'type' => 'text', 45 'name' => $this->getName(), 46 'value' => $this->getValue(), 47 'disabled' => $this->getDisabled() ? 'disabled' : null, 48 'autocomplete' => $this->getDisableAutocomplete() ? 'off' : null, 49 'id' => $this->getID(), 50 'sigil' => $this->getSigil(), 51 'placeholder' => $this->getPlaceholder(), 52 )); 53 } 54 55 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |