ThemeClassicPage
in package
implements
Creatable, Updatable, Deletable
Uses
EntityTrait, DeletableEntityTrait
This class contains a simple page connected to a theme
Tags
Interfaces, Classes, Traits and Enums
- Creatable
- Updatable
- Deletable
Table of Contents
- $classicPageId : int
- $name : string
- $themeId : int
- create() : void
- Creates the current theme page
- findByTheme() : Iterator<string|int, ThemeClassicPage>
- Finds the pages for the given theme
- findByThemeAndName() : ThemeClassicPage|null
- Finds a page by name and theme
- format() : array<string, array<string, array<string, array<string, string|null>|string>|int|string>|string|null>
- Formats the theme page into an array
- getClassicPage() : ClassicPage|null
- Gets the page of the theme page
- update() : void
Properties
$classicPageId
public
int
$classicPageId
= -1
The simple page ID
Tags
$name
public
string
$name
= ''
The theme name
Tags
$themeId
public
int
$themeId
= -1
The theme id
Tags
Methods
create()
Creates the current theme page
public
create() : void
Tags
Return values
void —findByTheme()
Finds the pages for the given theme
public
static findByTheme(int $themeId) : Iterator<string|int, ThemeClassicPage>
Parameters
- $themeId : int
Tags
Return values
Iterator<string|int, ThemeClassicPage> —findByThemeAndName()
Finds a page by name and theme
public
static findByThemeAndName(int $themeId, string $name) : ThemeClassicPage|null
Parameters
- $themeId : int
- $name : string
Tags
Return values
ThemeClassicPage|null —format()
Formats the theme page into an array
public
format() : array<string, array<string, array<string, array<string, string|null>|string>|int|string>|string|null>
Tags
Return values
array<string, array<string, array<string, array<string, string|null>|string>|int|string>|string|null> —getClassicPage()
Gets the page of the theme page
public
getClassicPage() : ClassicPage|null
Tags
Return values
ClassicPage|null —update()
public
update() : void