MainTheme
in package
implements
MainThemeInterface
Class MainTheme
Interfaces, Classes and Traits
- MainThemeInterface
- Interface MainThemeInterface
Table of Contents
- $directories : MainThemeDirectoriesInterface
- $id : ThemeId
- __construct() : mixed
- MainTheme constructor.
- create() : MainTheme
- Named constructor of MainTheme.
- getConfig() : ThemeDirectoryInterface
- Returns the config theme directory.
- getFonts() : ThemeDirectoryInterface
- Returns the fonts theme directory.
- getHtml() : ThemeDirectoryInterface
- Returns the html theme directory.
- getId() : ThemeId
- Returns the root theme id.
- getImages() : ThemeDirectoryInterface
- Returns the images theme directory.
- getJs() : ThemeDirectoryInterface
- Returns the js theme directory.
- getPrefix() : string
- getRoot() : ThemeDirectoryRootInterface
- Returns the directory root.
- getStyleEdit() : ThemeDirectoryInterface
- Returns the style edit theme directory.
- getStyles() : ThemeDirectoryInterface
- Returns the styles theme directory.
- getVariants() : ThemeDirectory|null
- Returns the variants directory
Properties
$directories
protected
MainThemeDirectoriesInterface
$directories
$id
protected
ThemeId
$id
Methods
__construct()
MainTheme constructor.
public
__construct(ThemeId $id, MainThemeDirectoriesInterface $directories) : mixed
Parameters
- $id : ThemeId
-
Theme identifier (the themes name).
- $directories : MainThemeDirectoriesInterface
-
Theme directories.
Return values
mixed —create()
Named constructor of MainTheme.
public
static create(ThemeId $id, MainThemeDirectoriesInterface $directories) : MainTheme
Parameters
- $id : ThemeId
-
Theme identifier (the themes name).
- $directories : MainThemeDirectoriesInterface
-
Theme directories.
Return values
MainTheme —New instance.
getConfig()
Returns the config theme directory.
public
getConfig() : ThemeDirectoryInterface
Return values
ThemeDirectoryInterface —getFonts()
Returns the fonts theme directory.
public
getFonts() : ThemeDirectoryInterface
Return values
ThemeDirectoryInterface —getHtml()
Returns the html theme directory.
public
getHtml() : ThemeDirectoryInterface
Return values
ThemeDirectoryInterface —getId()
Returns the root theme id.
public
getId() : ThemeId
Return values
ThemeId —getImages()
Returns the images theme directory.
public
getImages() : ThemeDirectoryInterface
Return values
ThemeDirectoryInterface —getJs()
Returns the js theme directory.
public
getJs() : ThemeDirectoryInterface
Return values
ThemeDirectoryInterface —getPrefix()
public
getPrefix() : string
Return values
string —getRoot()
Returns the directory root.
public
getRoot() : ThemeDirectoryRootInterface
Return values
ThemeDirectoryRootInterface —getStyleEdit()
Returns the style edit theme directory.
public
getStyleEdit() : ThemeDirectoryInterface
Return values
ThemeDirectoryInterface —getStyles()
Returns the styles theme directory.
public
getStyles() : ThemeDirectoryInterface
Return values
ThemeDirectoryInterface —getVariants()
Returns the variants directory
public
getVariants() : ThemeDirectory|null