Last change
on this file since 102 was
88,
checked in by peter, 9 years ago
|
Better separation of the model for searching and the web app controller/representation layer
- renamed Bookmarks::get_bookmarks() to search()
- Bookmarks::search() now returns a Bookmarks::Search object instead of a Bookmarks::List
- search results now reside in the Bookmarks::Search class
|
File size:
259 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 | |
---|
[88] | 13 | has results => (is => 'rw', default => sub { [] }); |
---|
| 14 | |
---|
[71] | 15 | # module return |
---|
| 16 | 1; |
---|
Note: See
TracBrowser
for help on using the repository browser.