|
Doctrine 1.2.4
|
Inherited by Doctrine_Cli_AnsiColorFormatter.
Public Member Functions | |
| __construct ($maxLineSize=65) | |
| excerpt ($text, $size=null) | |
| format ($text= '', $parameters=array(), $stream=STDOUT) | |
| formatSection ($section, $text, $size=null) | |
| setMaxLineSize ($size) | |
Definition at line 43 of file Formatter.php.
| Doctrine_Cli_Formatter::__construct | ( | $maxLineSize = 65 | ) |
__construct
| string | $maxLineSize |
Definition at line 53 of file Formatter.php.
| Doctrine_Cli_Formatter::excerpt | ( | $text, | |
$size = null |
|||
| ) |
Truncates a line.
| string | The text |
| integer | The maximum size of the returned string (65 by default) |
Definition at line 92 of file Formatter.php.
| Doctrine_Cli_Formatter::format | ( | $text = '', |
|
$parameters = array(), |
|||
$stream = STDOUT |
|||
| ) |
Formats a text according to the given parameters.
| string | The test to style |
| mixed | An array of parameters |
| stream | A stream (default to STDOUT) |
Definition at line 67 of file Formatter.php.
| Doctrine_Cli_Formatter::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 79 of file Formatter.php.
| Doctrine_Cli_Formatter::setMaxLineSize | ( | $size | ) |
Sets the maximum line size.
| integer | The maximum line size for a message |
Definition at line 112 of file Formatter.php.