Zend Framework
3.0
|
Public Member Functions | |
__construct ($promptText= 'Please select one option(Enter to finish) ', $options=[], $ignoreCase=true, $echo=false) | |
Ask the user to select any number of pre-defined options. | |
show () | |
Show a list of options and prompt the user to select any number of them. | |
Public Member Functions inherited from AbstractPrompt | |
getLastResponse () | |
Return last answer to this prompt. | |
getConsole () | |
Return console adapter to use when showing prompt. | |
setConsole (ConsoleAdapter $adapter) | |
Set console adapter to use when showing prompt. | |
Additional Inherited Members | |
Static Public Member Functions inherited from AbstractPrompt | |
static | prompt () |
Create an instance of this prompt, show it and return response. | |
Protected Attributes inherited from AbstractPrompt | |
$console | |
$lastResponse | |
__construct | ( | $promptText = 'Please select one option (Enter to finish) ' , |
|
$options = [] , |
|||
$ignoreCase = true , |
|||
$echo = false |
|||
) |
Ask the user to select any number of pre-defined options.
string | $promptText | The prompt text to display in console |
array | Transversable | $options | Allowed options |
bool | $echo | True to display selected option? |
show | ( | ) |
Show a list of options and prompt the user to select any number of them.
Implements PromptInterface.