Skip to content

icms_view_theme_Factory

Raimondas Rimkevičius edited this page Mar 9, 2020 · 1 revision
Notice: Wiki was automatic generated from project sources as project API documentation. Do not edit manually!

icms_view_theme_Factory

icms_view_theme_Factory

  • Class name: icms_view_theme_Factory
  • Namespace:

Properties

$xoBundleIdentifier

public mixed $xoBundleIdentifier = icms_view_theme_Factory
  • Visibility: public

$allowedThemes

public mixed $allowedThemes = array()

Currently enabled themes (if empty, all the themes in themes/ are allowed)

  • Visibility: public

$defaultTheme

public mixed $defaultTheme = iTheme

Default theme to instanciate if none specified

  • Visibility: public

$allowUserSelection

public mixed $allowUserSelection = \true

If users are allowed to choose a custom theme

  • Visibility: public

Methods

getInstance

\icms_view_theme_Factory icms_view_theme_Factory::getInstance()

Gets theme factory for existing configuration

  • Visibility: public
  • This method is static.

getThemesList

array icms_view_theme_Factory::getThemesList()

Gets list of themes folder from themes directory, excluding any directories that do not have theme.html

  • Visibility: public
  • This method is static.

getAdminThemesList

array icms_view_theme_Factory::getAdminThemesList()

Gets list of administration themes folder from themes directory, excluding any directories that do not have theme_admin.html

  • Visibility: public
  • This method is static.

createInstance

mixed icms_view_theme_Factory::createInstance(mixed options, mixed initArgs)

Instanciate the specified theme

  • Visibility: public

Arguments

  • options mixed
  • initArgs mixed

isThemeAllowed

bool icms_view_theme_Factory::isThemeAllowed(string name)

Checks if the specified theme is enabled or not

  • Visibility: public

Arguments

  • name string
Clone this wiki locally