1: <?php
2: /**
3: * QueryParameterForm Class
4: *
5: * Copyright 2007-2012 Horde LLC (http://www.horde.org/)
6: *
7: * See the enclosed file LICENSE for license information (BSD). If you
8: * did not receive this file, see http://www.horde.org/licenses/bsdl.php.
9: *
10: * @package Whups
11: */
12: class Whups_Form_Query_Parameter extends Horde_Form
13: {
14: protected $_useFormToken = false;
15:
16: public function __construct($query, $vars)
17: {
18: parent::__construct($vars, _("Query Parameters"), 'Whups_Form_Query_Parameter');
19: foreach ($query->parameters as $name) {
20: $this->addVariable($name, $name, 'text', true);
21: }
22: }
23:
24: }
25: