input/YesNoInputRequest.php
Encapsulates an input request that returns a boolean (yes/no).
- Author
- Hans Lellelid
- Package
- phing.input
- Version
- $Revision: 526 $
\YesNoInputRequest
Package: phing\input
Parameters
Returns
Returns
Encapsulates an input request that returns a boolean (yes/no).
- Parent(s)
- \MultipleChoiceInputRequest < \InputRequest
- Author
- Hans Lellelid
- Version
- $Revision: 526 $
Properties

$choices= 'array()'
inheritedInherited from:
\MultipleChoiceInputRequest::$choices
Default value
array()Details- Type
- Inherited_from
- \MultipleChoiceInputRequest::$choices

$defaultValue= ''
inheritedInherited from:
\InputRequest::$defaultValue
Details
- Type
- Inherited_from
- \InputRequest::$defaultValue

$input= ''
inheritedInherited from:
\InputRequest::$input
Details
- Type
- Inherited_from
- \InputRequest::$input

$prompt= ''
inheritedInherited from:
\InputRequest::$prompt
Details
- Type
- Inherited_from
- \InputRequest::$prompt

$promptChar= ''
inheritedInherited from:
\InputRequest::$promptChar
Details
- Type
- Inherited_from
- \InputRequest::$promptChar
Methods

__construct(
string $prompt, array $choices
)
:
void
inherited
Inherited from:
\MultipleChoiceInputRequest::__construct()
| Name | Type | Description |
|---|---|---|
| $prompt | string | The prompt to show to the user. Must not be null. |
| $choices | array | holds all input values that are allowed. Must not be null. |

getChoices(
)
:
\The
inherited
Inherited from:
\MultipleChoiceInputRequest::getChoices()
| Type | Description |
|---|---|
| \The | possible values. |

isInputValid(
)
:
trueIs the user input valid?
| Type | Description |
|---|---|
| true | if the input is one of the allowed values. |