Last change
on this file since 73 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
|
Rev | Line | |
---|
[71] | 1 | package Bookmarks::Search; |
---|
| 2 | |
---|
| 3 | use Moose; |
---|
| 4 | |
---|
| 5 | has query => (is => 'ro'); |
---|
| 6 | has tags => ( |
---|
| 7 | is => 'ro', |
---|
| 8 | default => sub { [] }, |
---|
| 9 | ); |
---|
| 10 | has limit => (is => 'ro'); |
---|
| 11 | has offset => (is => 'ro'); |
---|
| 12 | |
---|
| 13 | # module return |
---|
| 14 | 1; |
---|
Note: See
TracBrowser
for help on using the repository browser.