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
$Revision: 526 $  

\YesNoInputRequest

Package: phing\input

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

Parent(s)
\MultipleChoiceInputRequest < \InputRequest
Author
Hans Lellelid  
Version
$Revision: 526 $  

Properties

Propertyprotected  $choices= 'array()'
inheritedInherited from: \MultipleChoiceInputRequest::$choices
Default valuearray()Details
Type
Inherited_from
\MultipleChoiceInputRequest::$choices  
Propertyprotected  $defaultValue= ''
inheritedInherited from: \InputRequest::$defaultValue
Details
Type
Inherited_from
\InputRequest::$defaultValue  
Propertyprotected  $input= ''
inheritedInherited from: \InputRequest::$input
Details
Type
Inherited_from
\InputRequest::$input  
Propertyprotected  $prompt= ''
inheritedInherited from: \InputRequest::$prompt
Details
Type
Inherited_from
\InputRequest::$prompt  
Propertyprotected  $promptChar= ''
inheritedInherited from: \InputRequest::$promptChar
Details
Type
Inherited_from
\InputRequest::$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()
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()
methodpublicgetPromptChar( ) : string
inherited

Return the default value to use.

Inherited from: \InputRequest::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()
Parameters
Name Type Description
$v mixed
methodpublicsetInput(  $input ) : void
inherited

Sets the user provided input.

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

Set the default value to use.

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