Ubiquity\devtools\cmd$ConsoleFormatter This class is part of Ubiquity.
More...
|
| static | colorize ($string, $color=null, $bgColor=null) |
| | Returns a colored string.
|
| |
| static | showInfo ($content, $dColor=self::CYAN) |
| |
| static | isSupported () |
| |
| static | formatContent ($content, $prefix=" · ") |
| | Format a multilines content.
|
| |
| static | showMessage ($content, $type='info', $title=null) |
| | Return a formated message.
|
| |
| static | formatHtml ($str) |
| | Format an html message (only for bold values).
|
| |
Ubiquity\devtools\cmd$ConsoleFormatter This class is part of Ubiquity.
- Author
- jc
- Version
- 1.0.0
Definition at line 12 of file ConsoleFormatter.php.
◆ colorize()
| static colorize |
( |
|
$string, |
|
|
|
$color = null, |
|
|
|
$bgColor = null |
|
) |
| |
|
static |
Returns a colored string.
- Parameters
-
| string | $string | |
| string | $color | |
| string | $bgColor | |
- Returns
- string
Definition at line 28 of file ConsoleFormatter.php.
◆ escape()
◆ formatContent()
| static formatContent |
( |
|
$content, |
|
|
|
$prefix = " · " |
|
) |
| |
|
static |
Format a multilines content.
- Parameters
-
| string | $content | |
| string | $prefix | |
- Returns
- string
Definition at line 84 of file ConsoleFormatter.php.
◆ formatHtml()
| static formatHtml |
( |
|
$str | ) |
|
|
static |
Format an html message (only for bold values).
- Parameters
-
- Returns
- mixed
Definition at line 135 of file ConsoleFormatter.php.
◆ isSupported()
◆ prefixLines()
| static prefixLines |
( |
|
$str, |
|
|
|
$prefix |
|
) |
| |
|
staticprivate |
◆ showInfo()
| static showInfo |
( |
|
$content, |
|
|
|
$dColor = self::CYAN |
|
) |
| |
|
static |
◆ showMessage()
| static showMessage |
( |
|
$content, |
|
|
|
$type = 'info', |
|
|
|
$title = null |
|
) |
| |
|
static |
Return a formated message.
- Parameters
-
| string | $content | |
| string | $type | |
| ?string | $title |
- Returns
- string
Definition at line 99 of file ConsoleFormatter.php.
◆ BG_BLACK
◆ BG_BLUE
◆ BG_CYAN
◆ BG_GREEN
◆ BG_LIGHT_GRAY
| const BG_LIGHT_GRAY = '47' |
◆ BG_MAGENTA
◆ BG_RED
◆ BG_YELLOW
◆ BLACK
◆ BLUE
◆ BOLD
◆ BROWN
◆ CLEAR
◆ CYAN
◆ DARK_GREY
◆ END_BOLD
◆ GREEN
◆ LIGHT_BLUE
| const LIGHT_BLUE = '1;34' |
◆ LIGHT_CYAN
| const LIGHT_CYAN = '1;36' |
◆ LIGHT_GRAY
| const LIGHT_GRAY = '0;37' |
◆ LIGHT_GREEN
| const LIGHT_GREEN = '1;32' |
◆ LIGHT_PURPLE
| const LIGHT_PURPLE = '1;35' |
◆ LIGHT_RED
◆ PURPLE
◆ RED
◆ WHITE
◆ YELLOW
The documentation for this class was generated from the following file:
- C:/Users/myadd/Documents/GitHub/ubiquity-doc-api/vendor/phpmv/ubiquity-commands/src/Ubiquity/devtools/cmd/ConsoleFormatter.php