Changes between Version 4 and Version 5 of Bookmarks Project/Wishlist


Ignore:
Timestamp:
02/25/16 14:16:54 (9 years ago)
Author:
peter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Bookmarks Project/Wishlist

    v4 v5  
    77    - better name 
    88 
    9 Deleting bookmarks 
     9== Deleting bookmarks == 
    1010{{{ 
    1111    sub delete { 
     
    1919    } 
    2020}}} 
    21 Paging of results (will require counting bookmark total) 
    22 {{{ 
    23     sub get_count { 
    24         my $self = shift; 
    25         my $search = shift; 
     21Or add a `deleted` column to the bookmark table that gets updated with a timestamp when a bookmark is deleted. 
    2622 
    27         my ($sql, @bind) = sql_interp( 
    28             'select count(*) from resources join bookmarks on resources.uri = bookmarks.uri', 
    29             $self->_sql_where_clause($search), 
    30         ); 
    31         my $sth = $self->dbh->prepare($sql); 
    32         $sth->execute(@bind); 
    33         my ($count) = $sth->fetchrow_array; 
    34         return $count; 
    35     } 
    36 }}} 
    37  
    38 Renaming tags: 
     23== Renaming tags == 
    3924{{{#!perl 
    4025sub rename_tag {