TractorCow\Fluent\Extension\FluentIsolatedExtension
Represents an object that can only exist in a single locale
Note: You cannot use this extension on any object with the other fluent extensions
Synopsis
class FluentIsolatedExtension
extends DataExtension
{
- // members
- private static array $has_one = ;
- // methods
- public void onBeforeWrite()
- public void augmentDataQueryCreation()
- public void augmentDatabase()
- public void requireDefaultRecords()
- public void augmentSQL()
- protected Locale|null getDataQueryLocale()
- protected void migrateFromFilteredExtension()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
private
- $has_one
Methods
protected
- getDataQueryLocale() — Get current locale from given dataquery
- migrateFromFilteredExtension() — Soft-migration for records that used to be FluentFilteredExtension Set the locale for records with missing LocaleID to the first locale they had selected
public
- augmentDataQueryCreation() — Amend freshly created DataQuery objects with the current locale and frontend status
- augmentDatabase() — Safety checks for config are done on dev/build
- augmentSQL()
- onBeforeWrite()
- requireDefaultRecords()