TractorCow\Fluent\Extension\FluentFilteredExtension
Synopsis
class FluentFilteredExtension
extends DataExtension
{
- // constants
- const SUFFIX = 'FilteredLocales';
- // members
- private static array $many_many = ;
- // methods
- public void updateCMSFields()
- public void updateStatusFlags()
- public bool isAvailableInLocale()
- public void augmentSQL()
- protected Locale|null getDataQueryLocale()
- protected bool getModeIsStage()
- public void updateLocalisationTabConfig()
- public void updateLocalisationTabColumns()
- // Inherited methods from UsesDeletePolicy
- public void updateDeleteTables()
- // Inherited methods from FluentObjectTrait
- public abstract void updateLocalisationTabColumns()
- public abstract void updateLocalisationTabConfig()
- public array LinkedLocales()
- public void augmentDataQueryCreation()
- protected void updateFluentCMSFields()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Uses
Constants
Name | Value |
---|---|
SUFFIX | 'FilteredLocales' |
Members
private
- $many_many
Methods
protected
- getDataQueryLocale() — Get current locale from given dataquery
- getModeIsStage() — There are two different DRAFT modes. One when browsing stage, and one when browsing archive. Both modes have "Stage" at the very end of their reading_mode name.
public
- augmentSQL()
- isAvailableInLocale()
- updateCMSFields()
- updateLocalisationTabColumns()
- updateLocalisationTabConfig()
- updateStatusFlags() — This method is only called if the Extension has been applied to SiteTree. If you are using this Extension on other DataObjects you will need to implement your own Extension or method on that DataObject for flagging the "filtered" state.
Inherited from TractorCow\Fluent\Model\Delete\UsesDeletePolicy
public
- updateDeleteTables() — Override delete behaviour.
Inherited from TractorCow\Fluent\Extension\Traits\FluentObjectTrait
protected
- updateFluentCMSFields() — Update CMS fields for fluent objects.
public
- LinkedLocales() — Gets list of all Locale dataobjects, linked to this record
- augmentDataQueryCreation() — Amend freshly created DataQuery objects with the current locale and frontend status
- updateLocalisationTabColumns() — Add additional columns to localisation table
- updateLocalisationTabConfig() — Add additional configs to localisation table