![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct ($question, $default=true, $trueAnswerRegex= '/^y/i') | |
![]() | |
__construct ($question, $default=null) | |
getQuestion () | |
getDefault () | |
isHidden () | |
setHidden ($hidden) | |
isHiddenFallback () | |
setHiddenFallback ($fallback) | |
getAutocompleterValues () | |
setAutocompleterValues ($values) | |
setValidator ($validator) | |
getValidator () | |
setMaxAttempts ($attempts) | |
getMaxAttempts () | |
setNormalizer ($normalizer) | |
getNormalizer () | |
Private Member Functions | |
getDefaultNormalizer () | |
Private Attributes | |
$trueAnswerRegex | |
Additional Inherited Members | |
![]() | |
isAssoc ($array) | |
Represents a yes/no question.
Definition at line 19 of file ConfirmationQuestion.php.
__construct | ( | $question, | |
$default = true , |
|||
$trueAnswerRegex = '/^y/i' |
|||
) |
Constructor.
string | $question | The question to ask to the user |
bool | $default | The default answer to return, true or false |
string | $trueAnswerRegex | A regex to match the "yes" answer |
Definition at line 30 of file ConfirmationQuestion.php.
References Question\$default, Question\$question, ConfirmationQuestion\$trueAnswerRegex, ConfirmationQuestion\getDefaultNormalizer(), and Question\setNormalizer().
|
private |
Returns the default answer normalizer.
Definition at line 43 of file ConfirmationQuestion.php.
References Question\$default, ConfirmationQuestion\$trueAnswerRegex, and Question\getDefault().
Referenced by ConfirmationQuestion\__construct().
|
private |
Definition at line 21 of file ConfirmationQuestion.php.
Referenced by ConfirmationQuestion\__construct(), and ConfirmationQuestion\getDefaultNormalizer().