Symfony\Component\Console\Helper\DialogHelper
The Dialog class provides helpers to interact with the user.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class DialogHelper
extends Helper
{
- // members
- private $inputStream;
- private $shell;
- private $stty;
- // Inherited members from Helper
- protected $helperSet;
- // methods
- public integer|string|array select()
- public string ask()
- public Boolean askConfirmation()
- public string askHiddenResponse()
- public mixed askAndValidate()
- public string askHiddenResponseAndValidate()
- public void setInputStream()
- public string getInputStream()
- public void getName()
- private string|Boolean getShell()
- private void hasSttyAvailable()
- private string validateAttempts()
- // Inherited methods from Helper
- public void setHelperSet()
- public HelperSet getHelperSet()
- protected integer strlen()
Hierarchy
Extends
Extended by
Members
private
- $inputStream
- $shell
- $stty
protected
- $helperSet
Methods
private
- getShell() — Return a valid unix shell
- hasSttyAvailable()
- validateAttempts() — Validate an attempt
public
- ask() — Asks a question to the user.
- askAndValidate() — Asks for a value and validates the response.
- askConfirmation() — Asks a confirmation to the user.
- askHiddenResponse() — Asks a question to the user, the response is hidden
- askHiddenResponseAndValidate() — Asks for a value, hide and validates the response.
- getInputStream() — Returns the helper's input stream
- getName() — {@inheritDoc}
- select() — Asks the user to select a value.
- setInputStream() — Sets the input stream to read from when interacting with the user.
Inherited from Symfony\Component\Console\Helper\Helper
protected
- strlen() — Returns the length of a string, using mb_strlen if it is available.
public
- getHelperSet() — Gets the helper set associated with this helper.
- setHelperSet() — Sets the helper set associated with this helper.