ArticleDiscussionMessage
extends BaseEntity
in package
implements
OwnerAwareInterface, IdentifiableInterface
uses
IdentifiableTrait
AbstractYes
Attributes
- #[MappedSuperclass]
- #[PersonalDataOwner]
- 'userId'
- #[TableAlias]
- $alias: 'articleDiscussionMessage'
Table of Contents
Interfaces
- OwnerAwareInterface
- Entity that knows who created it (the owner is the author or sender of the record); the named entry point to the generic base of the conditional RBAC role `owner`.
- IdentifiableInterface
- Entity with a simple integer primary key. Most entities have one (often via {@see \App\Core\Traits\Shared\Models\Entities\IdentifiableTrait}); texts and links with a composite key do not, which is why `getId()` is not on {@see \App\Core\Base\BaseEntity}. Code that needs the id of a generic entity asks for this interface (parameter type, template bound, `instanceof`).
Properties
- $articleId : int
- $email : string|null
- $id : int|null
- $insertDatetime : DateTime
- $ip : string
- $languageId : int|null
- $parentId : int|null
- $text : string
- $userId : int|null
- $userName : string
Methods
- __construct() : mixed
- callInitMethods() : void
- Calls `init{TraitName}()` for every used trait that defines such a method.
- getAllTraits() : array<string, string>
- Returns all traits the class uses, including those used by parent classes and nested traits.
- getArticleId() : int
- getEmail() : string|null
- getId() : int|null
- getInsertDatetime() : DateTime
- getIp() : string
- getLanguageId() : int|null
- getOwnerUserId() : int|null
- Returns the id of the user who created the record; `null` for an unknown or anonymous owner.
- getParentId() : int|null
- getText() : string
- getUserId() : int|null
- getUserName() : string
- isPersisted() : bool
- setArticleId() : $this
- setEmail() : $this
- setId() : $this
- setInsertDatetime() : $this
- setIp() : $this
- setLanguageId() : $this
- setParentId() : $this
- setText() : $this
- setUserId() : $this
- setUserName() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$articleId
protected
int
$articleId
= 0
Attributes
- #[Column]
- $type: 'integer'
- $name: 'cms_mod_blog_articles_article_id'
- $options: ['unsigned' => true]
protected
string|null
$email
= null
Attributes
- #[Column]
- $type: 'string'
- $name: 'email'
- $length: 255
- $nullable: true
- #[PersonalData]
- PersonalDataKind::Email
$id
protected
int|null
$id
= null
Attributes
- #[Column]
- $type: 'integer'
- $name: 'article_discussion_message_id'
- $options: ['unsigned' => true]
- #[GeneratedValue]
- #[Id]
$insertDatetime
protected
DateTime
$insertDatetime
= new DateTime()
Attributes
- #[Column]
- $type: 'datetime'
- $name: 'insert_datetime'
$ip
protected
string
$ip
= ''
Attributes
- #[Column]
- $type: 'string'
- $name: 'ip'
- $length: 45
- #[PersonalData]
- PersonalDataKind::Hidden
$languageId
protected
int|null
$languageId
= null
Attributes
- #[Column]
- $type: 'integer'
- $name: 'cms_system_languages_language_id'
- $nullable: true
- $options: ['unsigned' => true]
$parentId
protected
int|null
$parentId
= null
Attributes
- #[Column]
- $name: 'parent_id'
- $type: 'integer'
- $nullable: true
- $options: ['unsigned' => true]
$text
protected
string
$text
= ''
Attributes
- #[Column]
- $type: 'text'
- $name: 'text'
$userId
protected
int|null
$userId
= null
Attributes
- #[Column]
- $type: 'integer'
- $name: 'cms_system_users_user_id'
- $nullable: true
- $options: ['unsigned' => true]
$userName
protected
string
$userName
= ''
Attributes
- #[Column]
- $type: 'string'
- $name: 'user_name'
- $length: 100
Methods
__construct()
public
__construct([int|null $id = null ][, int $articleId = 0 ][, int|null $userId = null ][, int|null $languageId = null ][, int|null $parentId = null ][, string $userName = '' ][, string|null $email = null ][, string $text = '' ][, string $ip = '' ][, DateTime $insertDatetime = new DateTime() ]) : mixed
Parameters
- $id : int|null = null
- $articleId : int = 0
- $userId : int|null = null
- $languageId : int|null = null
- $parentId : int|null = null
- $userName : string = ''
- $email : string|null = null
- $text : string = ''
- $ip : string = ''
- $insertDatetime : DateTime = new DateTime()
callInitMethods()
Calls `init{TraitName}()` for every used trait that defines such a method.
public
callInitMethods() : void
getAllTraits()
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>getArticleId()
public
getArticleId() : int
Return values
intgetEmail()
public
getEmail() : string|null
Return values
string|nullgetId()
public
getId() : int|null
Return values
int|nullgetInsertDatetime()
public
getInsertDatetime() : DateTime
Return values
DateTimegetIp()
public
getIp() : string
Return values
stringgetLanguageId()
public
getLanguageId() : int|null
Return values
int|nullgetOwnerUserId()
Returns the id of the user who created the record; `null` for an unknown or anonymous owner.
public
getOwnerUserId() : int|null
Return values
int|nullgetParentId()
public
getParentId() : int|null
Return values
int|nullgetText()
public
getText() : string
Return values
stringgetUserId()
public
getUserId() : int|null
Return values
int|nullgetUserName()
public
getUserName() : string
Return values
stringisPersisted()
public
isPersisted() : bool
Return values
boolsetArticleId()
public
setArticleId(int $id) : $this
Parameters
- $id : int
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 $dt) : $this
Parameters
- $dt : DateTime
Return values
$thissetIp()
public
setIp(string $ip) : $this
Parameters
- $ip : string
Return values
$thissetLanguageId()
public
setLanguageId(int|null $id) : $this
Parameters
- $id : int|null
Return values
$thissetParentId()
public
setParentId(int|null $parentId) : $this
Parameters
- $parentId : int|null
Return values
$thissetText()
public
setText(string $text) : $this
Parameters
- $text : string
Return values
$thissetUserId()
public
setUserId(int|null $id) : $this
Parameters
- $id : int|null
Return values
$thissetUserName()
public
setUserName(string $userName) : $this
Parameters
- $userName : string
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>