class Site implements TreeInterface, ObjectInterface, ObjectInterface (View source)

Traits

Properties

protected $siteConfig
protected $siteID
protected $pThemeID
protected $siteIsDefault
protected $siteHandle
protected $locales
protected $type

Methods

getAttributeValueObject($ak, $createIfNotExists = false)

No description

getAttribute($ak, $mode = false)

No description

Value
getAttributeValue($ak)

No description

Value
setAttribute(AttributeKeyInterface $ak, mixed $value)

Sets the attribute of a user info object to the specified value, and saves it in the database.

__construct($appConfigRepository)

No description

updateSiteConfigRepository($appConfigRepository)

No description

getConfigRepository()

No description

mixed
getType()

No description

setType(mixed $type)

No description

mixed
getLocales()

No description

setLocales(mixed $locales)

No description

mixed
getSiteHomePageID()

No description

getSiteTreeID()

No description

getDefaultLocale()

No description

getSiteTreeObject()

No description

getSiteHomePageObject($version = 'RECENT')

No description

mixed
getSiteID()

No description

mixed
getSiteHandle()

No description

setSiteHandle(mixed $siteHandle)

No description

mixed
isDefault()

No description

setIsDefault(mixed $siteIsDefault)

No description

mixed
getSiteName()

No description

setSiteName($name)

No description

string
getSiteCanonicalURL()

Get the main site canonical URL.

string
getSiteAlternativeCanonicalURL()

Get the alternative site canonical URL.

string
getSiteSSLCanonicalURL()

Get the HTTPS site canonical URL (it may be the main or the alternative canonical URL).

mixed
getThemeID()

No description

setThemeID(mixed $pThemeID)

No description

Details

CategoryInterface getObjectAttributeCategory()

Return Value

CategoryInterface

getAttributeValueObject($ak, $createIfNotExists = false)

Parameters

$ak
$createIfNotExists

getAttribute($ak, $mode = false)

Parameters

$ak
$mode

Value getAttributeValue($ak)

Parameters

$ak

Return Value

Value

clearAttribute(AttributeKeyInterface $ak)

Parameters

AttributeKeyInterface $ak | string $ak

Value setAttribute(AttributeKeyInterface $ak, mixed $value)

Sets the attribute of a user info object to the specified value, and saves it in the database.

Parameters

AttributeKeyInterface $ak | string $ak
mixed $value

Return Value

Value

getPermissionObjectIdentifier()

getPermissionResponseClassName()

getPermissionAssignmentClassName()

getPermissionObjectKeyCategoryHandle()

__construct($appConfigRepository)

Parameters

$appConfigRepository

updateSiteConfigRepository($appConfigRepository)

Parameters

$appConfigRepository

getConfigRepository()

mixed getType()

Return Value

mixed

setType(mixed $type)

Parameters

mixed $type

mixed getLocales()

Return Value

mixed

setLocales(mixed $locales)

Parameters

mixed $locales

mixed getSiteHomePageID()

Return Value

mixed

getSiteTreeID()

getDefaultLocale()

Tree getSiteTreeObject()

Return Value

Tree

getSiteHomePageObject($version = 'RECENT')

Parameters

$version

mixed getSiteID()

Return Value

mixed

mixed getSiteHandle()

Return Value

mixed

setSiteHandle(mixed $siteHandle)

Parameters

mixed $siteHandle

mixed isDefault()

Return Value

mixed

setIsDefault(mixed $siteIsDefault)

Parameters

mixed $siteIsDefault

mixed getSiteName()

Return Value

mixed

setSiteName($name)

Parameters

$name

string getSiteCanonicalURL()

Get the main site canonical URL.

Return Value

string empty string if it's not set

string getSiteAlternativeCanonicalURL()

Get the alternative site canonical URL.

Return Value

string empty string if it's not set

string getSiteSSLCanonicalURL()

Get the HTTPS site canonical URL (it may be the main or the alternative canonical URL).

Return Value

string empty string if it's not set

mixed getThemeID()

Return Value

mixed

setThemeID(mixed $pThemeID)

Parameters

mixed $pThemeID