ThemeManager
class ThemeManager (View source)
phpMyAdmin theme manager
Constants
FALLBACK_THEME |
|
Properties
Theme> | $themes | ||
string | $cookieName | ||
bool | $perServer | ||
string | $activeTheme | ||
Theme | $theme | ||
string | $themeDefault |
Methods
No description
No description
sets if there are different themes per server
Sets active theme
Returns name for storing theme
returns name of theme stored in the cookie
returns name of theme stored in the cookie
No description
No description
checks if given theme name is a known theme
No description
Return the themes directory with a trailing slash
Return the themes directory with a trailing slash as a relative public path
Details
__construct()
No description
void
initializeTheme()
No description
void
setThemePerServer(bool $perServer)
sets if there are different themes per server
bool
setActiveTheme(string|null $theme)
Sets active theme
string
getThemeCookieName()
Returns name for storing theme
string|false
getThemeCookie()
returns name of theme stored in the cookie
string|false
getColorModeCookie()
returns name of theme stored in the cookie
void
setThemeCookie()
No description
void
loadThemes()
No description
bool
checkTheme(string|null $theme)
checks if given theme name is a known theme
array
getThemesArray()
No description
static string
getThemesFsDir()
Return the themes directory with a trailing slash
static string
getThemesDir()
Return the themes directory with a trailing slash as a relative public path