SiteSettings
final readonly class \
- Implements
- SettingsInterface, JsonSerializable
Entity representing all settings for a site. These settings are not overlaid with TypoScript settings / constants which happens in the TypoScript Parser for a specific page.
Table of Contents
Interfaces
- SettingsInterface
- JsonSerializable
Methods
- __construct() : mixed
- __set_state() : static
- create() : self
- createFromSettingsTree() : self
- get() : mixed
- getAll() : array
- getAllFlat() : array
- getIdentifiers() : array
- getMap() : array
- has() : bool
- isEmpty() : bool
- jsonSerialize() : mixed
Methods
__construct()
public
__construct(SettingsInterface $settings, array $settingsTree, array $flattenedArrayValues) : mixed
Parameters
- $settings : SettingsInterface
- $settingsTree : array
- $flattenedArrayValues : array
Internal
to be constructed by create() or createFromSettingsTree()
__set_state()
public
static __set_state(array $state) : static
Parameters
- $state : array
Return values
staticcreate()
public
static create(SettingsInterface $settings) : self
Parameters
- $settings : SettingsInterface
Internal
Return values
selfcreateFromSettingsTree()
public
static createFromSettingsTree(array $settingsTree) : self
Parameters
- $settingsTree : array
Internal
Return values
selfget()
public
get(string $identifier[, mixed $defaultValue = null ]) : mixed
Parameters
- $identifier : string
- $defaultValue : mixed = null
getAll()
public
getAll() : array
Return values
arraygetAllFlat()
public
getAllFlat() : array
Return values
arraygetIdentifiers()
public
getIdentifiers() : array
Return values
arraygetMap()
public
getMap() : array
Return values
arrayhas()
public
has(string $identifier) : bool
Parameters
- $identifier : string
Return values
boolisEmpty()
public
isEmpty() : bool
Return values
booljsonSerialize()
public
jsonSerialize() : mixed