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
getCategory()
public
getCategory() : FrontpageLocalisedText
Return values
FrontpageLocalisedTextgetContent()
public
getContent() : FrontpageLocalisedText
Return values
FrontpageLocalisedTextgetId()
Get the identifier of the object.
public
getId() : int|null
Tags
Return values
int|nullgetName()
public
getName() : FrontpageLocalisedText
Return values
FrontpageLocalisedTextgetRequiredRole()
public
getRequiredRole() : UserRoles
Return values
UserRolesgetResourceId()
Get the resource ID.
public
getResourceId() : string
Return values
stringgetSubCategory()
public
getSubCategory() : FrontpageLocalisedText
Return values
FrontpageLocalisedTextgetTitle()
public
getTitle() : FrontpageLocalisedText
Return values
FrontpageLocalisedTextsetCategory()
public
setCategory(FrontpageLocalisedText $category) : void
Parameters
- $category : FrontpageLocalisedText
setContent()
public
setContent(FrontpageLocalisedText $content) : void
Parameters
- $content : FrontpageLocalisedText
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
setName()
public
setName(FrontpageLocalisedText $name) : void
Parameters
- $name : FrontpageLocalisedText
setRequiredRole()
public
setRequiredRole(UserRoles $requiredRole) : void
Parameters
- $requiredRole : UserRoles
setSubCategory()
public
setSubCategory(FrontpageLocalisedText $subCategory) : void
Parameters
- $subCategory : FrontpageLocalisedText
setTitle()
public
setTitle(FrontpageLocalisedText $title) : void
Parameters
- $title : FrontpageLocalisedText
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}