|
|
@ -44,21 +44,21 @@ class PostfixAdmin {
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Standard input stream.
|
|
|
|
* Standard input stream.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @var filehandle
|
|
|
|
* @var resource
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public $stdin;
|
|
|
|
public $stdin;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Standard output stream.
|
|
|
|
* Standard output stream.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @var filehandle
|
|
|
|
* @var resource
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public $stdout;
|
|
|
|
public $stdout;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Standard error stream.
|
|
|
|
* Standard error stream.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @var filehandle
|
|
|
|
* @var resource
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public $stderr;
|
|
|
|
public $stderr;
|
|
|
|
|
|
|
|
|
|
|
@ -260,7 +260,7 @@ class PostfixAdmin {
|
|
|
|
* @param string $prompt Prompt text.
|
|
|
|
* @param string $prompt Prompt text.
|
|
|
|
* @param mixed $options Array or string of options.
|
|
|
|
* @param mixed $options Array or string of options.
|
|
|
|
* @param string $default Default input value.
|
|
|
|
* @param string $default Default input value.
|
|
|
|
* @return Either the default value, or the user-provided input.
|
|
|
|
* @return string Either the default value, or the user-provided input.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function getInput($prompt, $options = null, $default = null) {
|
|
|
|
public function getInput($prompt, $options = null, $default = null) {
|
|
|
|
if (!is_array($options)) {
|
|
|
|
if (!is_array($options)) {
|
|
|
|