Comments: on this page. Click to read or post your own.
Plug-ins for additional functionality in your DataObjects
DataObject decorators add extra functionality to your data objects.
Located in /sapphire/core/model/DataObjectDecorator.php (line 9)
Object | --Extension | --DataObjectDecorator
| Class | Description |
|---|---|
| DataObjectDecoratorTest_ContactRole | Plug-ins for additional functionality in your DataObjects |
| DataObjectTest_Team_Decorator | Plug-ins for additional functionality in your DataObjects |
| FormScaffolderTest_ArticleDecorator | Plug-ins for additional functionality in your DataObjects |
| Hierarchy | DataObjects that use the Hierachy decorator can be be organised as a hierachy, with children and parents. |
| Versioned | The Versioned decorator allows your DataObjects to have several versions, allowing you to rollback changes and view history. An example of this is the pages used in the CMS. |
| Translatable | The {Translatable} decorator allows your DataObjects to have versions in different languages, defining which fields are can be translated. |
| StaticPublisher | Plug-ins for additional functionality in your DataObjects |
| EcommerceRole | EcommerceRole is a DataObjectDecorator for the member class to allow additional member fields for the module. It has a base set of contact fields that can be statically called anywhere in the system using singleton('Member')->getEcommerceFields(); The OrderForm and MemberForm class uses this call. |
Statics on a DataObject subclass which can be decorated onto. This list is limited for security and performance reasons.
Inherited from Extension
Extension::$allowed_actions
Extension::$owner
Inherited from Object
Object::$builtInMethods
Object::$class
Object::$classConstructed
Object::$extensions
Object::$extension_instances
Object::$extraMethods
Object::$extraStatics
Object::$statics
Object::$static_cached
Update the database schema as required by this extension.
Edit the given query object to support queries for this extension
Augment a write-record request.
Define extra database fields
Return a map where the keys are db, has_one, etc, and the values are additional fields/relations to be defined.
Note: please ensure that the static variable that you are overloading is explicitly defined on the class that you are extending. For example, we have added static $has_one = array() to the Member definition, so that we can add has_one relationships to Member with decorators.
If you forget to do this, db/build won't create the new relation. Don't blame us, blame PHP! ;-)
Load the extra database fields defined in extraDBFields.
This function is used to provide modifications to the form in the CMS by the decorator. By default, no changes are made.
Please consider using updateFormFields() to globally add formfields to the record. The method updateCMSFields() should just be used to add or modify tabs, or fields which are specific to the CMS-context.
Caution: Use FieldSet->addFieldToTab() to add fields.
This function is used to provide modifications to the form in the CMS by the decorator.
Caution: Use FieldSet->push() to add fields.
this function is used to provide modifications to the summary fields in CMS
by the decorator By default, the summaryField() of its owner will merge more fields defined in the decorator's $extra_fields['summary_fields']
Inherited From Extension
Extension::setOwner()
Inherited From Object
Object::__construct()
Object::addMethodsFrom()
Object::addStaticVars()
Object::addWrapperMethod()
Object::add_extension()
Object::allMethodNames()
Object::buildMethodList()
Object::cacheToFile()
Object::cacheToFileWithArgs()
Object::create()
Object::createMethod()
Object::defineMethods()
Object::exists()
Object::extend()
Object::extInstance()
Object::getCustomClass()
Object::hasExtension()
Object::hasMethod()
Object::invokeWithExtensions()
Object::is_a()
Object::loadCache()
Object::parentClass()
Object::sanitiseCachename()
Object::saveCache()
Object::set_stat()
Object::set_uninherited()
Object::stat()
Object::strong_create()
Object::uninherited()
Object::useCustomClass()
Object::__call()
Object::__toString()
Documentation generated on Sun, 19 Oct 2008 06:39:52 +1300 by phpDocumentor 1.3.2