input/MultipleChoiceInputRequest.php

Show: inherited
Table of Contents

Encapsulates an input request.

Author
Stefan Bodewig  
Package
phing.input  
Version
$Revision: 526 $  

\MultipleChoiceInputRequest

Package: phing\input

Encapsulates an input request.

Parent(s)
\InputRequest
Children
\YesNoInputRequest
Author
Stefan Bodewig  
Version
$Revision: 526 $  

Properties

Propertyprotected  $choices= 'array()'
Default valuearray()Details
Type
n/a

Methods

methodpublic__construct( string $prompt, array $choices ) : void

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

methodpublicgetChoices( ) : \The

Returns
Type Description
\The possible values.
methodpublicgetDefaultValue( ) : void

methodpublicgetInput( ) : void

methodpublicgetPrompt( ) : void

methodpublicgetPromptChar( ) : void

methodpublicisInputValid( ) : true

Returns
Type Description
true if the input is one of the allowed values.
methodpublicsetDefaultValue( ) : void

methodpublicsetInput( ) : void

methodpublicsetPromptChar( ) : void

Documentation was generated by DocBlox 0.17.1.