History of Framework - Developer's Guide
Version 8
The Bitweaver Framework, consisting of Liberty and Kernel, offers you a lot of functionality. Here we'll try to show how you can make use of that.
If all you need is a new data type that contains some formatted text, you might be pretty quick in implementation:
gBitSystem->setBrowserTitle()
gBitSystem->confirmDialog()
Layout assigned module titles and parameters
Business Objects a la Liberty
Up to now, the answer is to look at the SamplePackage and guess.Which base class?
If you want to create your own Business Object, you will probably use LibertyAttachable as base class, as it offers most functionality. Use LibertyContent or LibertyBase when you know what you are doing.LibertyAttachable
Classes derived from LibertyAttachable come with this functionality:- They can take title and formatted text
- They maintain creation date, creator and modification date/modificator information
- their text content is subject to the full text seach
- The calendar can display events occurring to LibertyAttachable objects.
- Upon database access (store, load) other service plugins are triggered
- history
If all you need is a new data type that contains some formatted text, you might be pretty quick in implementation:
<?php
require_once( LIBERTY_PKG_PATH.'LibertyAttachable.php' ); //import base class
define( 'BITRESOURCE_CONTENT_TYPE_GUID', 'bitresource' ); // This is used to uniquely identify the object
class BitResource extends LibertyAttachable {
/**
* During initialisation, be sure to call our base constructors
**/
function BitResource( $pContentId=NULL ) {
LibertyAttachable::LibertyAttachable();
$this->mContentId = $pContentId;
$this->mContentTypeGuid = BITRESOURCE_CONTENT_TYPE_GUID;
$parms = array(
'content_type_guid' => BITRESOURCE_CONTENT_TYPE_GUID,
'content_description' => 'Eventcal Resource',
'handler_class' => 'BitResource',
'handler_package' => 'eventcal',
'handler_file' => 'BitResource.php',
'maintainer_url' => 'mailto:guess@who.com'
);
$this->registerContentType( BITRESOURCE_CONTENT_TYPE_GUID, $parms ); // register class with Bitweaver
}
}
?>
- getServicesSQL
- prepGetList
- postGetList
LibertyContent
LibertyBase
Sorted Lists
Up to now, the answer is to look at the SamplePackage and guess.Detail Views
Up to now, the answer is to look at the SamplePackage and guess.Feedback and Confirmation
Up to now, the answer is to look at the SamplePackage and guess.gBitSystem->setBrowserTitle()
gBitSystem->confirmDialog()
Authorisation Required
Up to now, the answer is to look at the SamplePackage and guess.Menus and Modules
Up to now, the answer is to look at the SamplePackage and guess.Layout assigned module titles and parameters