input/MultipleChoiceInputRequest.php
Encapsulates an input request.
- Author
- Stefan Bodewig
- Package
- phing.input
- Version
- $Revision: 526 $
\MultipleChoiceInputRequest
Package: phing\input
Parameters
Returns
Encapsulates an input request.
- Parent(s)
- \InputRequest
- Children
- \YesNoInputRequest
- Author
- Stefan Bodewig
- Version
- $Revision: 526 $
Properties

$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| 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. |

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