Свойство | Type | Description | |
---|---|---|---|
$active_theme | name of active theme | ||
$cookie_name | cookie name | ||
$per_server | boolean | ||
$theme | Theme active theme | ||
$theme_default | string | ||
$themes | available themes |
Méthode | Description | |
---|---|---|
__construct ( ) | Constructor for Theme Manager class | |
checkConfig ( ) : void | Checks configuration | |
checkTheme ( string $theme ) : boolean | checks if given theme name is a known theme | |
getFallBackTheme ( ) : |
returns Theme object for fall back theme | |
getHtmlSelectBox ( boolean $form = true ) : string | returns HTML selectbox, with or without form enclosed | |
getInstance ( ) : |
Returns the singleton Response object | |
getPrintPreviews ( ) : string | Renders the previews for all themes | |
getThemeCookie ( ) : string | returns name of theme stored in the cookie | |
getThemeCookieName ( ) : string | Returns name for storing theme | |
init ( ) : void | Initialise the class | |
initializeTheme ( ) : void | Theme initialization | |
loadThemes ( ) : boolean | read all themes | |
makeBc ( ) : void | enables backward compatibility | |
printCss ( ) : boolean | prints css data | |
setActiveTheme ( string $theme = null ) : boolean | Sets active theme | |
setThemeCookie ( ) : boolean | save theme in cookie | |
setThemePerServer ( boolean $per_server ) : void | sets if there are different themes per server | |
setThemesPath ( string $path ) : boolean | sets path to folder containing the themes |
Méthode | Description | |
---|---|---|
_checkThemeFolder ( string $folder ) : boolean | Checks whether folder is valid for storing themes |
public checkTheme ( string $theme ) : boolean | ||
$theme | string | name fo theme to check for |
Résultat | boolean |
public getFallBackTheme ( ) : |
||
Résultat | fall back theme |
public getHtmlSelectBox ( boolean $form = true ) : string | ||
$form | boolean | whether enclosed by from tags or not |
Résultat | string |
public static getInstance ( ) : |
||
Résultat | object |
public getPrintPreviews ( ) : string | ||
Résultat | string |
public getThemeCookie ( ) : string | ||
Résultat | string | theme name from cookie |
public getThemeCookieName ( ) : string | ||
Résultat | string | cookie name |
public static initializeTheme ( ) : void | ||
Résultat | void |
public setActiveTheme ( string $theme = null ) : boolean | ||
$theme | string | theme name |
Résultat | boolean | true on success |
public setThemeCookie ( ) : boolean | ||
Résultat | boolean | true |
public setThemePerServer ( boolean $per_server ) : void | ||
$per_server | boolean | Whether to enable per server flag |
Résultat | void |
public setThemesPath ( string $path ) : boolean | ||
$path | string | path to themes folder |
Résultat | boolean | success |