__construct()
getAllowEmpty()
getAllowedChars()
getConsole()
getEcho()
getIgnoreCase()
getLastResponse()
getPromptText()
prompt()
setAllowEmpty()
setAllowedChars()
setConsole()
setEcho()
setIgnoreCase()
setPromptText()
show()
$allowEmpty
$allowedChars
$console
$echo
$ignoreCase
$lastResponse
$promptText
__construct(string $promptText, string $allowedChars, bool $ignoreCase, bool $allowEmpty, bool $echo)
string
The prompt text to display in console
string
A list of allowed chars (i.e. "abc12345")
bool
If true, case will be ignored and prompt will always return lower-cased response
bool
Is empty response allowed?
bool
Display the selection after user presses key
getAllowEmpty() : bool
bool
getAllowedChars() : string
string
getConsole() : \Zend\Console\Adapter\AdapterInterface
inherited_from | \Zend\Console\Prompt\AbstractPrompt::getConsole() |
---|
getEcho() : bool
bool
getIgnoreCase() : bool
bool
getLastResponse() : mixed
inherited_from | \Zend\Console\Prompt\AbstractPrompt::getLastResponse() |
---|
mixed
getPromptText() : string
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() |
---|
\Zend\Console\Exception\BadMethodCallException |
---|
mixed
setAllowEmpty(bool $allowEmpty)
bool
setAllowedChars(string $allowedChars)
string
setConsole(\Zend\Console\Adapter\AdapterInterface $adapter) : void
inherited_from | \Zend\Console\Prompt\AbstractPrompt::setConsole() |
---|
setEcho(bool $echo)
bool
setIgnoreCase(bool $ignoreCase)
bool
setPromptText(string $promptText)
string
show() : string
string
$allowEmpty : bool
$allowedChars : string
$console : \Zend\Console\Adapter\AdapterInterface
inherited_from | \Zend\Console\Prompt\AbstractPrompt::$$console |
---|
$echo : bool
$ignoreCase : bool
$lastResponse : mixed
inherited_from | \Zend\Console\Prompt\AbstractPrompt::$$lastResponse |
---|
$promptText : string