[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Application/CLI/ -> ColorStyle.php (summary)

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: 261 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 6 functions

  __construct()
  __toString()
  fromString()
  getStyle()
  getKnownColors()
  getKnownOptions()

Functions
Functions that are not part of a class:

__construct(string $fg = '', string $bg = '', array $options = [])   X-Ref
Constructor

param: string  $fg       Foreground color.
param: string  $bg       Background color.
param: array   $options  Style options.

__toString()   X-Ref
Convert to a string.

return: string

fromString(string $string)   X-Ref
Create a color style from a parameter string.

Example: fg=red;bg=blue;options=bold,blink

param: string  $string  The parameter string.
return: $this

getStyle()   X-Ref
Get the translated color code.

return: string

getKnownColors()   X-Ref
Get the known colors.

return: string[]

getKnownOptions()   X-Ref
Get the known options.

return: string[]



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer