__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)
string
The prompt text to display in console
array
Allowed options
bool
Allow empty (no) selection?
bool
True to display selected option?
\Zend\Console\Exception\BadMethodCallException |
if no options available |
---|
getAllowEmpty() : bool
inherited_from | \Zend\Console\Prompt\Char::getAllowEmpty() |
---|
bool
getAllowedChars() : string
inherited_from | \Zend\Console\Prompt\Char::getAllowedChars() |
---|
string
getConsole() : \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() |
---|
bool
getIgnoreCase() : bool
inherited_from | \Zend\Console\Prompt\Char::getIgnoreCase() |
---|
bool
getLastResponse() : mixed
inherited_from | \Zend\Console\Prompt\AbstractPrompt::getLastResponse() |
---|---|
inherited_from | \Zend\Console\Prompt\Char::getLastResponse() |
mixed
getOptions() : array
array
getPromptText() : string
inherited_from | \Zend\Console\Prompt\Char::getPromptText() |
---|
string
prompt() : 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 |
---|
mixed
setAllowEmpty(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
string
Selected 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