Changeset 7 in bookmarks for trunk/Bookmarks.pm
- Timestamp:
- 03/23/12 23:50:49 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Bookmarks.pm
r2 r7 4 4 use Bookmark; 5 5 6 has dbh => ( is => 'ro'); 6 has dbh => ( is => 'ro' ); 7 has base_uri => ( is => 'ro' ); 7 8 8 9 sub get_bookmark { … … 24 25 $sth_tag->execute($bookmark->{uri}); 25 26 $bookmark->{tags} = [ map { $$_[0] } @{ $sth_tag->fetchall_arrayref } ]; 27 if ($self->base_uri) { 28 $bookmark->{bookmark_uri} = $self->base_uri . $bookmark->{id}; 29 } 26 30 } 27 31 return $bookmark; … … 46 50 $sth_tag->execute($resource->{uri}); 47 51 $resource->{tags} = [ map { $$_[0] } @{ $sth_tag->fetchall_arrayref } ]; 52 if ($self->base_uri) { 53 $resource->{bookmark_uri} = $self->base_uri . $resource->{id}; 54 } 48 55 push @resources, $resource; 49 56 }
Note: See TracChangeset
for help on using the changeset viewer.