HTMLTextFieldWithButton.php 503 B

123456789101112131415161718
  1. <?php
  2. /**
  3. * Creates a text input field with a button assigned to the input field.
  4. */
  5. class HTMLTextFieldWithButton extends HTMLTextField {
  6. /** @var HTMLFormFieldWithButton $mClassWithButton */
  7. protected $mClassWithButton = null;
  8. public function __construct( $info ) {
  9. $this->mClassWithButton = new HTMLFormFieldWithButton( $info );
  10. parent::__construct( $info );
  11. }
  12. public function getInputHTML( $value ) {
  13. return $this->mClassWithButton->getElement( parent::getInputHTML( $value ) );
  14. }
  15. }