summaryrefslogtreecommitdiffstats
path: root/Bugzilla/User.pm
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-12-05 17:35:10 +0100
committerDave Lawrence <dlawrence@mozilla.com>2012-12-05 17:35:10 +0100
commitd6c87445aa63af62cf5b93d546807afc2429e7fd (patch)
tree762949a7f574ed7883f0bcfddbf560e15a965037 /Bugzilla/User.pm
parentf3bcc1d514bb75557a2da8404b468e4e34e76d95 (diff)
parentd8b74774531bf854695f6b1497a405bc78b54559 (diff)
downloadbugzilla-d6c87445aa63af62cf5b93d546807afc2429e7fd.tar.gz
bugzilla-d6c87445aa63af62cf5b93d546807afc2429e7fd.tar.xz
merged with bugzilla/4.2
Diffstat (limited to 'Bugzilla/User.pm')
-rw-r--r--Bugzilla/User.pm29
1 files changed, 29 insertions, 0 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index 0b4c1c867..151919bf8 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -2213,6 +2213,35 @@ Returns a hashref with tag IDs as key, and a hashref with tag 'id',
=back
+=head2 Saved Recent Bug Lists
+
+=over
+
+=item C<recent_searches>
+
+Returns an arrayref of L<Bugzilla::Search::Recent> objects
+containing the user's recent searches.
+
+=item C<recent_search_containing(bug_id)>
+
+Returns a L<Bugzilla::Search::Recent> object that contains the most recent
+search by the user for the specified bug id. Retuns undef if no match is found.
+
+=item C<recent_search_for(bug)>
+
+Returns a L<Bugzilla::Search::Recent> object that contains a search by the
+user. Uses the list_id of the current loaded page, or the referrer page, and
+the bug id if that fails. Finally it will check the BUGLIST cookie, and create
+an object based on that, or undef if it does not exist.
+
+=item C<save_last_search>
+
+Saves the users most recent search in the database if logged in, or in the
+BUGLIST cookie if not logged in. Parameters are bug_ids, order, vars and
+list_id.
+
+=back
+
=head2 Account Lockout
=over