Zend Framework
3.0
|
Public Member Functions | |
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. | |
Public Member Functions inherited from PromptInterface | |
show () | |
Show the prompt to user and return the answer. | |
Static Public Member Functions | |
static | prompt () |
Create an instance of this prompt, show it and return response. | |
Protected Attributes | |
$console | |
$lastResponse | |
getConsole | ( | ) |
Return console adapter to use when showing prompt.
Implements PromptInterface.
getLastResponse | ( | ) |
|
static |
Create an instance of this prompt, show it and return response.
This is a convenience method for creating statically creating prompts, i.e.:
$name = Zend::prompt("Enter your name: ");
Exception\BadMethodCallException |
setConsole | ( | ConsoleAdapter | $adapter | ) |
Set console adapter to use when showing prompt.
ConsoleAdapter | $adapter |
Implements PromptInterface.
|
protected |
|
protected |