Quiki::Users - Quiki pages manager
use Quiki::Pages; # lock a node Quiki::Pages->lock($node, $self->{sid}); # unlock a node Quiki::Pages->unlock($node); # verify lock status $locked = Quiki::Pages->locked($node, $self->{sid})) # check in new content Quiki::Pages->check_in($self, $node, $content); # retrieve content $content = Quiki::Pages->check_out($self,$node,$rev);
This module is handles the needed operations to maintain the pages information. It is used to gain and free locks to edit pages, and implements a simple revision system for page's content.
This method is used to gain a lock to edit a given page.
This method is used to free a lock to edit a given page.
This method is used to verify if exists a lock to a given page. It returns false (page not locked) if there isn't a lock or, if a user is supplied and that user owns the lock.
This method is similar to locked and needs that a user is supplied. It returns true only if the page is locked by the supplied user.
locked
This method is used to update new content to a page. It creates a diff file and increments the revision number.
This method returns the content for a given page and revision number.
This method calculates the diff between any two given revisions for a page.
Quiki, perl(1)
Alberto Simões, <ambs@cpan.org> Nuno Carvalho, <smash@cpan.org>
Copyright 2009-2010 Alberto Simoes and Nuno Carvalho.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Quiki, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Quiki
CPAN shell
perl -MCPAN -e shell install Quiki
For more information on module installation, please visit the detailed CPAN module installation guide.