1 | <?php |
||
13 | class StyleManager |
||
14 | { |
||
15 | const BOLD = 'bold'; |
||
16 | const UNDERLINE = 'underline'; |
||
17 | const BLINK = 'blink'; |
||
18 | const INVISIBLE = 'invisible'; |
||
19 | |||
20 | const BASH_BOLD = 1; |
||
21 | const BASH_UNDERLINE = 4; |
||
22 | const BASH_BLINK = 5; |
||
23 | const BASH_INVISIBLE = 8; |
||
24 | |||
25 | /** |
||
26 | * Static calls interface |
||
27 | */ |
||
28 | public static function __callstatic($name, $params) |
||
43 | |||
44 | /** |
||
45 | * Format given string in chosen style |
||
46 | * |
||
47 | * @param int $styleID |
||
48 | * |
||
49 | * @return Style |
||
50 | */ |
||
51 | public static function style($styleID) |
||
61 | |||
62 | /** |
||
63 | * Get allowed styles |
||
64 | * |
||
65 | * @return string[] |
||
66 | */ |
||
67 | public static function getKnownStyles() |
||
78 | } |
||
79 |