class ThemeManager (View source)

phpMyAdmin theme manager

Constants

FALLBACK_THEME

Properties

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

void
setActiveTheme(string $theme)

Sets active theme

string
getThemeCookieName()

Returns name for storing theme

string
getThemeCookie()

returns name of theme stored in the cookie

void
setThemeCookie()

No description

void
loadThemes()

No description

bool
themeExists(string $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

void setActiveTheme(string $theme)

Sets active theme

Parameters

string $theme

theme name

Return Value

void

string getThemeCookieName()

Returns name for storing theme

Return Value

string

cookie name

string getThemeCookie()

returns name of theme stored in the cookie

Return Value

string

void setThemeCookie()

No description

Return Value

void

void loadThemes()

No description

Return Value

void

bool themeExists(string $theme)

checks if given theme name is a known theme

Parameters

string $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