ThemeModernPage
in package
implements
Creatable, Updatable, Deletable
Uses
EntityTrait, DeletableEntityTrait
This class contains a segment page connected to a theme
Tags
Interfaces, Classes, Traits and Enums
- Creatable
- Updatable
- Deletable
Table of Contents
- $modernPageId : int
- $name : string
- $themeId : int
- create() : void
- Creates the current theme segment page
- findByTheme() : Iterator<string|int, ThemeModernPage>
- Finds the pages for the given theme
- findByThemeAndName() : ThemeModernPage|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 segment page into an array
- getModernPage() : ModernPage|null
- Gets the page of the theme page
- update() : void
Properties
$modernPageId
public
int
$modernPageId
= -1
The segment 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 segment page
public
create() : void
Tags
Return values
void —findByTheme()
Finds the pages for the given theme
public
static findByTheme(int $themeId) : Iterator<string|int, ThemeModernPage>
Parameters
- $themeId : int
Tags
Return values
Iterator<string|int, ThemeModernPage> —findByThemeAndName()
Finds a page by name and theme
public
static findByThemeAndName(int $themeId, string $name) : ThemeModernPage|null
Parameters
- $themeId : int
- $name : string
Tags
Return values
ThemeModernPage|null —format()
Formats the theme segment 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> —getModernPage()
Gets the page of the theme page
public
getModernPage() : ModernPage|null
Tags
Return values
ModernPage|null —update()
public
update() : void