input/DefaultInputHandler.php
\DefaultInputHandler
Package: phing\input
Parameters
Parameters
Throws
Prompts using print(); reads input from Console.
- Implements
- \InputHandler
- Author
- Hans Lellelid
(Phing) - Author
- Stefan Bodewig
(Ant) - Version
- $Revision: 1334 $
Methods

getPrompt(
\$request $request
)
:
voidConstructs user prompt from a request.
This implementation adds (choice1,choice2,choice3,...) to the prompt for
MultipleChoiceInputRequests.
| Name | Type | Description |
|---|---|---|
| $request | \$request | the request to construct the prompt for. Must not be |

handleInput(
$request
)
:
voidPrompts and requests input. May loop until a valid input has been entered.
Precondition: the request.getPrompt will return a non-null value.
Postcondition: request.getInput will return a non-null value, request.isInputValid will return true.
| Name | Type | Description |
|---|---|---|
| $request |
| Exception | Description |
|---|---|
| \BuildException |