login | register
07 Aug 2008 [18:23 UTC]

bitweaver - Web Application Framework and CMS

Web Application Framework and CMS

Refresh cacheHistoryPrint

LibertyPackage

Explanation of the CMS Content Engine

Created by: spiderr, Last modification: 30 Jun 2008 [09:27 UTC] by Kozuch
pkg_liberty_60px.png
Liberty Package is the heart of bitweaver's content management system. Liberty provides fundamental functionality and utility to all content built on Liberty. Liberty provides both a universal database table that all Liberty derived content is stored in, as well as a collection of features all Liberty derived content can use.

The Liberty database table stores common data such as content Title, Description, and page Data, as well as Creation and Modification dates and authors for all content. By holding all the text data for various content in one column, bitweaver achieves super fast searching, as well as simplified data storage/retrieval & text processing. But Liberty goes a step further than that.

Liberty provides a number of useful enhancements to content. Liberty is a base class that various content (blogs, wiki pages, articles, map content, etc) is built on. Through this class all content has access to Liberty's various text parsers, its image attachment utilities, its commenting utility, and the storage of historical changes (all Liberty based content automatically has a history like wiki pages traditionally do!).

Here is a conceptual image that shows how Liberty and other btiweaver packages inter-relate:

bitweaver_power.png


Liberty Classes

The vast majority of content created with bitweaver is derived from these classes.

LibertyBase

LibertyBase is a foundation class for other Liberty classes and is not something generally used by those looking to build other packages on top of Liberty.

LibertyContent

LibertyContent is our basic content class, this provides access to storage and retrieval of basic universal content properties, like title, data, history, preferences, permissions, etc.

LibertyAttachable

Deprecated in R2.0.3 in favor of LibertyMime

LibertyMime

LibertyMime builds on LibertyContent, but adds handlers for enabling files to be attached to content. File attachments can be handled in different ways. FisheyePackage for example creates a one to one relationship between a single attachment and its LibertyContent object, a Photo. WikiPages on the other hand allow multiple attachments to be associated with its LibertyContent object, a Page.

LibertyComments

LibertyComments are derived from LibertyContent and provide comments functionality to any LibertyContent derived objects, which opt in to using comments.

LibertyStructure

@todo explain

LibertySystem

@todo explain

Liberty Features

Liberty Feature
Description
Availability
Google "nofollow" comment spam protection ReleaseOne


A TikiWiki, HTML, BBCode, Wikipedia (aka MediaWiki), XML, text, etc...).
Currently there are plugins for:
  • TikiWiki format
  • HTML

There is also a highly flexible mechanism for attaching *any* id driven mechanism to content - this is call TikiStorage. The storage types are handled completely through Liberty storage plugins. Tutorial - Liberty Plugins


Schema Diagram

Here is a diagram of how the Tables interface (note this diagram was prior to ReleaseOne and the names have changed in ReleaseTwo, however the ideas are largely still the same):

tiki_content.png


Comments

Reply to this comment

When will the design be locked down?

by Jan Lindåker, Thursday 07 of October, 2004 [15:43:36 UTC]
On the bitweaver Mailing list, there has been a lot of advertizing about that the Database scheme will be locked down. This is of course important for a specific release (should perhapps go inte the release process). But from a Plugin developper standpoint this is "totally" uninteresting. The developper is only interested in if the API's are locked down or not. How will this be facilatedquestion
Reply to this comment

Class descriptions

by hiran, Thursday 28 of December, 2006 [00:36:42 UTC]
Liberty seems to be powerful, yet I don't know how to make use of it.

What I'd like to read about here is the Liberty data classes (LibertyAttachable, LibertyBase, LibertyComment, LibertyStructure, LibertySystem) and when to subclass which.