1: <?php
2: /**
3: * Copyright 2010-2014 Horde LLC (http://www.horde.org/)
4: *
5: * See the enclosed file COPYING for license information (GPL). If you
6: * did not receive this file, see http://www.horde.org/licenses/gpl.
7: *
8: * @category Horde
9: * @copyright 2010-2014 Horde LLC
10: * @license http://www.horde.org/licenses/gpl GPL
11: * @package IMP
12: */
13:
14: /**
15: * Handles an OR clause in a search query.
16: *
17: * @author Michael Slusarz <slusarz@horde.org>
18: * @category Horde
19: * @copyright 2010-2014 Horde LLC
20: * @license http://www.horde.org/licenses/gpl GPL
21: * @package IMP
22: */
23: class IMP_Search_Element_Or extends IMP_Search_Element
24: {
25: /**
26: */
27: public function createQuery($mbox, $queryob)
28: {
29: $ob = new Horde_Imap_Client_Search_Query();
30: $ob->orSearch($queryob);
31:
32: return $ob;
33: }
34:
35: /**
36: */
37: public function queryText()
38: {
39: return _("OR");
40: }
41:
42: }
43: