DefaultInputHandler

Implements \InputHandler

Prompts using print(); reads input from Console.

author

Hans Lellelid hans@xmpl.org (Phing)

author

Stefan Bodewig stefan.bodewig@epost.de (Ant)

version

$Id$

package

phing.input

Methods

Prompts and requests input. May loop until a valid input has been entered.

handleInput(\InputRequest $request) 
throws

Arguments

$request

\InputRequest

Constructs user prompt from a request.

getPrompt(\InputRequest $request) 

This implementation adds (choice1,choice2,choice3,...) to the prompt for MultipleChoiceInputRequests.

Arguments

$request

\InputRequest

the request to construct the prompt for. Must not be null.