1: <?php
2: /**
3: * This class implements the low 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_LowPriority extends IMP_Flag_System_Match_Header
16: {
17: /**
18: */
19: protected $_css = 'flagLowpriority';
20:
21: /**
22: */
23: protected $_id = 'lowp';
24:
25: /**
26: */
27: protected function _getLabel()
28: {
29: return _("Low Priority");
30: }
31:
32: /**
33: */
34: public function match(Horde_Mime_Headers $data)
35: {
36: return ($GLOBALS['injector']->getInstance('IMP_Ui_Headers')->getPriority($data) == 'low');
37: }
38:
39: }
40: