1: <?php
2: /**
3: * This class handles an OR clause in a search query.
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_Search_Element_Or extends IMP_Search_Element
16: {
17: /**
18: */
19: public function createQuery($mbox, $queryob)
20: {
21: $ob = new Horde_Imap_Client_Search_Query();
22: $ob->orSearch(array($queryob));
23:
24: return $ob;
25: }
26:
27: /**
28: */
29: public function queryText()
30: {
31: return _("OR");
32: }
33:
34: }
35: