phing-input
[ class tree: phing-input ] [ index: phing-input ] [ all elements ]

Class: DefaultInputHandler

Source Location: /input/DefaultInputHandler.php

Class Overview


Prompts using print(); reads input from Console.


Author(s):

Version:

  • $Revision: 526 $

Implements interfaces:

Methods



Class Details

[line 34]
Prompts using print(); reads input from Console.



Tags:

author:  Stefan Bodewig <stefan.bodewig@epost.de> (Ant)
author:  Hans Lellelid <hans@xmpl.org> (Phing)
version:  $Revision: 526 $


[ Top ]


Class Methods


method getPrompt [line 67]

void getPrompt( InputRequest $request)

Constructs user prompt from a request.

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

s.




Tags:

access:  protected


Parameters:

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

[ Top ]

method handleInput [line 41]

void handleInput( InputRequest $request)

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



Tags:

throws:  BuildException
access:  public



Implementation of:
InputHandler::handleInput()
Handle the request encapsulated in the argument.

Parameters:

InputRequest   $request  

[ Top ]


Documentation generated on Mon, 19 Oct 2009 10:50:45 +0200 by phpDocumentor 1.4.3