source: bookmarks/trunk/lib/Bookmarks/Search.pm @ 81

Last change on this file since 81 was 71, checked in by peter, 11 years ago
  • added a Bookmarks::Search class that encapsulates the query, tags, limit, and offset values for a given search
  • Bookmarks::List now has a search attribute that takes a Bookmarks::Search object instead of the individual attributes from the search
  • Bookmarks::get_cotags() takes a Bookmarks::Search object as its search parameter instead of discrete tags and query parameters
  • changed the name of the Bookmarks::get_bookmarks() parameter from tag to tags to align with the rest of the backend APIs
File size: 206 bytes
Line 
1package Bookmarks::Search;
2
3use Moose;
4
5has query  => (is => 'ro');
6has tags   => (
7    is => 'ro',
8    default => sub { [] },
9);
10has limit  => (is => 'ro');
11has offset => (is => 'ro');
12
13# module return
141;
Note: See TracBrowser for help on using the repository browser.