input/DefaultInputHandler.php

Show: inherited
Table of Contents

\DefaultInputHandler

Package: phing\input

Prompts using print(); reads input from Console.

Implements
\InputHandler
Author
Hans Lellelid (Phing)  
Author
Stefan Bodewig (Ant)  
Version
$Revision: 1334 $  

Methods

methodprotectedgetPrompt( \$request $request ) : void

Constructs user prompt from a request.

This implementation adds (choice1,choice2,choice3,...) to the prompt for

MultipleChoiceInputRequest
s.

Parameters
Name Type Description
$request \$request

the request to construct the prompt for. Must not be null.

methodpublichandleInput(  $request ) : void

Prompts and requests input. May loop until a valid input has been entered.

Precondition: the request.getPrompt will return a non-null value.

Postcondition: request.getInput will return a non-null value, request.isInputValid will return true.

Parameters
Name Type Description
$request
Throws
Exception Description
\BuildException
Documentation was generated by DocBlox 0.15.1.