lib/base/BaseDeploy.class.php
static protected function inputPrompt($message, $default = '', $isPassword = false)
	{
		fwrite(STDOUT, $message);

		if (!$isPassword)
		{
			$input = trim(fgets(STDIN));
		}
		else
		{
			$input = self::getPassword(false);
			echo PHP_EOL;
		}

		if ($input == '')
			$input = $default;

		return $input;
	}
static protected function inputPrompt($message, $default = '', $isPassword = false)
	{
		fwrite(STDOUT, $message);

		if (!$isPassword)
		{
			$input = trim(fgets(STDIN));
		}
		else
		{
			$input = self::getPassword(false);
			echo PHP_EOL;
		}

		if ($input == '')
			$input = $default;

		return $input;
	}
static protected function inputPrompt ( $ message , $ default = '' , $ isPassword = false ) { fwrite ( STDOUT , $ message ) ; if ( ! $ isPassword ) { $ input = trim ( fgets ( STDIN ) ) ; } else { $ input = self :: getPassword ( false ) ; echo PHP_EOL ; } if ( $ input == '' ) $ input = $ default ; return $ input ; }
Asks the user for input

@param string $message
@param string $default
@param boolean $isPassword
@return string
Asks the user for input