[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Source view] [Print] [Project Stats]
Joomla! Content Management System
Copyright: | (C) 2014 Open Source Matters, Inc. |
License: | GNU General Public License version 2 or later; see LICENSE.txt |
File Size: | 192 lines (5 kb) |
Included or required: | 0 times |
Referenced: | 2 times |
Includes or requires: | 0 files |
ColorProcessor:: (6 methods):
__construct()
addStyle()
stripColors()
process()
replaceColors()
addPredefinedStyles()
Class: ColorProcessor - X-Ref
Command line output processor supporting ANSI-colored output__construct($noColors = null) X-Ref |
Class constructor param: boolean $noColors Defines non-colored mode on construct |
addStyle($name, ColorStyle $style) X-Ref |
Add a style. param: string $name The style name. param: ColorStyle $style The color style. return: $this |
stripColors($string) X-Ref |
Strip color tags from a string. param: string $string The string. return: string |
process($string) X-Ref |
Process a string. param: string $string The string to process. return: string |
replaceColors($text, $tag, $match, ColorStyle $style) X-Ref |
Replace color tags in a string. param: string $text The original text. param: string $tag The matched tag. param: string $match The match. param: ColorStyle $style The color style to apply. return: mixed |
addPredefinedStyles() X-Ref |
Adds predefined color styles to the ColorProcessor object return: $this |
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |