WatchdogEmailText
extends WatchdogEmailText
in package
Tags
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_mod_bazaar_watchdog_email_texts'
- #[TableAlias]
- 'watchdogEmailText'
Table of Contents
Properties
- $activeTranslation : bool
- $body : string|null
- $languageId : int|null
- $parent : mixed
- $subject : string|null
- $watchdogEmail : TWatchdogEmail|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.
- getBody() : string|null
- getLanguageId() : int|null
- Translation language; null only for a new entity before `setLanguageId()`.
- getParent() : object|null
- getSubject() : string|null
- getWatchdogEmail() : TWatchdogEmail|null
- isActiveTranslation() : bool
- setActiveTranslation() : $this
- setBody() : $this
- setLanguageId() : $this
- setParent() : static
- setSubject() : $this
- setWatchdogEmail() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$activeTranslation
protected
bool
$activeTranslation
= false
Attributes
- #[Column]
- $name: 'active_translation'
- $type: 'boolean'
$body
protected
string|null
$body
= null
Attributes
- #[Column]
- $name: 'body'
- $type: 'text'
- $nullable: true
$languageId
protected
int|null
$languageId
= null
Attributes
- #[Column]
- $name: 'cms_system_languages_language_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[Id]
- #[Identity]
$parent
protected
mixed
$parent
= null
Attributes
- #[Id]
- #[JoinColumn]
- $name: 'cms_mod_bazaar_watchdog_emails_watchdog_email_id'
- $referencedColumnName: 'watchdog_email_id'
- $onDelete: 'CASCADE'
- #[ManyToOne]
- $targetEntity: \App\UI\Api\Bazaar\Models\Entities\WatchdogEmail::class
- $inversedBy: 'translations'
$subject
protected
string|null
$subject
= null
Attributes
- #[Column]
- $name: 'subject'
- $type: 'string'
- $length: 255
- $nullable: true
$watchdogEmail
protected
TWatchdogEmail|null
$watchdogEmail
= null
Attributes
- #[Transient]
Methods
__construct()
public
__construct([int|null $languageId = null ][, mixed $watchdogEmail = null ][, string|null $subject = null ][, string|null $body = null ][, bool $activeTranslation = false ]) : mixed
Parameters
- $languageId : int|null = null
- $watchdogEmail : mixed = null
- $subject : string|null = null
- $body : string|null = null
- $activeTranslation : bool = false
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>getBody()
public
getBody() : string|null
Return values
string|nullgetLanguageId()
Translation language; null only for a new entity before `setLanguageId()`.
public
getLanguageId() : int|null
Return values
int|nullgetParent()
public
getParent() : object|null
Return values
object|nullgetSubject()
public
getSubject() : string|null
Return values
string|nullgetWatchdogEmail()
public
getWatchdogEmail() : TWatchdogEmail|null
Return values
TWatchdogEmail|nullisActiveTranslation()
public
isActiveTranslation() : bool
Return values
boolsetActiveTranslation()
public
setActiveTranslation(bool $activeTranslation) : $this
Parameters
- $activeTranslation : bool
Return values
$thissetBody()
public
setBody(string|null $body) : $this
Parameters
- $body : string|null
Return values
$thissetLanguageId()
public
setLanguageId(int $languageId) : $this
Parameters
- $languageId : int
Return values
$thissetParent()
public
setParent(object|null $parent) : static
Parameters
- $parent : object|null
Return values
staticsetSubject()
public
setSubject(string|null $subject) : $this
Parameters
- $subject : string|null
Return values
$thissetWatchdogEmail()
public
setWatchdogEmail(TWatchdogEmail|null $watchdogEmail) : $this
Parameters
- $watchdogEmail : TWatchdogEmail|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>