SilverStripe\Subsites\Model\SubsiteDomain
Synopsis
class SubsiteDomain
extends DataObject
{
- // constants
- const PROTOCOL_HTTP = 'http';
- const PROTOCOL_HTTPS = 'https';
- const PROTOCOL_AUTOMATIC = 'automatic';
- // members
- private static string $table_name = 'SubsiteDomain';
- private static string $default_sort = '"IsPrimary" DESC';
- private static array $db = ;
- private static array $has_one = ;
- private static array $summary_fields = ;
- private static array $casting = ;
- // methods
- public string getTitle()
- public void onAfterWrite()
- public FieldList getCMSFields()
- public array fieldLabels()
- public string Link()
- public string getFullProtocol()
- public string getSubstitutedDomain()
- public string getAbsoluteLink()
- public string absoluteBaseURL()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Tasks
Line | Task |
---|---|
187+ | Refactor domains into separate wildcards / primary domains |
196 | Whats the significance of "subsite" in this context?! |
Constants
Name | Value |
---|---|
PROTOCOL_HTTP | 'http' |
PROTOCOL_HTTPS | 'https' |
PROTOCOL_AUTOMATIC | 'automatic' |
Members
private
- $casting
- $db — array
- $default_sort — string
- $has_one — array
- $summary_fields — array
- $table_name
Methods
public
- Link() — Get the link to this subsite
- absoluteBaseURL() — Get absolute baseURL for this domain
- fieldLabels()
- getAbsoluteLink() — Get absolute link for this domain
- getCMSFields()
- getFullProtocol() — Gets the full protocol (including ://) for this domain
- getSubstitutedDomain() — Retrieves domain name with wildcards substituted with actual values
- getTitle() — Get the descriptive title for this domain
- onAfterWrite() — Whenever a Subsite Domain is written, rewrite the hostmap