Erebot  latest
A modular IRC bot for PHP 5.3+
StylingInterface.php
1 <?php
2 /*
3  This file is part of Erebot, a modular IRC bot written in PHP.
4 
5  Copyright © 2010 François Poirotte
6 
7  Erebot is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  Erebot is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with Erebot. If not, see <http://www.gnu.org/licenses/>.
19 */
20 
21 namespace Erebot;
22 
32 {
33  // Control codes.
34 
36  const CODE_BOLD = "\002";
38  const CODE_COLOR = "\003";
40  const CODE_RESET = "\017";
42  const CODE_REVERSE = "\026";
44  const CODE_UNDERLINE = "\037";
45 
46 
47  // mIRC/PIRCH colors.
48 
50  const COLOR_WHITE = 0;
52  const COLOR_BLACK = 1;
54  const COLOR_BLUE = 2;
56  const COLOR_NAVY_BLUE = 2;
58  const COLOR_DARK_BLUE = 2;
60  const COLOR_GREEN = 3;
62  const COLOR_DARK_GREEN = 3;
64  const COLOR_RED = 4;
66  const COLOR_BROWN = 5;
68  const COLOR_PURPLE = 6;
70  const COLOR_ORANGE = 7;
72  const COLOR_OLIVE = 7;
74  const COLOR_YELLOW = 8;
76  const COLOR_LIGHT_GREEN = 9;
78  const COLOR_LIME_GREEN = 9;
80  const COLOR_CYAN = 10;
82  const COLOR_TEAL = 10;
84  const COLOR_DARK_CYAN = 10;
86  const COLOR_LIGHT_CYAN = 11;
88  const COLOR_AQUA_LIGHT = 11;
90  const COLOR_LIGHT_BLUE = 12;
92  const COLOR_ROYAL_BLUE = 12;
94  const COLOR_PINK = 13;
96  const COLOR_HOT_PINK = 13;
98  const COLOR_GRAY = 14;
100  const COLOR_GREY = 14;
102  const COLOR_DARK_GRAY = 14;
104  const COLOR_DARK_GREY = 14;
106  const COLOR_LIGHT_GRAY = 15;
108  const COLOR_LIGHT_GREY = 15;
109 
117  public function __construct(\Erebot\IntlInterface $translator);
118 
145  public function _($template, array $vars = array());
146  // @codingStandardsIgnoreEnd
147 
167  public function render($template, array $vars = array());
168 
175  public function getTranslator();
176 }
Interface to provide internationalization.
Definition: CLI.php:21
Interface for styling (formatting) capabilities.