74e26503790ecc104e912fb683df95c441a7989f
[vuplus_webkit] / Websites / bugs.webkit.org / Bugzilla / Config / Query.pm
1 # -*- Mode: perl; indent-tabs-mode: nil -*-
2 #
3 # The contents of this file are subject to the Mozilla Public
4 # License Version 1.1 (the "License"); you may not use this file
5 # except in compliance with the License. You may obtain a copy of
6 # the License at http://www.mozilla.org/MPL/
7 #
8 # Software distributed under the License is distributed on an "AS
9 # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
10 # implied. See the License for the specific language governing
11 # rights and limitations under the License.
12 #
13 # The Original Code is the Bugzilla Bug Tracking System.
14 #
15 # The Initial Developer of the Original Code is Netscape Communications
16 # Corporation. Portions created by Netscape are
17 # Copyright (C) 1998 Netscape Communications Corporation. All
18 # Rights Reserved.
19 #
20 # Contributor(s): Terry Weissman <terry@mozilla.org>
21 #                 Dawn Endico <endico@mozilla.org>
22 #                 Dan Mosedale <dmose@mozilla.org>
23 #                 Joe Robins <jmrobins@tgix.com>
24 #                 Jacob Steenhagen <jake@bugzilla.org>
25 #                 J. Paul Reed <preed@sigkill.com>
26 #                 Bradley Baetz <bbaetz@student.usyd.edu.au>
27 #                 Joseph Heenan <joseph@heenan.me.uk>
28 #                 Erik Stambaugh <erik@dasbistro.com>
29 #                 Frédéric Buclin <LpSolit@gmail.com>
30 #
31
32 package Bugzilla::Config::Query;
33
34 use strict;
35
36 use Bugzilla::Config::Common;
37
38 $Bugzilla::Config::Query::sortkey = "12";
39
40 sub get_param_list {
41   my $class = shift;
42   my @param_list = (
43   {
44    name => 'quip_list_entry_control',
45    type => 's',
46    choices => ['open', 'moderated', 'closed'],
47    default => 'open',
48    checker => \&check_multi
49   },
50
51   {
52    name => 'mostfreqthreshold',
53    type => 't',
54    default => '2',
55    checker => \&check_numeric
56   },
57
58   {
59    name => 'mybugstemplate',
60    type => 't',
61    default => 'buglist.cgi?bug_status=UNCONFIRMED&amp;bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=REOPENED&amp;emailassigned_to1=1&amp;emailreporter1=1&amp;emailtype1=exact&amp;email1=%userid%&amp;field0-0-0=bug_status&amp;type0-0-0=notequals&amp;value0-0-0=UNCONFIRMED&amp;field0-0-1=reporter&amp;type0-0-1=equals&amp;value0-0-1=%userid%'
62   },
63
64   {
65    name => 'defaultquery',
66    type => 't',
67    default => 'bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&emailassigned_to1=1&emailassigned_to2=1&emailreporter2=1&emailcc2=1&emailqa_contact2=1&order=Importance&long_desc_type=substring'
68   },
69
70   {
71    name    => 'quicksearch_comment_cutoff',
72    type    => 't',
73    default => '4',
74    checker => \&check_numeric
75   },
76   
77   {
78    name => 'specific_search_allow_empty_words',
79    type => 'b',
80    default => 0
81   }
82   
83   );
84   return @param_list;
85 }
86
87 1;