
WE_Sample::Root - a sample implementation for a site

$root = new WE_Sample::Root -rootdir => $root_directory_for_database;

A sample instantiation for WE::DB. This is mainly used for the WE_Framework test suite.

Return a true value if the current user is allowed to do $action on object $object_id.
Currently are these actions defined:
The user is allowed to release a document ("freigeben").
The user is allowed to publish a site.
The user is allowed to do folder manipulation, that is, he is allowed to add or delete folders.
The user is allowed to do document manipulation, that is, he is allowed to add, edit or delete documents.
If there is no current user, then always a false value is returned.
Return all folders and released children as an array of objects.
Return the last released version for $object_id. If there is no released version yet, return undef.

Slaven Rezic - slaven@rezic.de
