ThemeCollection
class ThemeCollection (View source)
The theme collection system class.
Properties
private | $composerInstalled | An array of installed Composer packages. | |
private | $themes | The Theme objects array. |
Methods
The constructor.
Get the theme object by the key in the themelist array corresponding to the AM_KEY_THEME variable.
Return the Theme objects array.
Collect installed themes recursively.
Get installed Composer packages.
Details
at line 67
__construct()
The constructor.
at line 80
Theme
getThemeByKey(string $key)
Get the theme object by the key in the themelist array corresponding to the AM_KEY_THEME variable.
at line 92
array
getThemes()
Return the Theme objects array.
at line 107
private array
collectThemes(string|null $path = null)
Collect installed themes recursively.
A theme must be located below the "themes" directory. It is possible to group themes in subdirectories, like "themes/theme" or "themes/subdir/theme".
To be a valid theme, a directory must contain a "theme.json" file and at least one ".php" file.
at line 138
private array
getComposerInstalled()
Get installed Composer packages.