Source Location: /Console_CommandLine-1.0.0RC1/CommandLine/Renderer/Default.php
__construct (Constructor) [line 71]
Console_CommandLine_Renderer_Default __construct(
object
$parser)
Constructor.
Parameters:
object
$parser
—
a Console_CommandLine instance
argumentList [line 252]
Render the arguments list that will be displayed to the user, you can override this method if you want to change the look of the list.
- Return: the formatted argument list
- Access: protected
columnWrap [line 345]
string columnWrap(
string
$text, int
$cw)
Wraps the text passed to the method at the specified width.
Parameters:
string
$text
—
the text to wrap
int
$cw
—
the wrap width
commandList [line 312]
Render the command list that will be displayed to the user, you can override this method if you want to change the look of the list.
- Return: the formatted subcommand list
- Access: protected
commandUsageLine [line 226]
string commandUsageLine(
)
Return the command line usage message for subcommands
description [line 186]
Return the command line description message
- Return: the usage message
- Access: protected
error [line 118]
string error(
string
$error)
Return a formatted error message
- Return: the error string
- Access: public
Parameters:
string
$error
—
the error message to format
name [line 159]
return the full name of the program or the sub command
optionList [line 282]
Render the options list that will be displayed to the user, you can override this method if you want to change the look of the list.
- Return: the formatted option list
- Access: protected
usage [line 85]
Return the full usage message
- Return: the usage message
- Access: public
usageLine [line 200]
Return the command line usage message
- Return: the usage message
- Access: protected
version [line 142]
Return the program version string
- Return: the version string
- Access: public