diff options
author | dakkar <dakkar@luxion> | 2005-11-09 17:14:54 +0000 |
---|---|---|
committer | dakkar <dakkar@luxion> | 2005-11-09 17:14:54 +0000 |
commit | 27cff350e9e5fb832185bc14dee35b5b8f942a81 (patch) | |
tree | e89f9b5d457b711cce6d908ef0b33792cab20e75 /lib/Bookmarks/M/DB/Tags.pm | |
parent | ora il BookmarksManager gestisce per bene i tag multipli, e i template sono f... (diff) | |
download | Bookmarks-27cff350e9e5fb832185bc14dee35b5b8f942a81.tar.gz Bookmarks-27cff350e9e5fb832185bc14dee35b5b8f942a81.tar.bz2 Bookmarks-27cff350e9e5fb832185bc14dee35b5b8f942a81.zip |
* passati i template a HTML4, altrimenti l'autocompletamento non va
* aggiunto autocompletamento per i nomi di tag
* migliorato il caricatore da YAML
* aggiunto un convertitore XBEL -> YAML
* aggiunto campo 'tipo icona'
* aggiunta funzionalità di edit e delete di link
* dopo ogni update di un link, i tag non più riferiti vengono cancellati
* migliorato il recupero favicon, con tipo
Diffstat (limited to 'lib/Bookmarks/M/DB/Tags.pm')
-rw-r--r-- | lib/Bookmarks/M/DB/Tags.pm | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/Bookmarks/M/DB/Tags.pm b/lib/Bookmarks/M/DB/Tags.pm index 3686a7d..cc675f7 100644 --- a/lib/Bookmarks/M/DB/Tags.pm +++ b/lib/Bookmarks/M/DB/Tags.pm @@ -22,7 +22,7 @@ GROUP BY links_tags.tag ORDER BY how_many DESC END_SQL -__PACKAGE__->columns(TEMP=> 'how_wany'); +__PACKAGE__->columns(TEMP=> 'how_many'); sub count_links { my ($self)=@_; @@ -52,6 +52,18 @@ sub ordered_links { return sort links_sorter @links; } +sub cleanup { + my ($class)=@_; + + my @tag_list=reverse $class->search_popularity(); + + while ($tag_list[0]->how_many() == 0) { + (shift @tag_list)->delete(); + } + + return; +} + =head1 NAME Bookmarks::M::DB::Tags - CDBI Model Component Table Class |