class LegacyCustomizationsManager implements ManagerInterface (View source)

Traits

Properties

protected Connection $db

Methods

string
getTreeIdsForQuery(Site $site)

A helper method for getting tree IDs for use in a query. Includes "0" in the query out of simplicity

__construct(Connection $db)

No description

bool
hasPageThemeCustomizations(Site $site)

Detects whether individual pages have theme customizations applied, either through the application of a custom skin, or in the case of the legacy customizer, the application of a custom style set.

bool
hasSiteThemeCustomizations(Site $site)

Detects whether your site has theme-level customizations applied. Only really applicable for the legacy customizer.

CustomStyle|null
getCustomStyleObjectForPage(Page $page, Theme $theme)

Used by the legacy customizer – this allows us to preload an active legacy style configuration into the panel This is NOT part of the customizations manager going forward, but this class is a better place to put this functionality than inline in a controller.

mixed
mixed

Details

string getTreeIdsForQuery(Site $site)

A helper method for getting tree IDs for use in a query. Includes "0" in the query out of simplicity

Parameters

Site $site

Return Value

string

__construct(Connection $db)

No description

Parameters

Connection $db

bool hasPageThemeCustomizations(Site $site)

Detects whether individual pages have theme customizations applied, either through the application of a custom skin, or in the case of the legacy customizer, the application of a custom style set.

Parameters

Site $site

Return Value

bool

bool hasSiteThemeCustomizations(Site $site)

Detects whether your site has theme-level customizations applied. Only really applicable for the legacy customizer.

Parameters

Site $site

Return Value

bool

CustomStyle|null getCustomStyleObjectForPage(Page $page, Theme $theme)

Used by the legacy customizer – this allows us to preload an active legacy style configuration into the panel This is NOT part of the customizations manager going forward, but this class is a better place to put this functionality than inline in a controller.

Parameters

Page $page
Theme $theme

Return Value

CustomStyle|null

mixed getResetPageThemeCustomizationsCommand(Site $site)

No description

Parameters

Site $site

Return Value

mixed

mixed getResetSiteThemeCustomizationsCommand(Site $site)

No description

Parameters

Site $site

Return Value

mixed