Changeset 71 in bookmarks for trunk/lib/Bookmarks/Controller.pm


Ignore:
Timestamp:
02/13/14 16:10:42 (10 years ago)
Author:
peter
Message:
  • 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:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Bookmarks/Controller.pm

    r70 r71  
    8585    my $list = $self->bookmarks->get_bookmarks({ 
    8686        query  => $query, 
    87         tag    => \@tags, 
     87        tags   => \@tags, 
    8888        limit  => $limit, 
    8989        offset => $offset, 
     
    104104 
    105105    # construct a feed from the most recent 12 bookmarks 
    106     my $list = $self->bookmarks->get_bookmarks({ query => $query, tag => \@tags, limit => 12 }); 
     106    my $list = $self->bookmarks->get_bookmarks({ query => $query, tags => \@tags, limit => 12 }); 
    107107    return $list->as_atom; 
    108108} 
Note: See TracChangeset for help on using the changeset viewer.