Methods
ThemeDirectories constructor.
__construct(\ThemeDirectoryRootInterface $root)
Named constructor of ThemeDirectories.
create(\ThemeDirectoryRootInterface $root) : \ThemeDirectories
static
Returns the config theme directory.
getConfig() : \ThemeDirectoryInterface
Return the custom HTML directory
getCustomHtml() : \ThemeDirectory|null
Return the custom scripts directory
getCustomJs() : \ThemeDirectory|null
Return the custom styles directory
getCustomStyles() : \ThemeDirectory|null
Return the HTML directory
getHtml() : \ThemeDirectory|null
Returns the images directory.
getImages() : \ThemeDirectory|null
Return the scripts directory
getJs() : \ThemeDirectory|null
Returns the script extension directory
getJsExtensions() : \ThemeDirectory|null
Return the directory root
getRoot() : \ThemeDirectoryRootInterface
Returns the style edit theme directory.
getStyleEdit() : \ThemeDirectory|null
Return the styles directory
getStyles() : \ThemeDirectory|null
Tries to create an instance of ThemeDirectory by the given root- and sub path.
tryBuildThemeDirectory(\ThemeDirectoryRootInterface $root, string $path) : null|\ThemeDirectory
If no directory was found, null will be returned.
Arguments
$path
stringSub directory path.
Response
null|\ThemeDirectoryTheme directory instance if given path exists.
Properties
Directory root
root : \ThemeDirectoryRootInterface
Configuration directory.
config : \ThemeDirectory
HTML directory
html : \ThemeDirectory|null
JavaScript directory
js : \ThemeDirectory|null
Styles directory
styles : \ThemeDirectory|null
Style Edit directory.
styleEdit : \ThemeDirectory|null
Images directory
images : \ThemeDirectory|null
Custom HTML directory
customHtml : \ThemeDirectory|null
Custom JS directory
customJs : \ThemeDirectory|null
Custom styles directory
customStyles : \ThemeDirectory|null
script extension directory
jsExtensions : \ThemeDirectory|null