Contentment::Node::Manager - Node collection manager and utility
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.
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.
This method attaches the given revision to the node collection. Any other revisions from the same node will be removed from the node collection.
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.
This class defines the following methods:
- $manager = $context->nodes
This method returns the object by which the Contentment::Node::Manager API may be reached.
Andrew Sterling Hanenkamp, <email@example.com>
Copyright 2005 Andrew Sterling Hanenkamp <firstname.lastname@example.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.