Jinya CMS

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

Methods

create()

Creates the current theme segment page

public create() : void
Tags
Return values
void

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>

update()

public update() : void
Tags
inheritDoc
Return values
void

Search results