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
- #[Id]
- #[JoinColumn]
- $name: "cms_mod_blog_articles_article_id"
- $referencedColumnName: "article_id"
- #[ManyToOne]
- $targetEntity: \App\UI\Api\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
getActiveTranslation()
public
getActiveTranslation() : bool
Return values
boolgetAllTraits()
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
stringgetExternalUrl()
public
getExternalUrl() : string|null
Return values
string|nullgetLanguageId()
Translation language; null only for a new entity before `setLanguageId()`.
public
getLanguageId() : int|null
Return values
int|nullgetMetaDescription()
public
getMetaDescription() : string
Return values
stringgetMetaKeywords()
public
getMetaKeywords() : string
Return values
stringgetMetaTitle()
public
getMetaTitle() : string
Return values
stringgetName()
public
getName() : string
Return values
stringgetParent()
public
getParent() : object|null
Return values
object|nullgetPerex()
public
getPerex() : string
Return values
stringisActiveTranslation()
public
isActiveTranslation() : bool
Return values
boolsetActiveTranslation()
public
setActiveTranslation(bool $activeTranslation) : $this
Parameters
- $activeTranslation : bool
Return values
$thissetContent()
public
setContent(string $content) : $this
Parameters
- $content : string
Return values
$thissetExternalUrl()
public
setExternalUrl(string|null $externalUrl) : $this
Parameters
- $externalUrl : string|null
Return values
$thissetLanguageId()
public
setLanguageId(int $languageId) : $this
Parameters
- $languageId : int
Return values
$thissetMetaDescription()
public
setMetaDescription(string $metaDescription) : $this
Parameters
- $metaDescription : string
Return values
$thissetMetaKeywords()
public
setMetaKeywords(string $metaKeywords) : $this
Parameters
- $metaKeywords : string
Return values
$thissetMetaTitle()
public
setMetaTitle(string $metaTitle) : $this
Parameters
- $metaTitle : string
Return values
$thissetName()
public
setName(string $name) : $this
Parameters
- $name : string
Return values
$thissetParent()
public
setParent(object|null $parent) : static
Parameters
- $parent : object|null
Return values
staticsetPerex()
public
setPerex(string $perex) : $this
Parameters
- $perex : 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>