Zend Framework  3.0
Public Member Functions | List of all members
Checkbox Class Reference

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
 

Constructor & Destructor Documentation

__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.

Parameters
string$promptTextThe prompt text to display in console
array | Transversable$optionsAllowed options
bool$echoTrue to display selected option?

Member Function Documentation

show ( )

Show a list of options and prompt the user to select any number of them.

Returns
array Checked options

Implements PromptInterface.