BaseThemeDirectories
in package
implements
BaseThemeDirectoriesInterface
Class BaseThemeDirectories
Interfaces, Classes and Traits
- BaseThemeDirectoriesInterface
- Interface BaseThemeDirectoriesInterface
Table of Contents
- $fonts : ThemeDirectory|null
- Fonts directory
- $html : ThemeDirectory
- $images : ThemeDirectory
- $js : ThemeDirectory
- $prefix : string
- $root : ThemeDirectoryRootInterface
- $styles : ThemeDirectory
- __construct() : mixed
- BaseThemeDirectories constructor.
- getFonts() : ThemeDirectory|null
- Returns the fonts directory.
- getHtml() : ThemeDirectoryInterface
- Returns the html theme directory.
- getImages() : ThemeDirectory|null
- Returns the images directory.
- getJs() : ThemeDirectoryInterface
- Returns the js theme directory.
- getPrefix() : string
- getRoot() : ThemeDirectoryRootInterface
- Returns the directory root.
- getStyles() : ThemeDirectoryInterface
- Returns the styles theme directory.
- tryBuildThemeDirectory() : null|ThemeDirectory
- Tries to create an instance of ThemeDirectory by the given root- and sub path.
Properties
$fonts
Fonts directory
protected
ThemeDirectory|null
$fonts
$html
protected
ThemeDirectory
$html
$images
protected
ThemeDirectory
$images
$js
protected
ThemeDirectory
$js
$prefix
protected
string
$prefix
$root
protected
ThemeDirectoryRootInterface
$root
$styles
protected
ThemeDirectory
$styles
Methods
__construct()
BaseThemeDirectories constructor.
public
__construct(ThemeDirectoryRootInterface $root) : mixed
Parameters
- $root : ThemeDirectoryRootInterface
Return values
mixed —getFonts()
Returns the fonts directory.
public
getFonts() : ThemeDirectory|null
Return values
ThemeDirectory|null —getHtml()
Returns the html theme directory.
public
getHtml() : ThemeDirectoryInterface
Return values
ThemeDirectoryInterface —getImages()
Returns the images directory.
public
getImages() : ThemeDirectory|null
Return values
ThemeDirectory|null —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 —getStyles()
Returns the styles theme directory.
public
getStyles() : ThemeDirectoryInterface
Return values
ThemeDirectoryInterface —tryBuildThemeDirectory()
Tries to create an instance of ThemeDirectory by the given root- and sub path.
protected
tryBuildThemeDirectory(ThemeDirectoryRootInterface $root, string $path) : null|ThemeDirectory
If no directory was found, null will be returned.
Parameters
- $root : ThemeDirectoryRootInterface
-
Path to root directory of theme.
- $path : string
-
Sub directory path.
Return values
null|ThemeDirectory —Theme directory instance if given path exists.