CoolCMS API

ArticleText extends ArticleText
in package

Attributes
#[Entity]
#[Table]
$name: 'cms_mod_blog_article_texts'
#[TableAlias]
'articleText'

Table of Contents

Properties

$activeTranslation  : bool
$content  : string
$externalUrl  : string|null
$languageId  : int|null
$metaDescription  : string
$metaKeywords  : string
$metaTitle  : string
$name  : string
$parent  : mixed
$perex  : string

Methods

__construct()  : mixed
callInitMethods()  : void
Calls `init{TraitName}()` for every used trait that defines such a method.
getActiveTranslation()  : bool
getAllTraits()  : array<string, string>
Returns all traits the class uses, including those used by parent classes and nested traits.
getContent()  : string
getExternalUrl()  : string|null
getLanguageId()  : int|null
Translation language; null only for a new entity before `setLanguageId()`.
getMetaDescription()  : string
getMetaKeywords()  : string
getMetaTitle()  : string
getName()  : string
getParent()  : object|null
getPerex()  : string
isActiveTranslation()  : bool
setActiveTranslation()  : $this
setContent()  : $this
setExternalUrl()  : $this
setLanguageId()  : $this
setMetaDescription()  : $this
setMetaKeywords()  : $this
setMetaTitle()  : $this
setName()  : $this
setParent()  : static
setPerex()  : $this
getTraitsRecursive()  : array<string, string>
Walks the trait list recursively and collects nested traits too.

Properties

$activeTranslation

protected bool $activeTranslation = true
Attributes
#[Column]
$name: 'active_translation'
$type: 'boolean'

$content

protected string $content = ''
Attributes
#[Column]
$name: 'content'
$type: 'text'

$externalUrl

protected string|null $externalUrl = null
Attributes
#[Column]
$name: 'external_url'
$type: 'text'
$nullable: true

$languageId

protected int|null $languageId = null
Attributes
#[Column]
$type: 'integer'
$name: 'cms_system_languages_language_id'
$options: ['unsigned' => true]
#[Id]
#[Identity]

$metaDescription

protected string $metaDescription = ''
Attributes
#[Column]
$name: 'meta_description'
$type: 'text'

$metaKeywords

protected string $metaKeywords = ''
Attributes
#[Column]
$name: 'meta_keywords'
$type: 'text'

$metaTitle

protected string $metaTitle = ''
Attributes
#[Column]
$name: 'meta_title'
$type: 'string'
$length: 255

$name

protected string $name = ''
Attributes
#[Column]
$name: 'name'
$type: 'string'
$length: 150

$parent

protected mixed $parent = null
Attributes
#[EntityOf]
\App\UI\Front\Blog\Models\Entities\Article::class
#[Id]
#[Identity]
#[JoinColumn]
$name: "cms_mod_blog_articles_article_id"
$referencedColumnName: "article_id"
#[ManyToOne]
$targetEntity: \App\UI\Front\Blog\Models\Entities\Article::class
$inversedBy: "translations"

$perex

protected string $perex = ''
Attributes
#[Column]
$name: 'perex'
$type: 'text'

Methods

__construct()

public __construct([int|null $languageId = null ][, string $name = '' ][, string $perex = '' ][, string $content = '' ][, string $metaTitle = '' ][, string $metaDescription = '' ][, string $metaKeywords = '' ][, string|null $externalUrl = null ][, bool $activeTranslation = true ]) : mixed
Parameters
$languageId : int|null = null
$name : string = ''
$perex : string = ''
$content : string = ''
$metaTitle : string = ''
$metaDescription : string = ''
$metaKeywords : string = ''
$externalUrl : string|null = null
$activeTranslation : bool = true

callInitMethods()

Calls `init{TraitName}()` for every used trait that defines such a method.

public callInitMethods() : void

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>

getContent()

public getContent() : string
Return values
string

getExternalUrl()

public getExternalUrl() : 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

getMetaDescription()

public getMetaDescription() : string
Return values
string

getMetaKeywords()

public getMetaKeywords() : string
Return values
string

getMetaTitle()

public getMetaTitle() : string
Return values
string

getName()

public getName() : string
Return values
string

getPerex()

public getPerex() : string
Return values
string

setActiveTranslation()

public setActiveTranslation(bool $activeTranslation) : $this
Parameters
$activeTranslation : bool
Return values
$this

setContent()

public setContent(string $content) : $this
Parameters
$content : string
Return values
$this

setExternalUrl()

public setExternalUrl(string|null $externalUrl) : $this
Parameters
$externalUrl : string|null
Return values
$this

setLanguageId()

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

setMetaDescription()

public setMetaDescription(string $metaDescription) : $this
Parameters
$metaDescription : string
Return values
$this

setMetaKeywords()

public setMetaKeywords(string $metaKeywords) : $this
Parameters
$metaKeywords : string
Return values
$this

setMetaTitle()

public setMetaTitle(string $metaTitle) : $this
Parameters
$metaTitle : string
Return values
$this

setName()

public setName(string $name) : $this
Parameters
$name : string
Return values
$this

setParent()

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

setPerex()

public setPerex(string $perex) : $this
Parameters
$perex : 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