|
Doctrine 1.2.4
|
Inherits Doctrine_Cli_Formatter.
Public Member Functions | |
| excerpt ($text, $size=null) | |
| format ($text= '', $parameters=array(), $stream=STDOUT) | |
| formatSection ($section, $text, $size=null) | |
| setMaxLineSize ($size) | |
| setStyle ($name, $options=array()) | |
| supportsColors ($stream) | |
Definition at line 43 of file AnsiColorFormatter.php.
| Doctrine_Cli_AnsiColorFormatter::excerpt | ( | $text, | |
$size = null |
|||
| ) |
Truncates a line.
| string | The text |
| integer | The maximum size of the returned string (65 by default) |
Definition at line 129 of file AnsiColorFormatter.php.
| Doctrine_Cli_AnsiColorFormatter::format | ( | $text = '', |
|
$parameters = array(), |
|||
$stream = STDOUT |
|||
| ) |
Formats a text according to the given style or parameters.
| string | The test to style |
| mixed | An array of options or a style name |
Definition at line 75 of file AnsiColorFormatter.php.
| Doctrine_Cli_AnsiColorFormatter::formatSection | ( | $section, | |
| $text, | |||
$size = null |
|||
| ) |
Formats a message within a section.
| string | The section name |
| string | The text message |
| integer | The maximum size allowed for a line (65 by default) |
Definition at line 114 of file AnsiColorFormatter.php.
|
inherited |
Sets the maximum line size.
| integer | The maximum line size for a message |
Definition at line 112 of file Formatter.php.
| Doctrine_Cli_AnsiColorFormatter::setStyle | ( | $name, | |
$options = array() |
|||
| ) |
Sets a new style.
| string | The style name |
| array | An array of options |
Definition at line 62 of file AnsiColorFormatter.php.
| Doctrine_Cli_AnsiColorFormatter::supportsColors | ( | $stream | ) |
Returns true if the stream supports colorization.
Colorization is disabled if not supported by the stream:
| mixed | A stream |
Definition at line 156 of file AnsiColorFormatter.php.