Overview

Packages

  • None
  • Trean

Classes

  • DataTreeObject_Folder
  • SearchForm
  • Trean
  • Trean_Bookmark
  • Trean_Bookmarks
  • Overview
  • Package
  • Class
  • Tree
 1: <?php
 2: /**
 3:  * $Horde: trean/lib/Forms/Search.php,v 1.1 2007/02/04 22:52:45 chuck Exp $
 4:  *
 5:  * @package Trean
 6:  */
 7: 
 8: /** Horde_Form */
 9: require_once 'Horde/Form.php';
10: 
11: /**
12:  * @package Trean
13:  */
14: class SearchForm extends Horde_Form {
15: 
16:     function SearchForm(&$vars)
17:     {
18:         parent::Horde_Form($vars, _("Search Bookmarks"), 'Search_Bookmarks');
19: 
20:         $this->setButtons(_("Search"));
21:         $this->addVariable(_("Title"), 'title', 'text', false);
22:         $this->addVariable(_("Description"), 'description', 'text', false);
23:         $this->addVariable(_("URL"), 'url', 'text', false);
24:         $this->addVariable(_("Combine"), 'combine', 'enum', false, false, null, array(array('OR' => _("OR"), 'AND' => _("AND"))));
25:         $this->addVariable(_("Match"), 'op', 'enum', false, false, null, array(array('LIKE' => _("Any Part of the field"), '=' => _("Whole Field"))));
26:     }
27: 
28: }
29: 
API documentation generated by ApiGen