Zend Framework
3.0
|
Public Member Functions | |
__construct ($promptText= 'Please enter a number: ', $allowEmpty=false, $allowFloat=false, $min=null, $max=null) | |
Ask the user for a number. | |
show () | |
Show the prompt to user and return the answer. | |
setAllowEmpty ($allowEmpty) | |
getAllowEmpty () | |
setMaxLength ($maxLength) | |
getMaxLength () | |
setPromptText ($promptText) | |
getPromptText () | |
setMax ($max) | |
getMax () | |
setMin ($min) | |
getMin () | |
setAllowFloat ($allowFloat) | |
getAllowFloat () | |
Public Member Functions inherited from Line | |
__construct ($promptText= 'Please enter value: ', $allowEmpty=false, $maxLength=2048) | |
Ask the user for an answer (a line of text) | |
show () | |
Show the prompt to user and return the answer. | |
setAllowEmpty ($allowEmpty) | |
getAllowEmpty () | |
setMaxLength ($maxLength) | |
getMaxLength () | |
setPromptText ($promptText) | |
getPromptText () | |
Public Member Functions inherited from AbstractPrompt | |
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. | |
Protected Attributes | |
$promptText = 'Please enter a number: ' | |
$allowFloat = false | |
$min | |
$max | |
Protected Attributes inherited from Line | |
$promptText = 'Please enter value: ' | |
$allowEmpty = false | |
$maxLength = 2048 | |
Protected Attributes inherited from AbstractPrompt | |
$console | |
$lastResponse | |
Additional Inherited Members | |
Static Public Member Functions inherited from AbstractPrompt | |
static | prompt () |
Create an instance of this prompt, show it and return response. | |
__construct | ( | $promptText = 'Please enter a number: ' , |
|
$allowEmpty = false , |
|||
$allowFloat = false , |
|||
$min = null , |
|||
$max = null |
|||
) |
Ask the user for a number.
string | $promptText | The prompt text to display in console |
bool | $allowEmpty | Is empty response allowed? |
bool | $allowFloat | Are floating (non-decimal) numbers allowed? |
int | $min | Minimum value (inclusive) |
int | $max | Maximum value (inclusive) |
getAllowEmpty | ( | ) |
getAllowFloat | ( | ) |
getMax | ( | ) |
getMaxLength | ( | ) |
getMin | ( | ) |
getPromptText | ( | ) |
setAllowEmpty | ( | $allowEmpty | ) |
bool | $allowEmpty |
setAllowFloat | ( | $allowFloat | ) |
bool | $allowFloat |
setMax | ( | $max | ) |
int | $max |
setMaxLength | ( | $maxLength | ) |
int | $maxLength |
setMin | ( | $min | ) |
int | $min |
setPromptText | ( | $promptText | ) |
string | $promptText |
show | ( | ) |
Show the prompt to user and return the answer.
Ask for a number and validate it.
Cast proper type
Implements PromptInterface.
|
protected |
|
protected |
|
protected |
|
protected |