SettingsService
in package
Class SettingsService
Table of Contents
- $boxPosition : int
- $configurationsList : ConfigurationCollection
- $currentThemeId : string
- $errorMessage : string
- $groups : array<string|int, mixed>
- __construct() : mixed
- SettingsService constructor.
- configurationsList() : ConfigurationCollection
- findSettingValueByName() : mixed|null
- Searches for a setting value identified by its name. If no result is found, null will be returned.
- getCustomStyles() : string
- Returns the custom styles from a JSON File
- getErrorMessage() : string
- Returns error message
- getScss() : string
- Get Sass Code by group and style name
- getScssByGroup() : array<string|int, mixed>
Properties
$boxPosition
protected
int
$boxPosition
= 1
$configurationsList
protected
ConfigurationCollection
$configurationsList
$currentThemeId
protected
string
$currentThemeId
$errorMessage
protected
string
$errorMessage
= ''
$groups
protected
array<string|int, mixed>
$groups
= []
Methods
__construct()
SettingsService constructor.
public
__construct(string $currentThemeId) : mixed
Parameters
- $currentThemeId : string
-
active theme
Return values
mixed —configurationsList()
public
configurationsList() : ConfigurationCollection
Tags
Return values
ConfigurationCollection —findSettingValueByName()
Searches for a setting value identified by its name. If no result is found, null will be returned.
public
findSettingValueByName( $p_settingName) : mixed|null
Parameters
Tags
Return values
mixed|null —getCustomStyles()
Returns the custom styles from a JSON File
public
getCustomStyles() : string
Tags
Return values
string —getErrorMessage()
Returns error message
public
getErrorMessage() : string
Return values
string —getScss()
Get Sass Code by group and style name
public
getScss(string $p_group) : string
Parameters
- $p_group : string
Tags
Return values
string —getScssByGroup()
public
getScssByGroup( $p_group) : array<string|int, mixed>