ThemeManager
in package
Uses
Singleton
Theme manager
Tags
Table of Contents
- $instance : mixed
- __clone() : mixed
- __wakeup() : mixed
- deleteTheme() : void
- Completely delete a theme from the system.
- findByDirName() : string
- Returns an installed theme's code from it's dirname.
- forgetInstance() : mixed
- Forget this singleton's instance if it exists
- getInstalled() : array<string|int, mixed>
- Returns a collection of themes installed via the update gateway
- instance() : mixed
- Create a new instance of this singleton.
- isInstalled() : bool
- Checks if a theme has ever been installed before.
- setInstalled() : mixed
- Flags a theme as being installed, so it is not downloaded twice.
- setUninstalled() : mixed
- Flags a theme as being uninstalled.
- __construct() : mixed
- Constructor.
- init() : mixed
- Initialize the singleton free from constructor parameters.
Properties
$instance
protected
static mixed
$instance
Methods
__clone()
public
__clone() : mixed
Return values
mixed —__wakeup()
public
__wakeup() : mixed
Return values
mixed —deleteTheme()
Completely delete a theme from the system.
public
deleteTheme(string $theme) : void
Parameters
- $theme : string
-
Theme code/namespace
Return values
void —findByDirName()
Returns an installed theme's code from it's dirname.
public
findByDirName(mixed $dirName) : string
Parameters
- $dirName : mixed
Return values
string —forgetInstance()
Forget this singleton's instance if it exists
public
final static forgetInstance() : mixed
Return values
mixed —getInstalled()
Returns a collection of themes installed via the update gateway
public
getInstalled() : array<string|int, mixed>
Return values
array<string|int, mixed> —instance()
Create a new instance of this singleton.
public
final static instance() : mixed
Return values
mixed —isInstalled()
Checks if a theme has ever been installed before.
public
isInstalled(string $name) : bool
Parameters
- $name : string
-
Theme code
Return values
bool —setInstalled()
Flags a theme as being installed, so it is not downloaded twice.
public
setInstalled(string $code[, string|null $dirName = null ]) : mixed
Parameters
- $code : string
-
Theme code
- $dirName : string|null = null
Return values
mixed —setUninstalled()
Flags a theme as being uninstalled.
public
setUninstalled(string $code) : mixed
Parameters
- $code : string
-
Theme code
Return values
mixed —__construct()
Constructor.
protected
final __construct() : mixed
Return values
mixed —init()
Initialize the singleton free from constructor parameters.
protected
init() : mixed