FlashMessageText
extends FlashMessageText
in package
Tags
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_mod_blog_flash_message_texts'
- #[TableAlias]
- 'flashMessageText'
Table of Contents
Properties
- $activeTranslation : bool
- $flashMessage : TFlashMessage|null
- $languageId : int|null
- $longText : 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.
- getFlashMessage() : TFlashMessage|null
- getLanguageId() : int|null
- Translation language; null only for a new entity before `setLanguageId()`.
- getLongText() : string|null
- getParent() : object|null
- getText() : string|null
- getTitle() : string|null
- isActiveTranslation() : bool
- setActiveTranslation() : $this
- setFlashMessage() : $this
- setLanguageId() : $this
- setLongText() : $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'
$flashMessage
protected
TFlashMessage|null
$flashMessage
= null
Attributes
- #[Transient]
$languageId
protected
int|null
$languageId
= null
Attributes
- #[Column]
- $name: 'cms_system_languages_language_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[Id]
- #[Identity]
$longText
protected
string|null
$longText
= NULL
Attributes
- #[Column]
- $name: 'long_text'
- $type: 'text'
- $nullable: true
$parent
protected
mixed
$parent
= null
Attributes
- #[EntityOf]
- \App\UI\Admin\Blog\Models\Entities\FlashMessage::class
- #[Id]
- #[Identity]
- #[JoinColumn]
- $name: 'cms_mod_blog_flash_messages_flash_message_id'
- $referencedColumnName: 'flash_message_id'
- $onDelete: 'CASCADE'
- #[ManyToOne]
- $targetEntity: \App\UI\Admin\Blog\Models\Entities\FlashMessage::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: 150
- $nullable: true
Methods
__construct()
public
__construct([mixed $flashMessage = null ][, int|null $languageId = null ][, string|null $title = null ][, string|null $text = null ][, string|null $longText = null ][, bool $activeTranslation = true ]) : mixed
Parameters
- $flashMessage : mixed = null
- $languageId : int|null = null
- $title : string|null = null
- $text : string|null = null
- $longText : 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>getFlashMessage()
public
getFlashMessage() : TFlashMessage|null
Return values
TFlashMessage|nullgetLanguageId()
Translation language; null only for a new entity before `setLanguageId()`.
public
getLanguageId() : int|null
Return values
int|nullgetLongText()
public
getLongText() : 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
$thissetFlashMessage()
public
setFlashMessage(TFlashMessage|null $flashMessage) : $this
Parameters
- $flashMessage : TFlashMessage|null
Return values
$thissetLanguageId()
public
setLanguageId(int $languageId) : $this
Parameters
- $languageId : int
Return values
$thissetLongText()
public
setLongText(string|null $longText) : $this
Parameters
- $longText : 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>