1: <?php
2: /**
3: * This class implements the high priority flag.
4: *
5: * Copyright 2010-2012 Horde LLC (http://www.horde.org/)
6: *
7: * See the enclosed file COPYING for license information (GPL). If you
8: * did not receive this file, see http://www.horde.org/licenses/gpl.
9: *
10: * @author Michael Slusarz <slusarz@horde.org>
11: * @category Horde
12: * @license http://www.horde.org/licenses/gpl GPL
13: * @package IMP
14: */
15: class IMP_Flag_System_HighPriority extends IMP_Flag_System_Match_Header
16: {
17: /**
18: */
19: protected $_abbreviation = '!';
20:
21: /**
22: */
23: protected $_bgcolor = '#fcc';
24:
25: /**
26: */
27: protected $_css = 'flagHighpriority';
28:
29: /**
30: */
31: protected $_id = 'highp';
32:
33: /**
34: */
35: protected function _getLabel()
36: {
37: return _("High Priority");
38: }
39:
40: /**
41: */
42: public function match(Horde_Mime_Headers $data)
43: {
44: return ($GLOBALS['injector']->getInstance('IMP_Ui_Headers')->getPriority($data) == 'high');
45: }
46:
47: }
48: