[ Index ] |
PHP Cross Reference of phpBB-3.3.14-deutsch |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 187 lines (5 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
ChoiceQuestion:: (8 methods):
__construct()
getChoices()
setMultiselect()
isMultiselect()
getPrompt()
setPrompt()
setErrorMessage()
getDefaultValidator()
Class: ChoiceQuestion - X-Ref
Represents a choice question.__construct($question, array $choices, $default = null) X-Ref |
param: string $question The question to ask to the user param: array $choices The list of available choices param: mixed $default The default answer to return |
getChoices() X-Ref |
Returns available choices. return: array |
setMultiselect($multiselect) X-Ref |
Sets multiselect option. When multiselect is set to true, multiple choices can be answered. param: bool $multiselect return: $this |
isMultiselect() X-Ref |
Returns whether the choices are multiselect. return: bool |
getPrompt() X-Ref |
Gets the prompt for choices. return: string |
setPrompt($prompt) X-Ref |
Sets the prompt for choices. param: string $prompt return: $this |
setErrorMessage($errorMessage) X-Ref |
Sets the error message for invalid values. The error message has a string placeholder (%s) for the invalid value. param: string $errorMessage return: $this |
getDefaultValidator() X-Ref |
Returns the default answer validator. return: callable |
Generated: Mon Nov 25 19:05:08 2024 | Cross-referenced by PHPXref 0.7.1 |