wiki.techinc.nl/includes/htmlform/HTMLAdvancedSelectNamespaceWithButton.php
Florian 9508c5bd57 Use OOUI HTMLForm for Special:Watchlist
Bug: T99256
Change-Id: I47a8649208279a4090623a3088112fcff9abc4d3
2015-07-27 20:15:15 +00:00

17 lines
550 B
PHP

<?php
/**
* Creates a Html::namespaceSelector input field with a button assigned to the input field.
*/
class HTMLAdvancedSelectNamespaceWithButton extends HTMLAdvancedSelectNamespace {
/** @var HTMLFormClassWithButton $mClassWithButton */
protected $mClassWithButton = null;
public function __construct( $info ) {
$this->mClassWithButton = new HTMLFormFieldWithButton( $info );
parent::__construct( $info );
}
public function getInputHTML( $value ) {
return $this->mClassWithButton->getElement( parent::getInputHTML( $value ) );
}
}