Zend\Console\Prompt\Select
Synopsis
class Select
extends Char
{
- // members
- protected string $promptText;
- protected bool $ignoreCase;
- protected array $options;
- // Inherited members from Char
- protected string $promptText;
- protected bool $allowEmpty;
- protected string $allowedChars;
- protected bool $ignoreCase;
- protected bool $echo;
- // Inherited members from AbstractPrompt
- protected AdapterInterface $console;
- protected mixed $lastResponse;
- // methods
- public void __construct()
- public string show()
- public void setOptions()
- public array getOptions()
- // Inherited methods from Char
- public void __construct()
- public string show()
- public void setAllowEmpty()
- public bool getAllowEmpty()
- public void setPromptText()
- public string getPromptText()
- public void setAllowedChars()
- public string getAllowedChars()
- public void setIgnoreCase()
- public bool getIgnoreCase()
- public void setEcho()
- public bool getEcho()
- // Inherited methods from AbstractPrompt
- public mixed getLastResponse()
- public AdapterInterface getConsole()
- public void setConsole()
- public static mixed prompt()
Hierarchy
Extends
Members
protected
- $allowEmpty — Zend\Console\Prompt\bool
- $allowedChars — string
- $console — Zend\Console\Adapter\AdapterInterface
- $echo — Zend\Console\Prompt\bool
- $ignoreCase — Zend\Console\Prompt\bool
- $ignoreCase — Zend\Console\Prompt\bool
- $lastResponse — mixed
- $options — array
- $promptText — string
- $promptText — string
Methods
public
- __construct() — Ask the user to select one of pre-defined options
- getOptions()
- setOptions() — Set allowed options
- show() — Show a list of options and prompt the user to select one of them.
Inherited from Zend\Console\Prompt\Char
public
- getAllowEmpty()
- getAllowedChars()
- getEcho()
- getIgnoreCase()
- getPromptText()
- setAllowEmpty()
- setAllowedChars()
- setEcho()
- setIgnoreCase()
- setPromptText()
- show() — Show the prompt to user and return a single char.
Inherited from Zend\Console\Prompt\AbstractPrompt
public
- getConsole() — Return console adapter to use when showing prompt.
- getLastResponse() — Return last answer to this prompt.
- prompt() — Create an instance of this prompt, show it and return response.
- setConsole() — Set console adapter to use when showing prompt.