classes/phing/input/ConsoleInputHandler.php
public function handleInput(InputRequest $request)
    {
        $questionHelper = new QuestionHelper();
        if (method_exists($questionHelper, 'setInputStream')) {
            $questionHelper->setInputStream($this->inputStream);
        }

        $question = $this->getQuestion($request);

        if ($request->isHidden()) {
            $question->setHidden(true);
        }

        $input = new StringInput('');
        if (method_exists($input, 'setStream')) {
            $input->setStream($this->inputStream);
        }

        $result = $questionHelper->ask($input, $this->output, $question);

        $request->setInput($result);
    }
public function handleInput(InputRequest $request)
    {
        $questionHelper = new QuestionHelper();
        if (method_exists($questionHelper, 'setInputStream')) {
            $questionHelper->setInputStream($this->inputStream);
        }

        $question = $this->getQuestion($request);

        if ($request->isHidden()) {
            $question->setHidden(true);
        }

        $input = new StringInput('');
        if (method_exists($input, 'setStream')) {
            $input->setStream($this->inputStream);
        }

        $result = $questionHelper->ask($input, $this->output, $question);

        $request->setInput($result);
    }
public function handleInput ( InputRequest $ request ) { $ questionHelper = new QuestionHelper ( ) ; if ( method_exists ( $ questionHelper , 'setInputStream' ) ) { $ questionHelper -> setInputStream ( $ this -> inputStream ) ; } $ question = $ this -> getQuestion ( $ request ) ; if ( $ request -> isHidden ( ) ) { $ question -> setHidden ( true ) ; } $ input = new StringInput ( '' ) ; if ( method_exists ( $ input , 'setStream' ) ) { $ input -> setStream ( $ this -> inputStream ) ; } $ result = $ questionHelper -> ask ( $ input , $ this -> output , $ question ) ; $ request -> setInput ( $ result ) ; }
Handle the request encapsulated in the argument.

<p>Precondition: the request.getPrompt will return a non-null
value.</p>

<p>Postcondition: request.getInput will return a non-null
value, request.isInputValid will return true.</p>

@param  InputRequest $request
@return void
Handle the request encapsulated in the argument .