NewsletterAddress
extends NewsletterAddress
in package
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_mod_base_newsletter_addresses'
- #[TableAlias]
- 'newsletterAddress'
Table of Contents
Properties
- $actionCode : NewsletterActionCode|null
- $activated : bool
- $activationKey : string|null
- $email : string|null
- $id : int|null
- $insertDatetime : DateTime|null
- $languageId : int|null
Methods
- __construct() : mixed
- callInitMethods() : void
- Calls `init{TraitName}()` for every used trait that defines such a method.
- getActionCode() : NewsletterActionCode|null
- getActivated() : bool
- getActivationKey() : string|null
- getAllTraits() : array<string, string>
- Returns all traits the class uses, including those used by parent classes and nested traits.
- getEmail() : string|null
- getId() : int|null
- getInsertDatetime() : DateTime|null
- getLanguageId() : int|null
- isActivated() : bool
- isPersisted() : bool
- setActionCode() : $this
- setActivated() : $this
- setActivationKey() : $this
- setEmail() : $this
- setId() : $this
- setInsertDatetime() : $this
- setLanguageId() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$actionCode
protected
NewsletterActionCode|null
$actionCode
= null
Attributes
- #[Column]
- $name: 'action_code'
- $type: 'integer'
- $nullable: true
- $enumType: NewsletterActionCode::class
$activated
protected
bool
$activated
= false
Attributes
- #[Column]
- $name: 'activated'
- $type: 'boolean'
$activationKey
protected
string|null
$activationKey
= null
Attributes
- #[Column]
- $name: 'activation_key'
- $type: 'string'
- $length: 40
- #[FieldAccess]
- $read: Audience::Internal
- $insert: Audience::All
- $update: Audience::All
protected
string|null
$email
= null
Attributes
- #[Column]
- $name: 'email'
- $type: 'string'
- $length: 255
$id
protected
int|null
$id
= null
Attributes
- #[Column]
- $name: 'address_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[GeneratedValue]
- #[Id]
$insertDatetime
protected
DateTime|null
$insertDatetime
= null
Attributes
- #[Column]
- $name: 'insert_datetime'
- $type: 'datetime'
$languageId
protected
int|null
$languageId
= null
Attributes
- #[Column]
- $name: 'cms_system_languages_language_id'
- $type: 'integer'
- $nullable: true
- $options: ['unsigned' => true]
Methods
__construct()
public
__construct([int|null $id = null ][, string|null $email = null ][, DateTime|null $insertDatetime = null ][, NewsletterActionCode|null $actionCode = null ][, int|null $languageId = null ][, bool $activated = false ][, string|null $activationKey = null ]) : mixed
Parameters
- $id : int|null = null
- $email : string|null = null
- $insertDatetime : DateTime|null = null
- $actionCode : NewsletterActionCode|null = null
- $languageId : int|null = null
- $activated : bool = false
- $activationKey : string|null = null
callInitMethods()
Calls `init{TraitName}()` for every used trait that defines such a method.
public
callInitMethods() : void
getActionCode()
public
getActionCode() : NewsletterActionCode|null
Return values
NewsletterActionCode|nullgetActivated()
public
getActivated() : bool
Return values
boolgetActivationKey()
public
getActivationKey() : string|null
Return values
string|nullgetAllTraits()
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>getEmail()
public
getEmail() : string|null
Return values
string|nullgetId()
public
getId() : int|null
Return values
int|nullgetInsertDatetime()
public
getInsertDatetime() : DateTime|null
Return values
DateTime|nullgetLanguageId()
public
getLanguageId() : int|null
Return values
int|nullisActivated()
public
isActivated() : bool
Return values
boolisPersisted()
public
isPersisted() : bool
Return values
boolsetActionCode()
public
setActionCode(NewsletterActionCode|null $actionCode) : $this
Parameters
- $actionCode : NewsletterActionCode|null
Return values
$thissetActivated()
public
setActivated(bool $activated) : $this
Parameters
- $activated : bool
Return values
$thissetActivationKey()
public
setActivationKey(string|null $activationKey) : $this
Parameters
- $activationKey : string|null
Return values
$thissetEmail()
public
setEmail(string|null $email) : $this
Parameters
- $email : string|null
Return values
$thissetId()
public
setId(int|null $id) : $this
Parameters
- $id : int|null
Return values
$thissetInsertDatetime()
public
setInsertDatetime(DateTime|null $insertDatetime) : $this
Parameters
- $insertDatetime : DateTime|null
Return values
$thissetLanguageId()
public
setLanguageId(int|null $languageId) : $this
Parameters
- $languageId : int|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>