Symbiote\Multisites\Model\Site
Synopsis
class Site
extends Page
implements
HiddenClass,PermissionProvider
{
- // members
- private static string $table_name = 'Site';
- private static string $singular_name = 'Site';
- private static string $plural_name = 'Sites';
- private static string $description = 'A page type which provides a subsite.';
- private static array $db = ;
- private static array $has_one = ;
- private static array $defaults = ;
- private static string $default_sort = '"Title"';
- private static array $searchable_fields = ;
- private static array $summary_fields = ;
- private static array $available_themes = ;
- private static string $icon = 'symbiote/silverstripe-multisites: client/images/world.png';
- // methods
- public void getCMSFields()
- public void getUrl()
- public void AbsoluteLink()
- public void Link()
- public void RelativeLink()
- public void onBeforeWrite()
- public Int createAssetsSubfolder()
- public void onAfterWrite()
- public void requireDefaultRecords()
- public static boolean get_by_link()
- public String getSiteTheme()
- public Boolean hasFeature()
- public void providePermissions()
- public void Parent()
Hierarchy
Extends
- Page
Implements
- SilverStripe\ORM\HiddenClass
- SilverStripe\Security\PermissionProvider
Members
private
- $available_themes
- $db
- $default_sort
- $defaults
- $description
- $has_one
- $icon
- $plural_name
- $searchable_fields
- $singular_name
- $summary_fields
- $table_name
Methods
public
- AbsoluteLink()
- Link()
- Parent() — This corrects an issue when duplicating a site, since the parent comes back as a false object.
- RelativeLink()
- createAssetsSubfolder() — creates a subfolder in assets/ to store this sites files
- getCMSFields()
- getSiteTheme() — Get the name of the theme applied to this site, allow extensions to override
- getUrl()
- get_by_link() — Alternative implementation that takes into account the current site as the root
- hasFeature() — Checks to see if this site has a feature as defined in Muiltisites.site_features config
- onAfterWrite()
- onBeforeWrite()
- providePermissions()
- requireDefaultRecords() — Make sure there is a site record.