MediaWiki REL1_34
HTMLSelectNamespaceWithButton.php
Go to the documentation of this file.
1<?php
7 protected $mClassWithButton = null;
8
9 public function __construct( $info ) {
10 $this->mClassWithButton = new HTMLFormFieldWithButton( $info );
11 parent::__construct( $info );
12 }
13
14 public function getInputHTML( $value ) {
15 return $this->mClassWithButton->getElement( parent::getInputHTML( $value ) );
16 }
17}
Enables HTMLFormField elements to be build with a button.
Creates a Html::namespaceSelector input field with a button assigned to the input field.
getInputHTML( $value)
This function must be implemented to return the HTML to generate the input object itself.
__construct( $info)
Initialise the object.
Wrapper for Html::namespaceSelector to use in HTMLForm.