\SiteConfig
Sitewide configuration.
This is shamlessley copy > pasted from CMS. Though have removed permissions
stuff as this is more intrinsically linked to the CMS.
- Author: Tom Rix
Synopsis
class SiteConfig
extends DataObject
implements
PermissionProvider
{
- // members
- private static array $db = ;
- private static array $many_many = ;
- private static array $disabled_themes = ;
- // methods
- public static void disable_theme()
- public void populateDefaults()
- public FieldList getCMSFields()
- public array getAvailableThemes()
- public Fieldset getCMSActions()
- public String CMSEditLink()
- public static SiteConfig current_site_config()
- public void requireDefaultRecords()
- public static SiteConfig make_site_config()
- public void providePermissions()
Hierarchy
Extends
- DataObject
Implements
- PermissionProvider
Members
private
- $db
- $disabled_themes — array
- $many_many
Methods
public
- CMSEditLink()
- current_site_config() — Get the current sites SiteConfig, and creates a new one through {@link make_site_config()} if none is found.
- disable_theme()
- getAvailableThemes() — Get all available themes that haven't been marked as disabled.
- getCMSActions() — Get the actions that are sent to the CMS. In your extensions: updateEditFormActions($actions)
- getCMSFields() — Get the fields that are sent to the CMS. In your extensions: updateCMSFields($fields)
- make_site_config() — Create SiteConfig with defaults from language file.
- populateDefaults()
- providePermissions()
- requireDefaultRecords() — Setup a default SiteConfig record if none exists