WE_Singlesite::Root - a simple implementation for a site
$root = new WE_Singlesite::Root -rootdir => $root_directory_for_database;
A simple instantiation for WE::DB.
WE::DB
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!!!):
By default Data::Dumper
By default DB_File
Return a true value if the current user is allowed to do $action on object $object_id.
$action
$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.
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 useversioning in WEprojectinfo). The arguments Title, VisibleToMenu and Rights are used, if defined, to set the respective object members.
-useversioning
useversioning
WEprojectinfo
Title
VisibleToMenu
Rights
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.
WE::DB->use_databases
See incompatible change in "HISTORY".
Slaven Rezic - slaven@rezic.de
WE::DB.
To install WE::DB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WE::DB
CPAN shell
perl -MCPAN -e shell install WE::DB
For more information on module installation, please visit the detailed CPAN module installation guide.