public function __construct($vars)
{
parent::__construct($vars, $vars->get('edit') ? _("Edit Text Criterion") : _("Add Text Criterion"), 'Whups_Form_Query_TextCriterion');
$this->addHidden('', 'edit', 'boolean', false);
$this->addVariable(_("Text"), 'text', 'text', true);
$this->addVariable(_("Match Operator"), 'operator', 'enum', true, false, null, array(Whups_Query::textOperators()));
$this->addVariable(_("Search Summary"), 'summary', 'boolean', false);
$this->addVariable(_("Search Comments"), 'comments', 'boolean', false);
}