PEAR2_Console_Color-0.1.0 › PEAR2_Console_Color-0.1.0/php/PEAR2/Console/Color/ColorMapper.php
- PEAR2_Console_Color-0.1.0/
- php/
- PEAR2/
- php/
- package.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* ColorMapper class for PEAR2_Console_Color
* Mappping the names of color to your values
*
* @category Console
* @package PEAR2_Console_Color
* @author Ivo Nascimento <ivo@o8o.com.br>
* @copyright 2011 Ivo Nascimento
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @link
*/
namespace PEAR2\Console\Color;
/**
*
* this class have the possibles values to an Font Color
* the percent[n] constants are mappers to %[n] values
* @author Ivo Nascimento <ivo@o8o.com.br>
* @copyright 2011 Ivo Nascimento
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
*
*/
class ColorMapper extends Mapper
{
const BLACK = 30;
const GREEN = 32;
const BROWN = 33;
const RED = 31;
const BLUE = 34;
const PURPLE = 35;
const CYAN = 36;
const GREY = 37;
const YELLOW = 33;
const percenty = self::YELLOW;
const percentg = self::GREEN;
const percentb = self::BLUE;
const percentr = self::RED;
const percentp = self::PURPLE;
const percentm = self::PURPLE;
const percentc = self::CYAN;
const percentw = self::GREY;
const percentk = self::BLACK;
const percentn = 0;
const RESET = 0;
}
EOF
