The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Contentment::Node::Manager - Node collection manager and utility

DESCRIPTION

This class defines the object responsible for determining what node collection is in use by the current request.

As of this writing, the implementation is simplistic and always defines the node collection created during install as the current one.

METHODS

This class supports the following methods

$collection = $manager->get_current_collection

Fetch the node collection in use for thise request. In general, you probably don't want to mess with this object too much directly. The internals are kind of icky, which is why the Contentment::Node::Manager class exists after all.

$manager->add_revision_to_current_collection($revision)

This method attaches the given revision to the node collection. Any other revisions from the same node will be removed from the node collection.

$manager->remove_revision_from_current_collection($revision)

Removes this revision from the node collection. This will make the revision (and entire node) appear to be deleted (as far as most of Contentment is concerned) without actually removing the record from the database.

CONTEXT

This class defines the following methods:

$manager = $context->nodes

This method returns the object by which the Contentment::Node::Manager API may be reached.

AUTHOR

Andrew Sterling Hanenkamp, <hanenkamp@cpan.org>

LICENSE AND COPYRIGHT

Copyright 2005 Andrew Sterling Hanenkamp <hanenkamp@cpan.org>. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.