ModernPage
extends Entity
in package
implements
JsonSerializable
This class contains information about segment pages
Tags
Interfaces, Classes, Traits and Enums
- JsonSerializable
Table of Contents
- $createdAt : DateTime
- $creatorId : int
- $id : int
- $lastUpdatedAt : DateTime
- $name : string
- $updatedById : int
- create() : void
- Creates the current segment page
- format() : array<string, array<string, array<string, string|null>|string>|int|string>
- Formats the current segment_page
- getCreator() : Artist|null
- Gets the creator
- getSections() : Iterator<string|int, ModernPageSection>
- Gets all sections of the current page
- getSegments() : Iterator<string|int, ModernPageSection>
- Gets all sections of the current page
- getUpdatedBy() : Artist|null
- Gets the artist who last updated the segment_page
- jsonSerialize() : mixed
- replaceSections() : void
- Replaces all modern page sections with the new sections
- replaceSegments() : void
- Replaces all modern page sections with the new sections
- update() : void
- Updates the current segment page
Properties
$createdAt
public
DateTime
$createdAt
The time the segment page was created
Tags
$creatorId
public
int
$creatorId
The ID of the artist who created the segment page
Tags
$id
public
int
$id
Tags
$lastUpdatedAt
public
DateTime
$lastUpdatedAt
The time the segment page was last updated
Tags
$name
public
string
$name
The name of the segment page
Tags
$updatedById
public
int
$updatedById
The ID of the artist who last updated the segment page
Tags
Methods
create()
Creates the current segment page
public
create() : void
Tags
Return values
void —format()
Formats the current segment_page
public
format() : array<string, array<string, array<string, string|null>|string>|int|string>
Tags
Return values
array<string, array<string, array<string, string|null>|string>|int|string> —getCreator()
Gets the creator
public
getCreator() : Artist|null
Tags
Return values
Artist|null —getSections()
Gets all sections of the current page
public
getSections() : Iterator<string|int, ModernPageSection>
Tags
Return values
Iterator<string|int, ModernPageSection> —getSegments()
Gets all sections of the current page
public
getSegments() : Iterator<string|int, ModernPageSection>
Tags
Return values
Iterator<string|int, ModernPageSection> —getUpdatedBy()
Gets the artist who last updated the segment_page
public
getUpdatedBy() : Artist|null
Tags
Return values
Artist|null —jsonSerialize()
public
jsonSerialize() : mixed
Tags
Return values
mixed —replaceSections()
Replaces all modern page sections with the new sections
public
replaceSections(array<int, array<string, int|string>> $newSections) : void
Parameters
- $newSections : array<int, array<string, int|string>>
-
The new sections
Tags
Return values
void —replaceSegments()
Replaces all modern page sections with the new sections
public
replaceSegments(array<int, array<string, int|string>> $newSections) : void
Parameters
- $newSections : array<int, array<string, int|string>>
-
The new sections
Tags
Return values
void —update()
Updates the current segment page
public
update() : void