IntroText
extends IntroText
in package
Tags
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_mod_blog_intro_texts'
- #[TableAlias]
- 'introText'
Table of Contents
Properties
- $activeTranslation : bool
- $intro : TIntro|null
- $languageId : int|null
- $link : string|null
- $parent : mixed
- $text : string|null
- $title : string|null
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.
- getIntro() : TIntro|null
- getLanguageId() : int|null
- Translation language; null only for a new entity before `setLanguageId()`.
- getLink() : string|null
- getParent() : object|null
- getText() : string|null
- getTitle() : string|null
- isActiveTranslation() : bool
- setActiveTranslation() : $this
- setIntro() : $this
- setLanguageId() : $this
- setLink() : $this
- setParent() : static
- setText() : $this
- setTitle() : $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'
$intro
protected
TIntro|null
$intro
= null
Attributes
- #[Transient]
$languageId
protected
int|null
$languageId
= null
Attributes
- #[Column]
- $name: 'cms_system_languages_language_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[Id]
- #[Identity]
$link
protected
string|null
$link
= null
Attributes
- #[Column]
- $name: 'link'
- $type: 'text'
- $nullable: true
$parent
protected
mixed
$parent
= null
Attributes
- #[EntityOf]
- \App\UI\Front\Blog\Models\Entities\Intro::class
- #[Id]
- #[Identity]
- #[JoinColumn]
- $name: 'cms_mod_blog_intros_intro_id'
- $referencedColumnName: 'intro_id'
- $onDelete: 'CASCADE'
- #[ManyToOne]
- $targetEntity: \App\UI\Front\Blog\Models\Entities\Intro::class
- $inversedBy: 'translations'
$text
protected
string|null
$text
= null
Attributes
- #[Column]
- $name: 'text'
- $type: 'text'
- $nullable: true
$title
protected
string|null
$title
= null
Attributes
- #[Column]
- $name: 'title'
- $type: 'string'
- $length: 255
- $nullable: true
Methods
__construct()
public
__construct([mixed $intro = null ][, int|null $languageId = null ][, string|null $title = null ][, string|null $text = null ][, string|null $link = null ][, bool $activeTranslation = true ]) : mixed
Parameters
- $intro : mixed = null
- $languageId : int|null = null
- $title : string|null = null
- $text : string|null = null
- $link : 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>getIntro()
public
getIntro() : TIntro|null
Return values
TIntro|nullgetLanguageId()
Translation language; null only for a new entity before `setLanguageId()`.
public
getLanguageId() : int|null
Return values
int|nullgetLink()
public
getLink() : string|null
Return values
string|nullgetParent()
public
getParent() : object|null
Return values
object|nullgetText()
public
getText() : string|null
Return values
string|nullgetTitle()
public
getTitle() : string|null
Return values
string|nullisActiveTranslation()
public
isActiveTranslation() : bool
Return values
boolsetActiveTranslation()
public
setActiveTranslation(bool $activeTranslation) : $this
Parameters
- $activeTranslation : bool
Return values
$thissetIntro()
public
setIntro(TIntro|null $intro) : $this
Parameters
- $intro : TIntro|null
Return values
$thissetLanguageId()
public
setLanguageId(int $languageId) : $this
Parameters
- $languageId : int
Return values
$thissetLink()
public
setLink(string|null $link) : $this
Parameters
- $link : string|null
Return values
$thissetParent()
public
setParent(object|null $parent) : static
Parameters
- $parent : object|null
Return values
staticsetText()
public
setText(string|null $text) : $this
Parameters
- $text : string|null
Return values
$thissetTitle()
public
setTitle(string|null $title) : $this
Parameters
- $title : string|null
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>