__construct()
getAllowEmpty()
getAllowedChars()
getConsole()
getEcho()
getIgnoreCase()
getLastResponse()
getOptions()
getPromptText()
prompt()
setAllowEmpty()
setAllowedChars()
setConsole()
setEcho()
setIgnoreCase()
setOptions()
setPromptText()
show()
$allowEmpty
$allowedChars
$console
$echo
$ignoreCase
$lastResponse
$options
$promptText
__construct(string $promptText, array $options, bool $allowEmpty, bool $echo)
stringThe prompt text to display in console
arrayAllowed options
boolAllow empty (no) selection?
boolTrue to display selected option?
\Zend\Console\Exception\BadMethodCallException |
if no options available |
|---|
getAllowEmpty() : bool
| inherited_from | \Zend\Console\Prompt\Char::getAllowEmpty() |
|---|
boolgetAllowedChars() : string
| inherited_from | \Zend\Console\Prompt\Char::getAllowedChars() |
|---|
stringgetConsole() : \Zend\Console\Adapter\AdapterInterface
| inherited_from | \Zend\Console\Prompt\AbstractPrompt::getConsole() |
|---|---|
| inherited_from | \Zend\Console\Prompt\Char::getConsole() |
getEcho() : bool
| inherited_from | \Zend\Console\Prompt\Char::getEcho() |
|---|
boolgetIgnoreCase() : bool
| inherited_from | \Zend\Console\Prompt\Char::getIgnoreCase() |
|---|
boolgetLastResponse() : mixed
| inherited_from | \Zend\Console\Prompt\AbstractPrompt::getLastResponse() |
|---|---|
| inherited_from | \Zend\Console\Prompt\Char::getLastResponse() |
mixedgetOptions() : array
arraygetPromptText() : string
| inherited_from | \Zend\Console\Prompt\Char::getPromptText() |
|---|
stringprompt() : mixed
This is a convenience method for creating statically creating prompts, i.e.:
$name = Zend\Console\Prompt\Line::prompt("Enter your name: ");
| inherited_from | \Zend\Console\Prompt\AbstractPrompt::prompt() |
|---|---|
| inherited_from | \Zend\Console\Prompt\Char::prompt() |
\Zend\Console\Exception\BadMethodCallException |
|---|
mixedsetAllowEmpty(bool $allowEmpty)
| inherited_from | \Zend\Console\Prompt\Char::setAllowEmpty() |
|---|
bool
setAllowedChars(string $allowedChars)
| inherited_from | \Zend\Console\Prompt\Char::setAllowedChars() |
|---|
string
setConsole(\Zend\Console\Adapter\AdapterInterface $adapter) : void
| inherited_from | \Zend\Console\Prompt\AbstractPrompt::setConsole() |
|---|---|
| inherited_from | \Zend\Console\Prompt\Char::setConsole() |
setEcho(bool $echo)
| inherited_from | \Zend\Console\Prompt\Char::setEcho() |
|---|
bool
setIgnoreCase(bool $ignoreCase)
| inherited_from | \Zend\Console\Prompt\Char::setIgnoreCase() |
|---|
bool
setOptions(array | \Traversable $options)
setPromptText(string $promptText)
| inherited_from | \Zend\Console\Prompt\Char::setPromptText() |
|---|
string
show() : string
stringSelected option$allowEmpty : bool
| inherited_from | \Zend\Console\Prompt\Char::$$allowEmpty |
|---|
$allowedChars : string
| inherited_from | \Zend\Console\Prompt\Char::$$allowedChars |
|---|
$console : \Zend\Console\Adapter\AdapterInterface
| inherited_from | \Zend\Console\Prompt\AbstractPrompt::$$console |
|---|---|
| inherited_from | \Zend\Console\Prompt\Char::$$console |
$echo : bool
| inherited_from | \Zend\Console\Prompt\Char::$$echo |
|---|
$ignoreCase : bool
$lastResponse : mixed
| inherited_from | \Zend\Console\Prompt\AbstractPrompt::$$lastResponse |
|---|---|
| inherited_from | \Zend\Console\Prompt\Char::$$lastResponse |
$promptText : string