Slaven Rezić > WE_Framework-0.097_03 > internals

Download:
WE_Framework-0.097_03.tar.gz

Annotate this POD

Source  

NAME ^

internals - Some internal information about the WE_Framework

DESCRIPTION ^

ObjDB

The object metadata database is implemented as an MLDBM database. Therefore, the contents of the database can either be looked in with the show_db program or with the dump script (the latter is included with WE_Framework).

The objects in the object database are array references of four elements:

Here's an example:

    [ {'Title' => 'A Folder',
       'Id'    => '26', ...
      },   # object
      [],  # children (here: no children)
      [4], # parents
      []   # versions (here: no versions)
    ]

There are two special keys in the database:

_root_object

The value is the ID of the root object of the database (usually a WE::Obj::Site or WE::Obj::Sites).

_next_id

The value is the next free ID for new objects.

ContentDB

The current implementation of the content database is simply files in a filesystem. The file names are constructed of the corresponfing object id and the right content-type extension. If there is no content-type, then the extension ".bin" is used. For example, the object with the id 12 and the content-type text/html is "12.html".

AUTHOR ^

Slaven Rezic <slaven@rezic.de>

SEE ALSO ^

WE::DB(3).

syntax highlighting: