[ Index ]

PHP Cross Reference of phpBB-3.3.3-deutsch

title

Body

[close]

/vendor/symfony/console/Helper/ -> QuestionHelper.php (summary)

(no description)

File Size: 518 lines (17 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

QuestionHelper:: (14 methods):
  ask()
  setInputStream()
  getInputStream()
  getName()
  disableStty()
  doAsk()
  writePrompt()
  formatChoiceQuestionChoices()
  writeError()
  autocomplete()
  mostRecentlyEnteredValue()
  getHiddenResponse()
  validateAttempts()
  getShell()


Class: QuestionHelper  - X-Ref

The QuestionHelper class provides helpers to interact with the user.

ask(InputInterface $input, OutputInterface $output, Question $question)   X-Ref
Asks a question to the user.

return: mixed The user answer

setInputStream($stream)   X-Ref
Sets the input stream to read from when interacting with the user.

This is mainly useful for testing purpose.

param: resource $stream The input stream

getInputStream()   X-Ref
Returns the helper's input stream.

return: resource

getName()   X-Ref
{@inheritdoc}


disableStty()   X-Ref
Prevents usage of stty.


doAsk(OutputInterface $output, Question $question)   X-Ref
Asks the question to the user.

return: bool|mixed|string|null

writePrompt(OutputInterface $output, Question $question)   X-Ref
Outputs the question prompt.


formatChoiceQuestionChoices(ChoiceQuestion $question, $tag)   X-Ref

return: string[]
param: string $tag

writeError(OutputInterface $output, \Exception $error)   X-Ref
Outputs an error message.


autocomplete(OutputInterface $output, Question $question, $inputStream, array $autocomplete)   X-Ref
Autocompletes a question.

return: string
param: resource $inputStream

mostRecentlyEnteredValue($entered)   X-Ref
No description

getHiddenResponse(OutputInterface $output, $inputStream)   X-Ref
Gets a hidden response from user.

return: string The answer
param: OutputInterface $output      An Output instance
param: resource        $inputStream The handler resource

validateAttempts(callable $interviewer, OutputInterface $output, Question $question)   X-Ref
Validates an attempt.

return: mixed The validated response
param: callable        $interviewer A callable that will ask for a question and return the result
param: OutputInterface $output      An Output instance
param: Question        $question    A Question instance

getShell()   X-Ref
Returns a valid unix shell.

return: string|bool The valid shell name, false in case no valid shell is found



Generated: Sun Feb 14 20:08:31 2021 Cross-referenced by PHPXref 0.7.1