ThemeDirectories
extends VariableThemeDirectories
in package
implements
ThemeDirectoriesInterface
Uses
CustomThemeDirectoriesTrait
Class ThemeDirectories
Interfaces, Classes and Traits
- ThemeDirectoriesInterface
- Interface ThemeDirectoriesInterface
Table of Contents
- $config : ThemeDirectory
- $customHtml : ThemeDirectory|null
- Custom HTML directory
- $customJs : ThemeDirectory|null
- Custom JS directory
- $customStyles : ThemeDirectory|null
- Custom styles directory
- $fonts : ThemeDirectory|null
- Fonts directory
- $html : ThemeDirectory
- $images : ThemeDirectory
- $js : ThemeDirectory
- $jsExtensions : ThemeDirectory|null
- script extension directory
- $prefix : string
- $root : ThemeDirectoryRootInterface
- Directory root
- $styleEdit : ThemeDirectory
- $styles : ThemeDirectory
- $variants : ThemeDirectory|null
- variants directory
- __construct() : mixed
- ThemeDirectories constructor.
- create() : ThemeDirectoriesInterface
- Named constructor of ThemeDirectories.
- getConfig() : ThemeDirectoryInterface
- Returns the config theme directory.
- getCustomHtml() : ThemeDirectory|null
- Return the custom HTML directory
- getCustomJs() : ThemeDirectory|null
- Return the custom scripts directory
- getCustomStyles() : ThemeDirectory|null
- Return the custom styles directory
- 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.
- getJsExtensions() : ThemeDirectory|null
- Returns the script extension directory
- getPrefix() : string
- getRoot() : ThemeDirectoryRootInterface
- Return the directory root
- getStyleEdit() : ThemeDirectory|null
- Returns the style edit theme directory.
- getStyles() : ThemeDirectoryInterface
- Returns the styles theme directory.
- getVariants() : ThemeDirectory
- Returns the variants directory
- tryBuildThemeDirectory() : null|ThemeDirectory
- Tries to create an instance of ThemeDirectory by the given root- and sub path.
Properties
$config
protected
ThemeDirectory
$config
$customHtml
Custom HTML directory
protected
ThemeDirectory|null
$customHtml
$customJs
Custom JS directory
protected
ThemeDirectory|null
$customJs
$customStyles
Custom styles directory
protected
ThemeDirectory|null
$customStyles
$fonts
Fonts directory
protected
ThemeDirectory|null
$fonts
$html
protected
ThemeDirectory
$html
$images
protected
ThemeDirectory
$images
$js
protected
ThemeDirectory
$js
$jsExtensions
script extension directory
protected
ThemeDirectory|null
$jsExtensions
$prefix
protected
string
$prefix
$root
Directory root
protected
ThemeDirectoryRootInterface
$root
$styleEdit
protected
ThemeDirectory
$styleEdit
$styles
protected
ThemeDirectory
$styles
$variants
variants directory
protected
ThemeDirectory|null
$variants
Methods
__construct()
ThemeDirectories constructor.
public
__construct(ThemeDirectoryRootInterface $root) : mixed
Parameters
- $root : ThemeDirectoryRootInterface
-
Path to root directory of theme.
Return values
mixed —create()
Named constructor of ThemeDirectories.
public
static create(ThemeDirectoryRootInterface $root) : ThemeDirectoriesInterface
Parameters
- $root : ThemeDirectoryRootInterface
-
Path to root directory of theme.
Return values
ThemeDirectoriesInterface —New instance.
getConfig()
Returns the config theme directory.
public
getConfig() : ThemeDirectoryInterface
Return values
ThemeDirectoryInterface —getCustomHtml()
Return the custom HTML directory
public
getCustomHtml() : ThemeDirectory|null
Return values
ThemeDirectory|null —getCustomJs()
Return the custom scripts directory
public
getCustomJs() : ThemeDirectory|null
Return values
ThemeDirectory|null —getCustomStyles()
Return the custom styles directory
public
getCustomStyles() : ThemeDirectory|null
Return values
ThemeDirectory|null —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 —getJsExtensions()
Returns the script extension directory
public
getJsExtensions() : ThemeDirectory|null
Return values
ThemeDirectory|null —getPrefix()
public
getPrefix() : string
Return values
string —getRoot()
Return the directory root
public
getRoot() : ThemeDirectoryRootInterface
Return values
ThemeDirectoryRootInterface —getStyleEdit()
Returns the style edit theme directory.
public
getStyleEdit() : ThemeDirectory|null
Return values
ThemeDirectory|null —getStyles()
Returns the styles theme directory.
public
getStyles() : ThemeDirectoryInterface
Return values
ThemeDirectoryInterface —getVariants()
Returns the variants directory
public
getVariants() : ThemeDirectory
Return values
ThemeDirectory —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.