NAME

Quiki::Users - Quiki pages manager

SYNOPSIS

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);

DESCRIPTION

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.

lock

This function is used to gain a lock to edit a given page.

unlock

This function is used to free a lock to edit a given page.

locked

This function is used to verify if exists lock to a given page.

check_in

This function is used to update new content to a page. It creates a diff file and increments the revision number.

check_out

This function returns the content for a given page and revision number.

calc_diff

This function calculates the diff between any two given revisions for a page.

SEE ALSO

Quiki, perl(1)

AUTHOR

Alberto Simões, <ambs@cpan.org> Nuno Carvalho, <smash@cpan.org>

COPYRIGHT & LICENSE

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.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 165:

Non-ASCII character seen before =encoding in 'Simões,'. Assuming UTF-8