|
| $param |
|
| $currentValue |
|
| $inputName |
|
Simple class to get a HTML input for the parameter. Usable for when creating a GUI from a parameter list.
Based on 'addOptionInput' from Special:Ask in SMW 1.5.6.
TODO: nicify HTML
- Since
- 1.9
GNU GPL v2+
- Author
- Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
◆ __construct()
SMW\MediaWiki\Specials\Ask\ParameterInput::__construct |
( |
ParamDefinition |
$param, |
|
|
|
$currentValue = false |
|
) |
| |
Constructor.
- Since
- 1.9
- Parameters
-
ParamDefinition | $param | |
mixed | $currentValue | |
◆ getBooleanInput()
SMW\MediaWiki\Specials\Ask\ParameterInput::getBooleanInput |
( |
| ) |
|
|
protected |
Gets a checkbox.
- Since
- 1.9
- Returns
- string
◆ getCheckboxListInput()
SMW\MediaWiki\Specials\Ask\ParameterInput::getCheckboxListInput |
( |
array |
$valueList | ) |
|
|
protected |
Gets a list of input boxes for the provided values.
- Since
- 1.9
- Parameters
-
- Returns
- string
◆ getHtml()
SMW\MediaWiki\Specials\Ask\ParameterInput::getHtml |
( |
| ) |
|
Returns the HTML for the parameter input.
- Since
- 1.9
- Returns
- string
◆ getNumberInput()
SMW\MediaWiki\Specials\Ask\ParameterInput::getNumberInput |
( |
| ) |
|
|
protected |
Gets a short text input suitable for numbers.
- Since
- 1.9
- Returns
- string
◆ getSelectInput()
SMW\MediaWiki\Specials\Ask\ParameterInput::getSelectInput |
( |
array |
$valueList | ) |
|
|
protected |
Gets a select menu for the provided values.
- Since
- 1.9
- Parameters
-
- Returns
- string
◆ getStrInput()
SMW\MediaWiki\Specials\Ask\ParameterInput::getStrInput |
( |
| ) |
|
|
protected |
Gets a text input for a string.
- Since
- 1.9
- Returns
- string
◆ getValueToUse()
SMW\MediaWiki\Specials\Ask\ParameterInput::getValueToUse |
( |
| ) |
|
|
protected |
Returns the value to initially display with the input.
- Since
- 1.9
- Returns
- string
◆ setAttributes()
SMW\MediaWiki\Specials\Ask\ParameterInput::setAttributes |
( |
array |
$attributes | ) |
|
◆ setCurrentValue()
SMW\MediaWiki\Specials\Ask\ParameterInput::setCurrentValue |
( |
|
$currentValue | ) |
|
Sets the current value.
- Since
- 1.9
- Parameters
-
◆ setInputName()
SMW\MediaWiki\Specials\Ask\ParameterInput::setInputName |
( |
|
$name | ) |
|
Sets the name for the input; defaults to the name of the parameter.
- Since
- 1.9
- Parameters
-
The documentation for this class was generated from the following file: