AdminPageText
extends BaseEntity
in package
implements
TranslationInterface
uses
TranslationLanguageTrait
AbstractYes
Tags
Attributes
- #[MappedSuperclass]
- #[TableAlias]
- $alias: 'adminPageText'
Table of Contents
Interfaces
- TranslationInterface
- Translation entity (`*Text`): one row of parent texts for one language.
Properties
- $actionHref : string|null
- $adminPage : TAdminPage|null
- $description : string|null
- $keywords : string|null
- $languageId : int|null
- $parent : object|null
- Parent entity of the translation (the second part of the derived identity next to `languageId`).
- $presenterHref : string|null
- $text : string|null
- $title : string
Methods
- __construct() : mixed
- callInitMethods() : void
- Calls `init{TraitName}()` for every used trait that defines such a method.
- getActionHref() : string|null
- getAdminPage() : TAdminPage|null
- getAllTraits() : array<string, string>
- Returns all traits the class uses, including those used by parent classes and nested traits.
- getDescription() : string|null
- getKeywords() : string|null
- getLanguageId() : int|null
- Translation language; null only for a new entity before `setLanguageId()`.
- getParent() : object|null
- getPresenterHref() : string|null
- getText() : string|null
- getTitle() : string
- setActionHref() : $this
- setAdminPage() : $this
- setDescription() : $this
- setKeywords() : $this
- setLanguageId() : $this
- setParent() : static
- setPresenterHref() : $this
- setText() : $this
- setTitle() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$actionHref
protected
string|null
$actionHref
= null
Attributes
- #[Column]
- $name: 'action_href'
- $type: 'string'
- $length: 255
- $nullable: true
$adminPage
protected
TAdminPage|null
$adminPage
= null
Attributes
- #[Transient]
$description
protected
string|null
$description
= null
Attributes
- #[Column]
- $name: 'description'
- $type: 'text'
- $nullable: true
$keywords
protected
string|null
$keywords
= null
Attributes
- #[Column]
- $name: 'keywords'
- $type: 'text'
- $nullable: true
$languageId
protected
int|null
$languageId
= null
Attributes
- #[Column]
- $name: 'cms_system_languages_language_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[Id]
- #[Identity]
$parent
Parent entity of the translation (the second part of the derived identity next to `languageId`).
protected
object|null
$parent
= null
The property is untyped on purpose: the UI variant supplies the concrete type and ORM mapping
by redeclaring protected $parent = null;, as *Rel join entities do. The null default
prevents a "typed property must not be accessed before initialization" error when the identity
is read.
$presenterHref
protected
string|null
$presenterHref
= null
Attributes
- #[Column]
- $name: 'presenter_href'
- $type: 'string'
- $length: 255
- $nullable: true
$text
protected
string|null
$text
= null
Attributes
- #[Column]
- $name: 'text'
- $type: 'text'
- $nullable: true
$title
protected
string
$title
= ''
Attributes
- #[Column]
- $name: 'title'
- $type: 'string'
- $length: 255
Methods
__construct()
public
__construct([int|null $languageId = null ][, mixed $adminPage = null ][, string $title = '' ][, string|null $description = null ][, string|null $keywords = null ][, string|null $text = null ][, string|null $presenterHref = null ][, string|null $actionHref = null ]) : mixed
Parameters
- $languageId : int|null = null
- $adminPage : mixed = null
- $title : string = ''
- $description : string|null = null
- $keywords : string|null = null
- $text : string|null = null
- $presenterHref : string|null = null
- $actionHref : string|null = null
callInitMethods()
Calls `init{TraitName}()` for every used trait that defines such a method.
public
callInitMethods() : void
getActionHref()
public
getActionHref() : string|null
Return values
string|nullgetAdminPage()
public
getAdminPage() : TAdminPage|null
Return values
TAdminPage|nullgetAllTraits()
Returns all traits the class uses, including those used by parent classes and nested traits.
public
getAllTraits() : array<string, string>
Return values
array<string, string>getDescription()
public
getDescription() : string|null
Return values
string|nullgetKeywords()
public
getKeywords() : string|null
Return values
string|nullgetLanguageId()
Translation language; null only for a new entity before `setLanguageId()`.
public
getLanguageId() : int|null
Return values
int|nullgetParent()
public
getParent() : object|null
Return values
object|nullgetPresenterHref()
public
getPresenterHref() : string|null
Return values
string|nullgetText()
public
getText() : string|null
Return values
string|nullgetTitle()
public
getTitle() : string
Return values
stringsetActionHref()
public
setActionHref(string|null $actionHref) : $this
Parameters
- $actionHref : string|null
Return values
$thissetAdminPage()
public
setAdminPage(TAdminPage|null $adminPage) : $this
Parameters
- $adminPage : TAdminPage|null
Return values
$thissetDescription()
public
setDescription(string|null $description) : $this
Parameters
- $description : string|null
Return values
$thissetKeywords()
public
setKeywords(string|null $keywords) : $this
Parameters
- $keywords : string|null
Return values
$thissetLanguageId()
public
setLanguageId(int $languageId) : $this
Parameters
- $languageId : int
Return values
$thissetParent()
public
setParent(object|null $parent) : static
Parameters
- $parent : object|null
Return values
staticsetPresenterHref()
public
setPresenterHref(string|null $presenterHref) : $this
Parameters
- $presenterHref : string|null
Return values
$thissetText()
public
setText(string|null $text) : $this
Parameters
- $text : string|null
Return values
$thissetTitle()
public
setTitle(string $title) : $this
Parameters
- $title : string
Return values
$thisgetTraitsRecursive()
Walks the trait list recursively and collects nested traits too.
private
static getTraitsRecursive(array<string, string> $traits) : array<string, string>
Parameters
- $traits : array<string, string>