Documentation

Page
in package
implements ResourceInterface uses IdentifiableTrait

Page.

Attributes
#[Entity]

Table of Contents

Interfaces

ResourceInterface

Properties

$category  : FrontpageLocalisedText
Category of the page.
$content  : FrontpageLocalisedText
The HTML content of the page.
$id  : int|null
The default value must be `null` to prevent issues with auto generating the value. The column is strictly not nullable.
$name  : FrontpageLocalisedText
Name of the page.
$requiredRole  : UserRoles
The minimal role required to view a page.
$subCategory  : FrontpageLocalisedText
Sub-category of the page.
$title  : FrontpageLocalisedText
Title of the page.

Methods

getCategory()  : FrontpageLocalisedText
getContent()  : FrontpageLocalisedText
getId()  : int|null
Get the identifier of the object.
getName()  : FrontpageLocalisedText
getRequiredRole()  : UserRoles
getResourceId()  : string
Get the resource ID.
getSubCategory()  : FrontpageLocalisedText
getTitle()  : FrontpageLocalisedText
setCategory()  : void
setContent()  : void
setId()  : void
Setting the identifier manually will, in most instances, result in undefined behaviour. Use with caution!
setName()  : void
setRequiredRole()  : void
setSubCategory()  : void
setTitle()  : void
toArray()  : array{categoryEn: ?string, category: ?string, subCategoryEn: ?string, subCategory: ?string, nameEn: ?string, name: ?string, titleEn: ?string, title: ?string, contentEn: ?string, content: ?string, requiredRole: string}

Properties

$category

Category of the page.

protected FrontpageLocalisedText $category
Attributes
#[JoinColumn]
$name: 'category_id'
$referencedColumnName: 'id'
$nullable: false
#[OneToOne]
$targetEntity: \Frontpage\Model\FrontpageLocalisedText::class
$cascade: ['persist', 'remove']
$orphanRemoval: true

$content

The HTML content of the page.

protected FrontpageLocalisedText $content
Attributes
#[JoinColumn]
$name: 'content_id'
$referencedColumnName: 'id'
$nullable: false
#[OneToOne]
$targetEntity: \Frontpage\Model\FrontpageLocalisedText::class
$cascade: ['persist', 'remove']
$orphanRemoval: true

$id

The default value must be `null` to prevent issues with auto generating the value. The column is strictly not nullable.

protected int|null $id = null
Attributes
#[Column]
$type: 'integer'
#[GeneratedValue]
$strategy: 'IDENTITY'
#[Id]

$name

Name of the page.

protected FrontpageLocalisedText $name
Attributes
#[JoinColumn]
$name: 'name_id'
$referencedColumnName: 'id'
$nullable: false
#[OneToOne]
$targetEntity: \Frontpage\Model\FrontpageLocalisedText::class
$cascade: ['persist', 'remove']
$orphanRemoval: true

$requiredRole

The minimal role required to view a page.

protected UserRoles $requiredRole
Attributes
#[Column]
$type: 'string'
$enumType: \User\Model\Enums\UserRoles::class

$subCategory

Sub-category of the page.

protected FrontpageLocalisedText $subCategory
Attributes
#[JoinColumn]
$name: 'subCategory_id'
$referencedColumnName: 'id'
$nullable: false
#[OneToOne]
$targetEntity: \Frontpage\Model\FrontpageLocalisedText::class
$cascade: ['persist', 'remove']
$orphanRemoval: true

$title

Title of the page.

protected FrontpageLocalisedText $title
Attributes
#[JoinColumn]
$name: 'title_id'
$referencedColumnName: 'id'
$nullable: false
#[OneToOne]
$targetEntity: \Frontpage\Model\FrontpageLocalisedText::class
$cascade: ['persist', 'remove']
$orphanRemoval: true

Methods

getId()

Get the identifier of the object.

public getId() : int|null
Tags
psalm-ignore-nullable-return
Return values
int|null

getResourceId()

Get the resource ID.

public getResourceId() : string
Return values
string

setId()

Setting the identifier manually will, in most instances, result in undefined behaviour. Use with caution!

public setId(int|null $id) : void
Parameters
$id : int|null

toArray()

public toArray() : array{categoryEn: ?string, category: ?string, subCategoryEn: ?string, subCategory: ?string, nameEn: ?string, name: ?string, titleEn: ?string, title: ?string, contentEn: ?string, content: ?string, requiredRole: string}
Return values
array{categoryEn: ?string, category: ?string, subCategoryEn: ?string, subCategory: ?string, nameEn: ?string, name: ?string, titleEn: ?string, title: ?string, contentEn: ?string, content: ?string, requiredRole: string}

        
On this page

Search results