MediaWiki
REL1_40
HTMLSelectNamespaceWithButton.php
Go to the documentation of this file.
1
<?php
7
class
HTMLSelectNamespaceWithButton
extends
HTMLSelectNamespace
{
9
protected
$mClassWithButton
=
null
;
10
15
public
function
__construct
( $info ) {
16
$this->mClassWithButton =
new
HTMLFormFieldWithButton
( $info );
17
parent::__construct( $info );
18
}
19
20
public
function
getInputHTML
( $value ) {
21
return
$this->mClassWithButton->getElement( parent::getInputHTML( $value ) );
22
}
23
24
protected
function
getFieldLayoutOOUI
( $inputField, $config ) {
25
$buttonWidget = $this->mClassWithButton->getInputOOUI(
''
);
26
return
new
HTMLFormActionFieldLayout
( $inputField, $buttonWidget, $config );
27
}
28
}
HTMLFormActionFieldLayout
Definition
HTMLFormActionFieldLayout.php:6
HTMLFormFieldWithButton
Enables HTMLFormField elements to be build with a button.
Definition
HTMLFormFieldWithButton.php:12
HTMLSelectNamespaceWithButton
Creates a Html::namespaceSelector input field with a button assigned to the input field.
Definition
HTMLSelectNamespaceWithButton.php:7
HTMLSelectNamespaceWithButton\getInputHTML
getInputHTML( $value)
This function must be implemented to return the HTML to generate the input object itself....
Definition
HTMLSelectNamespaceWithButton.php:20
HTMLSelectNamespaceWithButton\getFieldLayoutOOUI
getFieldLayoutOOUI( $inputField, $config)
Get a FieldLayout (or subclass thereof) to wrap this field in when using OOUI output.
Definition
HTMLSelectNamespaceWithButton.php:24
HTMLSelectNamespaceWithButton\$mClassWithButton
HTMLFormFieldWithButton $mClassWithButton
Definition
HTMLSelectNamespaceWithButton.php:9
HTMLSelectNamespaceWithButton\__construct
__construct( $info)
Definition
HTMLSelectNamespaceWithButton.php:15
HTMLSelectNamespace
Wrapper for Html::namespaceSelector to use in HTMLForm.
Definition
HTMLSelectNamespace.php:10
includes
htmlform
fields
HTMLSelectNamespaceWithButton.php
Generated on Thu Jun 27 2024 14:02:54 for MediaWiki by
1.10.0