PHP Класс kahlan\cli\Cli

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_vt100 array ANSI/VT100 color/format sequences.
$_vtbackground string The default background color.
$_vtcolor string The default color.
$_vtstyle string The default style.

Открытые методы

Метод Описание
bell ( integer $count = 1 ) Bells.
color ( mixed $string, string | array $options = null ) Return a VT100 colored string.

Защищенные методы

Метод Описание
_vt100 ( mixed $name ) : integer Returns a ANSI/VT100 number from a color name.
_vtbackground ( mixed $name ) : integer Returns the ANSI/VT100 number from a backgound color name.
_vtcolor ( mixed $name ) : integer Returns the ANSI/VT100 number from a color name.
_vtstyle ( mixed $name ) : integer Returns a ANSI/VT100 number from a style name.

Описание методов

_vt100() защищенный статический Метод

Returns a ANSI/VT100 number from a color name.
protected static _vt100 ( mixed $name ) : integer
$name mixed A color name string or a ANSI/VT100 number.
Результат integer A ANSI/VT100 number.

_vtbackground() защищенный статический Метод

Returns the ANSI/VT100 number from a backgound color name.
protected static _vtbackground ( mixed $name ) : integer
$name mixed A backgound color name string or a ANSI/VT100 number.
Результат integer A ANSI/VT100 number.

_vtcolor() защищенный статический Метод

Returns the ANSI/VT100 number from a color name.
protected static _vtcolor ( mixed $name ) : integer
$name mixed A color name string or a ANSI/VT100 number.
Результат integer A ANSI/VT100 number.

_vtstyle() защищенный статический Метод

Returns a ANSI/VT100 number from a style name.
protected static _vtstyle ( mixed $name ) : integer
$name mixed A style name string or a ANSI/VT100 number.
Результат integer A ANSI/VT100 number.

bell() публичный статический Метод

Bells.
public static bell ( integer $count = 1 )
$count integer Number of times that the bells must ring.

color() публичный статический Метод

Return a VT100 colored string.
public static color ( mixed $string, string | array $options = null )
$string mixed The string to color.
$options string | array The possible values for an array are: - `'style`: a style code. - `'color'`: a color code. - `'background'`: a background color code. The string must respect one of the following format: - `'style;color;background'`. - `'style;color'`. - `'color'`.

Описание свойств

$_vt100 защищенное статическое свойство

ANSI/VT100 color/format sequences.
protected static array $_vt100
Результат array

$_vtbackground защищенное статическое свойство

The default background color.
protected static string $_vtbackground
Результат string

$_vtcolor защищенное статическое свойство

The default color.
protected static string $_vtcolor
Результат string

$_vtstyle защищенное статическое свойство

The default style.
protected static string $_vtstyle
Результат string