InputRequest

Encapsulates an input request.

author

Hans Lellelid hans@xmpl.org (Phing)

author

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

version

$Id$

package

phing.input

Methods

__construct

__construct(string $prompt) 

Arguments

$prompt

string

The prompt to show to the user. Must not be null.

Retrieves the prompt text.

getPrompt() 

Sets the user provided input.

setInput($input) 

Arguments

$input

Is the user input valid?

isInputValid() 

Retrieves the user input.

getInput() 

Set the default value to use.

setDefaultValue(mixed $v) 

Arguments

$v

mixed

Return the default value to use.

getDefaultValue() : mixed

Response

mixed

Set the default value to use.

setPromptChar(string $c) 

Arguments

$c

string

Return the default value to use.

getPromptChar() : string

Response

string

Properties

prompt

prompt : 

input

input : 

defaultValue

defaultValue : 

promptChar

promptChar :