YesNoInputRequest

Extends \MultipleChoiceInputRequest

Encapsulates an input request that returns a boolean (yes/no).

author

Hans Lellelid hans@xmpl.org

version

$Id: 659526fec1ed2e66d5b9308fba48924ea3dda494 $

package

phing.input

Methods

__construct

__construct(string $prompt) 
inherited

Arguments

$prompt

string

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

getChoices

getChoices() : \The
inherited

Response

\The

possible values.

Return the default value to use.

getDefaultValue() : mixed
inherited

Response

mixed

Retrieves the user input.

getInput() 
inherited

Retrieves the prompt text.

getPrompt() 
inherited

Return the default value to use.

getPromptChar() : string
inherited

Response

string

Is the user input valid?

isInputValid() 
inherited

Set the default value to use.

setDefaultValue(mixed $v) 
inherited

Arguments

$v

mixed

Sets the user provided input.

setInput( $input) 
inherited

Arguments

$input

Set the default value to use.

setPromptChar(string $c) 
inherited

Arguments

$c

string

Properties

choices

choices : 
inherited

Type(s)

prompt

prompt : 
inherited

Type(s)

input

input : 
inherited

Type(s)

defaultValue

defaultValue : 
inherited

Type(s)

promptChar

promptChar : 
inherited

Type(s)