ThemeAsset
in package
implements
Creatable, Updatable, Deletable
Uses
EntityTrait, DeletableEntityTrait
Tags
Interfaces, Classes, Traits and Enums
- Creatable
- Updatable
- Deletable
Table of Contents
- $name : string
- $publicPath : string
- $themeId : int
- create() : void
- findByTheme() : Iterator<string|int, ThemeAsset>
- Finds the pages for the given theme
- findByThemeAndName() : ThemeAsset|null
- Finds an asset by name and theme
- update() : void
Properties
$name
public
string
$name
= ''
The theme name
Tags
$publicPath
public
string
$publicPath
= ''
The public path of the asset
Tags
$themeId
public
int
$themeId
= -1
The theme id
Tags
Methods
create()
public
create() : void
Tags
Return values
void —findByTheme()
Finds the pages for the given theme
public
static findByTheme(int $themeId) : Iterator<string|int, ThemeAsset>
Parameters
- $themeId : int
Tags
Return values
Iterator<string|int, ThemeAsset> —findByThemeAndName()
Finds an asset by name and theme
public
static findByThemeAndName(int $themeId, string $name) : ThemeAsset|null
Parameters
- $themeId : int
- $name : string
Tags
Return values
ThemeAsset|null —update()
public
update() : void