App::Zapzi::Articles - routines to access Zapzi articles
version 0.017
These routines allow access to Zapzi articles via the database.
Returns a resultset of articles that are in $folder.
$folder
Returns the resultset for the article identified by id.
id
Return a summary of articles in folder as a list of articles, each item being a hash ref with keys id, created, source, text and title.
folder
Adds a new article. args is a hash that must contain
args
title - title of the article
title
source - source, eg file or URL, of the article
source
folder - name of the folder to store it in
text - text of the article
text
The routine will croak if the wrong args are provided, if the folder does not exist or if the article can't be created in the database.
Move the given article to folder new_folder. Will croak if the folder or article does not exist.
new_folder
Deletes article id if it exists. Returns the DB result status for the deletion.
Returns the text of article id if it exists, else undef. Text will be wrapped in a HTML header so it can be viewed separately.
Rupert Lane <rupert@rupert-lane.org>
This software is copyright (c) 2015 by Rupert Lane.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install App::Zapzi, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Zapzi
CPAN shell
perl -MCPAN -e shell install App::Zapzi
For more information on module installation, please visit the detailed CPAN module installation guide.