EventText
extends EventText
in package
Tags
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_mod_blog_event_texts'
- #[TableAlias]
- 'eventText'
Table of Contents
Properties
- $activeTranslation : bool
- $description : string
- $event : TEvent|null
- $languageId : int|null
- $name : string
- $parent : mixed
- $perex : 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.
- getDescription() : string
- getEvent() : TEvent|null
- getLanguageId() : int|null
- Translation language; null only for a new entity before `setLanguageId()`.
- getName() : string
- getParent() : object|null
- getPerex() : string|null
- isActiveTranslation() : bool
- setActiveTranslation() : $this
- setDescription() : $this
- setEvent() : $this
- setLanguageId() : $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]
- $type: 'boolean'
- $name: 'active_translation'
$description
protected
string
$description
= ''
Attributes
- #[Column]
- $type: 'text'
- $length: 16777215
- $name: 'description'
$event
protected
TEvent|null
$event
= null
Attributes
- #[Transient]
$languageId
protected
int|null
$languageId
= null
Attributes
- #[Column]
- $type: 'integer'
- $name: 'cms_system_languages_language_id'
- $options: ['unsigned' => true]
- #[Id]
- #[Identity]
$name
protected
string
$name
= ''
Attributes
- #[Column]
- $type: 'string'
- $name: 'name'
- $length: 255
$parent
protected
mixed
$parent
= null
Attributes
- #[Id]
- #[JoinColumn]
- $name: 'cms_mod_blog_events_event_id'
- $referencedColumnName: 'event_id'
- $onDelete: 'CASCADE'
- #[ManyToOne]
- $targetEntity: \App\UI\Api\Blog\Models\Entities\Event::class
- $inversedBy: 'translations'
$perex
protected
string|null
$perex
= null
Attributes
- #[Column]
- $name: 'perex'
- $type: 'text'
- $nullable: true
Methods
__construct()
public
__construct([int|null $languageId = null ][, mixed $event = null ][, string $name = '' ][, string|null $perex = null ][, string $description = '' ][, bool $activeTranslation = true ]) : mixed
Parameters
- $languageId : int|null = null
- $event : mixed = null
- $name : string = ''
- $perex : string|null = null
- $description : string = ''
- $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>getDescription()
public
getDescription() : string
Return values
stringgetEvent()
public
getEvent() : TEvent|null
Return values
TEvent|nullgetLanguageId()
Translation language; null only for a new entity before `setLanguageId()`.
public
getLanguageId() : int|null
Return values
int|nullgetName()
public
getName() : string
Return values
stringgetParent()
public
getParent() : object|null
Return values
object|nullgetPerex()
public
getPerex() : string|null
Return values
string|nullisActiveTranslation()
public
isActiveTranslation() : bool
Return values
boolsetActiveTranslation()
public
setActiveTranslation(bool $activeTranslation) : $this
Parameters
- $activeTranslation : bool
Return values
$thissetDescription()
public
setDescription(string $d) : $this
Parameters
- $d : string
Return values
$thissetEvent()
public
setEvent(TEvent|null $event) : $this
Parameters
- $event : TEvent|null
Return values
$thissetLanguageId()
public
setLanguageId(int $languageId) : $this
Parameters
- $languageId : int
Return values
$thissetName()
public
setName(string $n) : $this
Parameters
- $n : string
Return values
$thissetParent()
public
setParent(object|null $parent) : static
Parameters
- $parent : object|null
Return values
staticsetPerex()
public
setPerex(string|null $perex) : $this
Parameters
- $perex : 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>