StyleEdit4ReaderWrapper
in package
implements
StyleEditReaderInterface
Class StyleEdit4ReaderWrapper
Interfaces, Classes and Traits
- StyleEditReaderInterface
- Interface StyleEditReaderInterface
Table of Contents
- $boxService : MenuBoxService
- $reader : SettingsService
- __construct() : mixed
- StyleEdit4ReaderWrapper constructor.
- findSettingValueByName() : mixed|null
- Searches for a setting value identified by its name. If no result is found, null will be returned.
- findSettingValuesByNames() : array<string|int, mixed>
- get_position() : string
- Adapter Method
- get_status() : bool
- Adapter Method
- get_status_by_position() : bool
- Adapter Method
- 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
- validateSettingsJson() : void
Properties
$boxService
protected
MenuBoxService
$boxService
$reader
protected
SettingsService
$reader
Methods
__construct()
StyleEdit4ReaderWrapper constructor.
public
__construct(string $themeId) : mixed
Parameters
- $themeId : string
Tags
Return values
mixed —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 —findSettingValuesByNames()
public
findSettingValuesByNames(mixed ...$settingsNames) : array<string|int, mixed>
Parameters
- $settingsNames : mixed
Tags
Return values
array<string|int, mixed> —get_position()
Adapter Method
public
get_position(string $p_boxName) : string
Parameters
- $p_boxName : string
Tags
Return values
string —get_status()
Adapter Method
public
get_status(string $p_boxName) : bool
Parameters
- $p_boxName : string
Tags
Return values
bool —get_status_by_position()
Adapter Method
public
get_status_by_position(int $position) : bool
Parameters
- $position : int
Tags
Return values
bool —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 —validateSettingsJson()
protected
validateSettingsJson(string $themeId) : void
Parameters
- $themeId : string