PEAR2_Console_Color-0.1.0PEAR2_Console_Color-0.1.0/php/PEAR2/Console/Color/StyleMapper.php

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
<?php

/**
 * StyleMapper class for PEAR2_Console_Color
 * Mappping the names of Font Style 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      http://svn.php.net/repository/pear2/PEAR2_Console_Color
 */
namespace PEAR2\Console\Color;
/**
 * 
 * this class have the possibles values to an Font Style
 * the percent[n] constants / property 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 StyleMapper extends ColorMapper
{
    const NORMAL         = 0;
    const BOLD           = 1;
    const LIGHT          = 1;
    const UNDERSCORE     = 4;
    const UNDERLINE      = 4;
    const BLINK          = 5;
    const INVERSE        = 6;
    const HIDDEN         = 8;
    const CONCEALED      = 8;
    public static $percentY = Array(ColorMapper::YELLOW,self::LIGHT);
    public static $percentG    = Array(ColorMapper::GREEN,self::LIGHT);
    public static $percentB    = Array(ColorMapper::BLUE,self::LIGHT);
    public static $percentR    = Array(ColorMapper::RED,self::LIGHT);
    public static $percentP    = Array(ColorMapper::PURPLE,self::LIGHT);
    public static $percentM    = Array(ColorMapper::PURPLE,self::LIGHT);
    public static $percentC    = Array(ColorMapper::CYAN,self::LIGHT);
    public static $percentW    = Array(ColorMapper::GREY,self::LIGHT);
    public static $percentK    = Array(ColorMapper::BLACK,self::LIGHT);
    public static $percentN    = Array(ColorMapper::RESET,self::LIGHT);
}
EOF