Theme
class Theme (View source)
handles theme
Properties
string | $version | ||
string | $name | ||
string | $id | ||
string | $path | ||
string | $imgPath | ||
string | $imgPathFs | ||
int | $mtimeInfo | ||
int | $filesizeInfo | needed because sometimes, the mtime for different themes is identical |
Methods
Loads theme information
No description
checks image path for existence - if not found use img from fallback theme
returns path to theme
returns file system path to the theme
set path to theme
set file system path to the theme
sets version
returns version
checks theme version against $version returns true if theme version is equal or higher to $version
sets name
returns name
sets id
returns id
Sets path to images for the theme
Sets path to images for the theme
Returns the path to image for the theme.
No description
No description
No description
Details
bool
loadInfo()
Loads theme information
static self|null
load(string $themeUrl, string $themeFsPath, string $themeName)
No description
bool
checkImgPath()
checks image path for existence - if not found use img from fallback theme
string
getPath()
returns path to theme
string
getFsPath()
returns file system path to the theme
void
setPath(string $path)
set path to theme
void
setFsPath(string $path)
set file system path to the theme
void
setVersion(string $version)
sets version
string
getVersion()
returns version
bool
checkVersion(string $version)
checks theme version against $version returns true if theme version is equal or higher to $version
void
setName(string $name)
sets name
string
getName()
returns name
void
setId(string $id)
sets id
string
getId()
returns id
void
setImgPath(string $path)
Sets path to images for the theme
void
setImgPathFs(string $path)
Sets path to images for the theme
string
getImgPath(string|null $file = null, string|null $fallback = null)
Returns the path to image for the theme.
If filename is given, it possibly fallbacks to fallback theme for it if image does not exist.
array
getColorModes()
No description
void
setColorMode(string $colorMode)
No description
string
getColorMode()
No description