class ThemeManager (View source)

phpMyAdmin theme manager

Constants

FALLBACK_THEME

Properties

Theme> $themes
string $cookieName
bool $perServer
string $activeTheme
Theme $theme
string $themeDefault

Methods

__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

Details

__construct()

No description

void initializeTheme()

No description

Return Value

void

void setThemePerServer(bool $perServer)

sets if there are different themes per server

Parameters

bool $perServer

Whether to enable per server flag

Return Value

void

bool setActiveTheme(string|null $theme)

Sets active theme

Parameters

string|null $theme

theme name

Return Value

bool

string getThemeCookieName()

Returns name for storing theme

Return Value

string

cookie name

string|false getThemeCookie()

returns name of theme stored in the cookie

Return Value

string|false

theme name from cookie or false

string|false getColorModeCookie()

returns name of theme stored in the cookie

Return Value

string|false

theme name from cookie or false

void setThemeCookie()

No description

Return Value

void

void loadThemes()

No description

Return Value

void

bool checkTheme(string|null $theme)

checks if given theme name is a known theme

Parameters

string|null $theme

name fo theme to check for

Return Value

bool

array getThemesArray()

No description

Return Value

array

static string getThemesFsDir()

Return the themes directory with a trailing slash

Return Value

string

static string getThemesDir()

Return the themes directory with a trailing slash as a relative public path

Return Value

string