\MobileSiteConfigExtension
Extension to the {@link SiteConfig} to add mobile configuration options for the entire site.
Synopsis
class MobileSiteConfigExtension
extends DataExtension
{
- // members
- protected static $theme_copy_path;
- public static boolean $theme_copy_enabled = true;
- private static array $db = ;
- private static array $defaults = ;
- // methods
- public static void set_theme_copy_path()
- public static void get_theme_copy_path()
- public void populateDefaults()
- public String getMobileDomainNormalized()
- public String getFullSiteDomainNormalized()
- public string getMobileSiteType()
- public array getMobileSiteTypes()
- public void augmentDatabase()
- public static void copyDefaultTheme()
- public void updateCMSFields()
Hierarchy
Extends
- DataExtension
Members
private
-
$db
Extra statics variable to merge into {@link SiteConfig} - $defaults
protected
- $theme_copy_path
—
string
The path the default mobile theme should be copied to when {@link SiteConfig} is first created in the database.
public
- $theme_copy_enabled
Methods
public
- augmentDatabase() — The default theme is "blackcandymobile". If this is still set as a field on SiteConfig, then make sure that it's copied into the themes directory from the mobile module.
- copyDefaultTheme()
- getFullSiteDomainNormalized()
- getMobileDomainNormalized()
- getMobileSiteType() — Provide a default if MobileSiteType is not set.
- getMobileSiteTypes() — Return possible values for the MobileSiteType field mapped to a human readable title.
- get_theme_copy_path()
- populateDefaults()
- set_theme_copy_path()
- updateCMSFields() — Append extra fields to the new Mobile tab in the cms.