input/YesNoInputRequest.php

Show: inherited
Table of Contents

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

Author
Hans Lellelid  
Package
phing.input  
Version
$Id: 659526fec1ed2e66d5b9308fba48924ea3dda494 $  

\YesNoInputRequest

Package: phing\input

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

Parent(s)
\MultipleChoiceInputRequest < \InputRequest
Author
Hans Lellelid  
Version
$Id: 659526fec1ed2e66d5b9308fba48924ea3dda494 $  

Properties

Propertyprotected  $choices= 'array()'
inheritedInherited from: \MultipleChoiceInputRequest::$$choices
Default valuearray()Details
Type
n/a
Inherited_from
\MultipleChoiceInputRequest::$$choices  
Propertyprotected  $defaultValue= ''
Details
Type
n/a
Inherited_from
\InputRequest::$$defaultValue  
Inherited_from
\MultipleChoiceInputRequest::$$defaultValue  
Propertyprotected  $input= ''
Details
Type
n/a
Inherited_from
\InputRequest::$$input  
Inherited_from
\MultipleChoiceInputRequest::$$input  
Propertyprotected  $prompt= ''
Details
Type
n/a
Inherited_from
\InputRequest::$$prompt  
Inherited_from
\MultipleChoiceInputRequest::$$prompt  
Propertyprotected  $promptChar= ''
Details
Type
n/a
Inherited_from
\InputRequest::$$promptChar  
Inherited_from
\MultipleChoiceInputRequest::$$promptChar  

Methods

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

Inherited from: \MultipleChoiceInputRequest::__construct()
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
inherited

Inherited from: \MultipleChoiceInputRequest::getChoices()
Returns
Type Description
\The possible values.
methodpublicgetDefaultValue( ) : mixed
inherited

Return the default value to use.

Inherited from: \InputRequest::getDefaultValue()\MultipleChoiceInputRequest::getDefaultValue()
Returns
Type Description
mixed
methodpublicgetInput( ) : boolean

Converts input to boolean.

Returns
Type Description
boolean
methodpublicgetPrompt( ) : void
inherited

Retrieves the prompt text.

Inherited from: \InputRequest::getPrompt()\MultipleChoiceInputRequest::getPrompt()
methodpublicgetPromptChar( ) : string
inherited

Return the default value to use.

Inherited from: \InputRequest::getPromptChar()\MultipleChoiceInputRequest::getPromptChar()
Returns
Type Description
string
methodpublicisInputValid( ) : true

Is the user input valid?

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

Set the default value to use.

Inherited from: \InputRequest::setDefaultValue()\MultipleChoiceInputRequest::setDefaultValue()
Parameters
Name Type Description
$v mixed
methodpublicsetInput(  $input ) : void
inherited

Sets the user provided input.

Inherited from: \InputRequest::setInput()\MultipleChoiceInputRequest::setInput()
Parameters
Name Type Description
$input
methodpublicsetPromptChar( string $c ) : void
inherited

Set the default value to use.

Inherited from: \InputRequest::setPromptChar()\MultipleChoiceInputRequest::setPromptChar()
Parameters
Name Type Description
$c string
Documentation was generated by DocBlox 0.18.1.