class ThemeOptionsRepository extends EntityRepository

Class ThemeOptionsRepository is injected as alligator.theme.options.repository service. ThemeOptionsRepository is used for crud operation for managed entity.

Use this class to work with database.

Constants

ALIAS

Alias for theme options

JOIN_WITH_THEME

Alias for theme

Methods

getOptionsById(int $id)

Find theme options by id

getCurrentPresetForTheme(int $id)

Find theme options for specific theme

mixed
saveCurrentPreset(ThemeOptions $preset, ThemeOptions $currentPreset)

Persist new theme option and set current theme options

deleteThemePreset(int $id)

Delete theme options

Details

at line 47
ThemeOptions|null getOptionsById(int $id)

Find theme options by id

Parameters

int $id

Return Value

ThemeOptions|null

Exceptions

NonUniqueResultException

at line 63
ThemeOptions|null getCurrentPresetForTheme(int $id)

Find theme options for specific theme

Parameters

int $id

Return Value

ThemeOptions|null

Exceptions

NonUniqueResultException

at line 86
mixed saveCurrentPreset(ThemeOptions $preset, ThemeOptions $currentPreset)

Persist new theme option and set current theme options

Parameters

ThemeOptions $preset
ThemeOptions $currentPreset

Return Value

mixed

Exceptions

Exception

at line 110
deleteThemePreset(int $id)

Delete theme options

Parameters

int $id

Exceptions

Exception