\ExtraTable_FluentSiteTree
All functions are copied from fluent module > FluentSiteTree.php
- Author: Jason Zhang <jason.zhang@internetrix.com.au>
Synopsis
class ExtraTable_FluentSiteTree
extends ExtraTable_FluentExtension
{
- // methods
- public void MetaTags()
- public void onBeforeWrite()
- public void contentcontrollerInit()
- public void updateRelativeLink()
- public void LocaleLink()
- public void updateCMSFields()
- // Inherited methods from ExtraTable_FluentExtension
- public static array translated_fields_for()
- protected array getTranslatedTables()
- public static void get_extra_config()
- protected string localiseTableSelect()
- protected string localiseFilterCondition()
- protected void localiseJoin()
- public void augmentSQL()
- public void augmentWrite()
- public void onAfterDelete()
- public void updateCMSFields()
- public static void ConfigVersionedDataObject()
- public static void ChangeExtensionOrder()
- public void augmentDatabase()
- public void requireExtraTable()
- public void generateLocaleDBFields()
- public void generateLocaleIndexesFields()
- public void requireExtraVersionedTable()
Hierarchy
Extends
Tasks
Line | Task |
---|---|
538+ | find a better way to define extensions order.... e.g. SiteTree extension order need to be like that. 'Versioned' should be above 'FluentSiteTree' or 'ExtraTable_FluentExtension' 1 => string 'Hierarchy' 2 => string 'Versioned('Stage', 'Live')' 3 => string 'SiteTreeLinkTracking' 4 => string 'ExtraTable_FluentSiteTree' replicate the following setting in your mysite/_config.php if you add ExtraTable_FluentExtension for Versioned DataObject like SiteTree. Don't worry about sub classes of SiteTree or Versioned DataObject. |
Methods
public
- LocaleLink()
- MetaTags()
- contentcontrollerInit() — Ensure that the controller is correctly initialised
- onBeforeWrite()
- updateCMSFields()
- updateRelativeLink()
Inherited from ExtraTable_FluentExtension
protected
- getTranslatedTables() — Override
- localiseFilterCondition() — Replaces all columns in the given condition with any localised
- localiseJoin() — Left join locale tables to SQLQuery.
- localiseTableSelect() — Generates a select fragment based on a field with a fallback
public
- ChangeExtensionOrder() — have to move fluent related extension to bottom of ext list to make it work for Versioned extension.
- ConfigVersionedDataObject()
- augmentDatabase()
- augmentSQL() — Override
- augmentWrite()
- generateLocaleDBFields()
- generateLocaleIndexesFields()
- get_extra_config() — Override - stop generating locales db table columns.
- onAfterDelete()
- requireExtraTable()
- requireExtraVersionedTable()
- translated_fields_for() — Override
- updateCMSFields()