Horde_CLI:: API for basic command-line functionality/checks.
$Horde: framework/CLI/CLI.php,v 1.42.6.28 2009/11/13 14:28:40 mrubinsk Exp $
Copyright 2003-2009 The Horde Project (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
Located in /CLI/CLI.php (line 17)
The string to mark the end of bold text.
The string to mark the beginning of bold text.
The string to use for clearing the screen.
Are we running on a console?
The indent string to use.
The newline string to use.
The strings to mark the end of coloured text.
The strings to mark the beginning of coloured text.
Terminal background color codes. Not used yet.
Terminal foreground color codes. Not used yet.
CLI scripts shouldn't timeout, so try to set the time limit to none. Also initialize a few variables in $_SERVER that aren't present from the CLI.
You must not call init() statically before calling the constructor. Either use the singleton() method to retrieve a Horde_CLI object after calling init(), or don't call init() statically.
Make sure we're being called from the command line, and not via the web.
Detect the current environment (web server or console) and sets internal values accordingly.
The constructor must not be called after init(). Either use the singleton() method to retrieve a Horde_CLI object, or don't call init() statically.
Returns a blue version of $text.
Returns a bold version of $text.
Clears the entire screen, if possible.
Displays a fatal error message.
Returns a green version of $text.
Returns the indented string.
Displays a message.
Prompts for a user response.
Reads everything that is sent through standard input and returns it as a single string.
Returns a red version of $text.
Returns a single instance of the Horde_CLI class.
Prints $text on a single line.
Returns a yellow version of $text.
Destroys any session on script end.
Documentation generated on Sun, 30 Jan 2011 05:15:47 +0000 by phpDocumentor 1.4.3