Konstrukt::Plugin::bookmarks::DBI - Konstrukt bookmarks DBI backend driver
#TODO
Konstrukt bookmarks DBI backend driver.
Note that you have to create the tables bookmarks_item
and bookmarks_category
. You may turn on the install
setting (see "CONFIGURATION" in Konstrukt::Handler) or use the KonstruktBackendInitialization.pl
script to accomplish this task.
You may define those settings to use this backend.
#Backend bookmarks/backend/DBI/source dbi:mysql:database:host bookmarks/backend/DBI/user user bookmarks/backend/DBI/pass pass
If no database settings are set the defaults from "CONFIGURATION" in Konstrukt::DBI will be used.
Initialization of this class
Installs the backend (e.g. create tables).
Parameters:
none
Adds a new bookmark.
Parameters:
Returns the requested bookmark as an hash reference with the keys id, url, title, category, private, visits, author, year, month, day, hour and minute.
Parameters:
Returns the requested category and its sub-categories and -bookmarks visible to the specified author as an hash reference: { id => .., title => .., author => .., private => .., categories => [ { id => .. }, { id => .. }, ... ], bookmarks => [ { id => .., url => "..", title => "..", author => .., private => .., category => .., visits => .., year => .., month => .., ... }, ... ] }
Parameters:
Updates an existing bookmark.
Parameters:
Removes an existing bookmark.
Parameters:
Adds a new category.
Parameters:
Returns the requested category as an hash reference: { id => .., title => .., author => .., private => .., parent => ..}
Parameters:
Updates an existing category.
Parameters:
Recursively deletes an existing category and all sub-categories and -items.
Parameters:
Increates the visits counter and updates the last_visit timestamp for a specified bookmark.
Parameters:
Copyright 2006 Thomas Wittek (mail at gedankenkonstrukt dot de). All rights reserved.
This document is free software. It is distributed under the same terms as Perl itself.