WE_Singlesite::Root - a simple implementation for a site
$root = new WE_Singlesite::Root -rootdir => $root_directory_for_database;
A simple instantiation for
The root directory for all databases.
To change the default classes for the subdatabases, override the following methods to return another class string:
By default WE::DB::Obj
By default WE::DB::User
By default WE::DB::Content
By default WE::DB::OnlineUser
By default WE::DB::Name
To change the default file names for the subdatabases, override the following methods to return another filename (just the basename):
By default objdb.db
By default userdb.db
By default content
By default onlinedb.db
By default name.db
To change other aspects of the subdatabases, change the following methods (WARNING: The semantics of the following two may change!!!):
Return a true value if the current user is allowed to do
$action on object
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.
Release the page with object $obj. Pass the object, not the id. If the value of the
-useversioning argument is true, then do a check-in of the released objects (see also
WEprojectinfo). The arguments
Rights are used, if defined, to set the respective object members.
Historically this module preloaded the standard ObjDB, UserDB, ContentDB, OnlineUserDB and NameDB classes with
WE::DB->use_databases. Since about 2005-01-23 this modules are only preloaded if actually needed (that is, on construction time). This means that some inherited modules which depend on this preloading should do the preloading itself now.
See incompatible change in "HISTORY".
Slaven Rezic - email@example.com