[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/symfony/console/Question/ -> ChoiceQuestion.php (summary)

(no description)

File Size: 189 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

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: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1