CoolCMS API

AdminPageText extends AdminPageText
in package

Tags
extends
Attributes
#[Entity]
#[Table]
$name: 'cms_admin_system_page_texts'
#[TableAlias]
'adminPageText'

Table of Contents

Properties

$actionHref  : string|null
$adminPage  : TAdminPage|null
$description  : string|null
$keywords  : string|null
$languageId  : int|null
$parent  : mixed
$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

$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

protected mixed $parent = null
Attributes
#[Id]
#[JoinColumn]
$name: 'cms_admin_system_pages_page_id'
$referencedColumnName: 'page_id'
$onDelete: 'CASCADE'
#[ManyToOne]
$targetEntity: \App\UI\Api\System\Models\Entities\AdminPage::class
$inversedBy: 'translations'

$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|null

getAdminPage()

public getAdminPage() : TAdminPage|null
Return values
TAdminPage|null

getAllTraits()

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|null

getKeywords()

public getKeywords() : string|null
Return values
string|null

getLanguageId()

Translation language; null only for a new entity before `setLanguageId()`.

public getLanguageId() : int|null
Return values
int|null

getPresenterHref()

public getPresenterHref() : string|null
Return values
string|null

getText()

public getText() : string|null
Return values
string|null

setActionHref()

public setActionHref(string|null $actionHref) : $this
Parameters
$actionHref : string|null
Return values
$this

setAdminPage()

public setAdminPage(TAdminPage|null $adminPage) : $this
Parameters
$adminPage : TAdminPage|null
Return values
$this

setDescription()

public setDescription(string|null $description) : $this
Parameters
$description : string|null
Return values
$this

setKeywords()

public setKeywords(string|null $keywords) : $this
Parameters
$keywords : string|null
Return values
$this

setLanguageId()

public setLanguageId(int $languageId) : $this
Parameters
$languageId : int
Return values
$this

setParent()

public setParent(object|null $parent) : static
Parameters
$parent : object|null
Return values
static

setPresenterHref()

public setPresenterHref(string|null $presenterHref) : $this
Parameters
$presenterHref : string|null
Return values
$this

setText()

public setText(string|null $text) : $this
Parameters
$text : string|null
Return values
$this

setTitle()

public setTitle(string $title) : $this
Parameters
$title : string
Return values
$this

getTraitsRecursive()

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>
Return values
array<string, string>
On this page

Search results