HTMLSelectNamespaceWithButton.php 534 B

123456789101112131415161718
  1. <?php
  2. /**
  3. * Creates a Html::namespaceSelector input field with a button assigned to the input field.
  4. */
  5. class HTMLSelectNamespaceWithButton extends HTMLSelectNamespace {
  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. }