Message
extends Message
in package
Admin variant of a discussion message (`cms_mod_discussion_messages`), hydrated from the `api/discussion/message` endpoint via `ApiBridge`.
The tree (parentId/lft/rgt) is inherited from the Shared parent. The comment and
rating threads are read-only (the edit tabs only need their ids); the Api manager creates
and maintains them in afterSave. They are #[Transient] so a save neither extracts them
nor overwrites the FK; #[EntityOf] hydrates them as objects when read from includes.
Tags
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_mod_discussion_messages'
- #[TableAlias]
- 'message'
Table of Contents
Properties
- $activationKey : string|null
- $approvedAt : DateTime|null
- $asset : TImage|null
- $assetRels : Collection<int, MessageAssetRel>
- $assets : array<int, TImage>
- $banned : bool
- $categories : Collection<int, Category>
- $commentThread : CommentThread|null
- $commentThreadId : int|null
- $confirmedAt : DateTime|null
- $deactivated : bool
- $deleted : bool
- $email : string
- $externalUrl : string|null
- $firstParentId : int|null
- $id : int|null
- $insertDatetime : DateTime
- $ip : string|null
- $level : int
- $lft : int
- $manageKeyExpires : DateTime|null
- $manageKeyHash : string|null
- $paid : bool
- $parentId : int|null
- $password : string
- $ratingThread : RatingThread|null
- $reported : bool
- $rgt : int
- $showComments : bool
- $subject : string
- $text : string
- $topedUntil : DateTime|null
- $userId : int|null
- $username : string|null
- $viewsDetail : int
- $viewsList : int
- $votesDown : int
- $votesUp : int
Methods
- __construct() : mixed
- addAssetRel() : $this
- addCategory() : $this
- assetRelCollectionInit() : void
- callInitMethods() : void
- Calls `init{TraitName}()` for every used trait that defines such a method.
- categoryCollectionInit() : void
- clearCategories() : $this
- getActivationKey() : string|null
- getAllTraits() : array<string, string>
- Returns all traits the class uses, including those used by parent classes and nested traits.
- getApprovedAt() : DateTime|null
- getAsset() : TImage|null
- getAssetRels() : Collection<int, TAssetRel>
- getAssets() : array<int, mixed>
- Assets of the non-removed rels, ordered by `order` — whatever the rel's untyped `getAsset()` holds (asset entity, or null).
- getBanned() : bool
- getCategories() : Collection<int, TCategory>
- getCategoryIds() : array<string|int, int>
- getCommentsCount() : int
- getCommentThread() : TCommentThread|null
- getCommentThreadId() : int|null
- getConfirmedAt() : DateTime|null
- getDeactivated() : bool
- getDeleted() : bool
- getEmail() : string
- getExternalUrl() : string|null
- getFirstCategoryId() : int|null
- getFirstParentId() : int|null
- getId() : int|null
- getInsertDatetime() : DateTime
- getIp() : string|null
- getLevel() : int
- getLft() : int
- getMainAsset() : Asset|null
- getManageKeyExpires() : DateTime|null
- getManageKeyHash() : string|null
- getOwnerUserId() : int|null
- Returns the id of the user who created the record; `null` for an unknown or anonymous owner.
- getPaid() : bool
- getParentId() : int|null
- getPassword() : string
- Password hash (or the random secret of a guest post) the key is bound to; empty = no key can be issued.
- getRatingThread() : TRatingThread|null
- getRatingThreadId() : int|null
- getReported() : bool
- getRgt() : int
- getShowComments() : bool
- getSubject() : string
- getText() : string
- getTopedUntil() : DateTime|null
- getUserId() : int|null
- getUsername() : string|null
- getViewsDetail() : int
- getViewsList() : int
- getVotesDown() : int
- getVotesUp() : int
- isApproved() : bool
- isBanned() : bool
- isConfirmed() : bool
- isDeactivated() : bool
- isDeleted() : bool
- isPaid() : bool
- isPersisted() : bool
- isReported() : bool
- isShowComments() : bool
- isToped() : bool
- Whether topping is in effect now; the same rule as the list order `topedUntil > NOW()` (as `Advert::isToped()`).
- removeAssetRel() : $this
- removeCategory() : $this
- setActivationKey() : $this
- setApprovedAt() : $this
- setAsset() : $this
- setAssetRels() : $this
- IMPORTANT: the parameter type must be `Collection`, not `ArrayCollection`; the keep branch of the Api `SaveTrait` can pass a `PersistentCollection` from a managed entity, and a narrower type would throw a `TypeError` and fail the save.
- setBanned() : $this
- setCategories() : $this
- setCommentThread() : $this
- setCommentThreadId() : $this
- setConfirmedAt() : $this
- setDeactivated() : $this
- setDeleted() : $this
- setEmail() : $this
- setExternalUrl() : $this
- setFirstParentId() : $this
- setId() : $this
- setInsertDatetime() : $this
- setIp() : $this
- setLevel() : $this
- setLft() : $this
- setManageKeyExpires() : $this
- setManageKeyHash() : $this
- setPaid() : $this
- setParentId() : $this
- setPassword() : $this
- setRatingThread() : $this
- setReported() : $this
- setRgt() : $this
- setShowComments() : $this
- setSubject() : $this
- setText() : $this
- setTopedUntil() : $this
- setUserId() : $this
- setUsername() : $this
- setViewsDetail() : $this
- setViewsList() : $this
- setVotesDown() : $this
- setVotesUp() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$activationKey
protected
string|null
$activationKey
= null
Attributes
- #[Column]
- $name: 'activation_key'
- $type: 'string'
- $length: 64
- $nullable: true
- #[FieldAccess]
- $read: Audience::Internal
- $insert: Audience::All
- $update: Audience::All
$approvedAt
protected
DateTime|null
$approvedAt
= null
Attributes
- #[Column]
- $name: 'approved_at'
- $type: 'datetime'
- $nullable: true
$asset
protected
TImage|null
$asset
= null
Attributes
- #[EntityOf]
- \App\UI\Admin\System\Models\Entities\Asset::class
- #[JoinColumn]
- $name: 'cms_system_images_image_id'
- $referencedColumnName: 'image_id'
- $nullable: true
- $onDelete: 'SET NULL'
- #[ManyToOne]
- $targetEntity: \App\UI\Admin\System\Models\Entities\Asset::class
- $fetch: "LAZY"
$assetRels
protected
Collection<int, MessageAssetRel>
$assetRels
Attributes
- #[CollectionOf]
- \App\UI\Admin\Discussion\Models\Entities\MessageAssetRel::class
- $owned: true
- #[OneToMany]
- $targetEntity: \App\UI\Admin\Discussion\Models\Entities\MessageAssetRel::class
- $mappedBy: 'message'
- $cascade: ["persist", "remove"]
- $orphanRemoval: true
- $fetch: "LAZY"
$assets
protected
array<int, TImage>
$assets
= []
Attributes
- #[Transient]
$banned
protected
bool
$banned
= false
Attributes
- #[Column]
- $name: 'banned'
- $type: 'boolean'
$categories
protected
Collection<int, Category>
$categories
Attributes
- #[CollectionOf]
- \App\UI\Admin\Discussion\Models\Entities\Category::class
- #[JoinTable]
- $name: 'cms_mod_discussion_message_category_relations'
- $joinColumns: [new \Doctrine\ORM\Mapping\JoinColumn(name: 'cms_mod_discussion_messages_message_id', referencedColumnName: 'message_id', onDelete: 'CASCADE')]
- $inverseJoinColumns: [new \Doctrine\ORM\Mapping\JoinColumn(name: 'cms_mod_discussion_categories_category_id', referencedColumnName: 'category_id', onDelete: 'CASCADE')]
- #[ManyToMany]
- $targetEntity: \App\UI\Admin\Discussion\Models\Entities\Category::class
- $fetch: "LAZY"
$commentThread
protected
CommentThread|null
$commentThread
= null
Attributes
- #[EntityOf]
- \App\UI\Admin\Base\Models\Entities\CommentThread::class
- #[Transient]
$commentThreadId
protected
int|null
$commentThreadId
= null
Attributes
- #[FieldAccess]
- $read: \App\Core\Attributes\Hydration\Audience::All
- $insert: \App\Core\Attributes\Hydration\Audience::Privileged
- $update: \App\Core\Attributes\Hydration\Audience::Privileged
- #[Transient]
$confirmedAt
protected
DateTime|null
$confirmedAt
= null
Attributes
- #[Column]
- $name: 'confirmed_at'
- $type: 'datetime'
- $nullable: true
$deactivated
protected
bool
$deactivated
= false
Attributes
- #[Column]
- $name: 'deactivated'
- $type: 'boolean'
$deleted
protected
bool
$deleted
= false
Attributes
- #[Column]
- $name: 'deleted'
- $type: 'boolean'
protected
string
$email
= ''
Attributes
- #[Column]
- $name: 'email'
- $type: 'string'
- $length: 255
- #[PersonalData]
- PersonalDataKind::Email
$externalUrl
protected
string|null
$externalUrl
= null
Attributes
- #[Column]
- $name: 'external_url'
- $type: 'string'
- $length: 255
- $nullable: true
$firstParentId
protected
int|null
$firstParentId
= null
Attributes
- #[Column]
- $name: 'first_parent_id'
- $type: 'integer'
- $nullable: true
- $options: ['unsigned' => true]
- #[FieldAccess]
- $read: Audience::All
- $insert: Audience::Privileged
- $update: Audience::Privileged
$id
protected
int|null
$id
= null
Attributes
- #[Column]
- $name: 'message_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[GeneratedValue]
- #[Id]
$insertDatetime
protected
DateTime
$insertDatetime
= new DateTime()
Attributes
- #[Column]
- $name: 'insert_datetime'
- $type: 'datetime'
$ip
protected
string|null
$ip
= null
Attributes
- #[Column]
- $name: 'ip'
- $type: 'string'
- $length: 45
- $nullable: true
- #[PersonalData]
- PersonalDataKind::Hidden
$level
protected
int
$level
= 1
Attributes
- #[Column]
- $name: 'level'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[FieldAccess]
- $read: Audience::All
- $insert: Audience::Privileged
- $update: Audience::Privileged
$lft
protected
int
$lft
= 0
Attributes
- #[Column]
- $name: 'lft'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[FieldAccess]
- $read: Audience::All
- $insert: Audience::Privileged
- $update: Audience::Privileged
$manageKeyExpires
protected
DateTime|null
$manageKeyExpires
= null
Attributes
- #[Column]
- $name: 'manage_key_expires'
- $type: 'datetime'
- $nullable: true
- #[FieldAccess]
- $read: Audience::None
- $insert: Audience::None
- $update: Audience::None
$manageKeyHash
protected
string|null
$manageKeyHash
= null
Attributes
- #[Column]
- $name: 'manage_key_hash'
- $type: 'string'
- $length: 64
- $nullable: true
- #[FieldAccess]
- $read: Audience::None
- $insert: Audience::None
- $update: Audience::None
$paid
protected
bool
$paid
= true
Attributes
- #[Column]
- $name: 'paid'
- $type: 'boolean'
- $options: ['default' => true]
$parentId
protected
int|null
$parentId
= null
Attributes
- #[Column]
- $name: 'parent_id'
- $type: 'integer'
- $nullable: true
- $options: ['unsigned' => true]
- #[FieldAccess]
- $read: Audience::All
- $insert: Audience::All
- $update: Audience::Privileged
$password
protected
string
$password
= ''
Attributes
- #[Column]
- $name: 'password'
- $type: 'string'
- $length: 80
- #[FieldAccess]
- $read: Audience::Internal
- $insert: Audience::All
- $update: Audience::All
$ratingThread
protected
RatingThread|null
$ratingThread
= null
Attributes
- #[EntityOf]
- \App\UI\Admin\Base\Models\Entities\RatingThread::class
- #[Transient]
$reported
protected
bool
$reported
= false
Attributes
- #[Column]
- $name: 'reported'
- $type: 'boolean'
$rgt
protected
int
$rgt
= 0
Attributes
- #[Column]
- $name: 'rgt'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[FieldAccess]
- $read: Audience::All
- $insert: Audience::Privileged
- $update: Audience::Privileged
$showComments
protected
bool
$showComments
= true
Attributes
- #[Column]
- $name: 'show_comments'
- $type: 'boolean'
$subject
protected
string
$subject
= ''
Attributes
- #[Column]
- $name: 'subject'
- $type: 'string'
- $length: 255
$text
protected
string
$text
= ''
Attributes
- #[Column]
- $name: 'text'
- $type: 'text'
$topedUntil
protected
DateTime|null
$topedUntil
= null
Attributes
- #[Column]
- $name: 'toped_until'
- $type: 'datetime'
- $nullable: true
$userId
protected
int|null
$userId
= null
Attributes
- #[Column]
- $name: 'cms_system_users_user_id'
- $type: 'integer'
- $nullable: true
- $options: ['unsigned' => true]
$username
protected
string|null
$username
= null
Attributes
- #[Column]
- $name: 'username'
- $type: 'string'
- $length: 255
- $nullable: true
$viewsDetail
protected
int
$viewsDetail
= 0
Attributes
- #[Column]
- $name: 'views_detail'
- $type: 'bigint'
$viewsList
protected
int
$viewsList
= 0
Attributes
- #[Column]
- $name: 'views_list'
- $type: 'bigint'
$votesDown
protected
int
$votesDown
= 0
Attributes
- #[Column]
- $name: 'votes_down'
- $type: 'bigint'
- $options: ['unsigned' => true]
$votesUp
protected
int
$votesUp
= 0
Attributes
- #[Column]
- $name: 'votes_up'
- $type: 'bigint'
- $options: ['unsigned' => true]
Methods
__construct()
public
__construct([int|null $id = null ][, int|null $parentId = null ][, int $lft = 0 ][, int $rgt = 0 ][, int $level = 1 ][, int|null $userId = null ][, string|null $username = null ][, string $email = '' ][, string $password = '' ][, string $subject = '' ][, string $text = '' ][, string|null $ip = null ][, DateTime $insertDatetime = new DateTime() ][, DateTime|null $topedUntil = null ][, int $votesUp = 0 ][, int $votesDown = 0 ][, int $viewsList = 0 ][, int $viewsDetail = 0 ][, bool $banned = false ][, bool $deactivated = false ][, bool $deleted = false ][, bool $paid = true ][, DateTime|null $approvedAt = null ][, DateTime|null $confirmedAt = null ][, string|null $activationKey = null ][, string|null $manageKeyHash = null ][, DateTime|null $manageKeyExpires = null ][, int|null $firstParentId = null ][, bool $reported = false ][, bool $showComments = true ][, string|null $externalUrl = null ][, mixed $asset = null ][, Collection $assetRels = new ArrayCollection() ][, Collection $categories = new ArrayCollection() ]) : mixed
Parameters
- $id : int|null = null
- $parentId : int|null = null
- $lft : int = 0
- $rgt : int = 0
- $level : int = 1
- $userId : int|null = null
- $username : string|null = null
- $email : string = ''
- $password : string = ''
- $subject : string = ''
- $text : string = ''
- $ip : string|null = null
- $insertDatetime : DateTime = new DateTime()
- $topedUntil : DateTime|null = null
- $votesUp : int = 0
- $votesDown : int = 0
- $viewsList : int = 0
- $viewsDetail : int = 0
- $banned : bool = false
- $deactivated : bool = false
- $deleted : bool = false
- $paid : bool = true
- $approvedAt : DateTime|null = null
- $confirmedAt : DateTime|null = null
- $activationKey : string|null = null
- $manageKeyHash : string|null = null
- $manageKeyExpires : DateTime|null = null
- $firstParentId : int|null = null
- $reported : bool = false
- $showComments : bool = true
- $externalUrl : string|null = null
- $asset : mixed = null
- $assetRels : Collection = new ArrayCollection()
- $categories : Collection = new ArrayCollection()
addAssetRel()
public
addAssetRel(TAssetRel $assetRel) : $this
Parameters
- $assetRel : TAssetRel
Return values
$thisaddCategory()
public
addCategory(TCategory $category) : $this
Parameters
- $category : TCategory
Return values
$thisassetRelCollectionInit()
public
assetRelCollectionInit() : void
callInitMethods()
Calls `init{TraitName}()` for every used trait that defines such a method.
public
callInitMethods() : void
categoryCollectionInit()
public
categoryCollectionInit() : void
clearCategories()
public
clearCategories() : $this
Return values
$thisgetActivationKey()
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>getApprovedAt()
public
getApprovedAt() : DateTime|null
Return values
DateTime|nullgetAsset()
public
getAsset() : TImage|null
Return values
TImage|nullgetAssetRels()
public
getAssetRels() : Collection<int, TAssetRel>
Return values
Collection<int, TAssetRel>getAssets()
Assets of the non-removed rels, ordered by `order` — whatever the rel's untyped `getAsset()` holds (asset entity, or null).
public
getAssets() : array<int, mixed>
Return values
array<int, mixed>getBanned()
public
getBanned() : bool
Return values
boolgetCategories()
public
getCategories() : Collection<int, TCategory>
Return values
Collection<int, TCategory>getCategoryIds()
public
getCategoryIds() : array<string|int, int>
Return values
array<string|int, int>getCommentsCount()
public
getCommentsCount() : int
Return values
intgetCommentThread()
public
getCommentThread() : TCommentThread|null
Return values
TCommentThread|nullgetCommentThreadId()
public
getCommentThreadId() : int|null
Return values
int|nullgetConfirmedAt()
public
getConfirmedAt() : DateTime|null
Return values
DateTime|nullgetDeactivated()
public
getDeactivated() : bool
Return values
boolgetDeleted()
public
getDeleted() : bool
Return values
boolgetEmail()
public
getEmail() : string
Return values
stringgetExternalUrl()
public
getExternalUrl() : string|null
Return values
string|nullgetFirstCategoryId()
public
getFirstCategoryId() : int|null
Return values
int|nullgetFirstParentId()
public
getFirstParentId() : int|null
Return values
int|nullgetId()
public
getId() : int|null
Return values
int|nullgetInsertDatetime()
public
getInsertDatetime() : DateTime
Return values
DateTimegetIp()
public
getIp() : string|null
Return values
string|nullgetLevel()
public
getLevel() : int
Return values
intgetLft()
public
getLft() : int
Return values
intgetMainAsset()
public
getMainAsset() : Asset|null
Return values
Asset|null —main image (else the first non-removed one)
getManageKeyExpires()
public
getManageKeyExpires() : DateTime|null
Return values
DateTime|nullgetManageKeyHash()
public
getManageKeyHash() : string|null
Return values
string|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|nullgetPaid()
public
getPaid() : bool
Return values
boolgetParentId()
public
getParentId() : int|null
Return values
int|nullgetPassword()
Password hash (or the random secret of a guest post) the key is bound to; empty = no key can be issued.
public
getPassword() : string
Return values
stringgetRatingThread()
public
getRatingThread() : TRatingThread|null
Return values
TRatingThread|nullgetRatingThreadId()
public
getRatingThreadId() : int|null
Return values
int|nullgetReported()
public
getReported() : bool
Return values
boolgetRgt()
public
getRgt() : int
Return values
intgetShowComments()
public
getShowComments() : bool
Return values
boolgetSubject()
public
getSubject() : string
Return values
stringgetText()
public
getText() : string
Return values
stringgetTopedUntil()
public
getTopedUntil() : DateTime|null
Return values
DateTime|nullgetUserId()
public
getUserId() : int|null
Return values
int|nullgetUsername()
public
getUsername() : string|null
Return values
string|nullgetViewsDetail()
public
getViewsDetail() : int
Return values
intgetViewsList()
public
getViewsList() : int
Return values
intgetVotesDown()
public
getVotesDown() : int
Return values
intgetVotesUp()
public
getVotesUp() : int
Return values
intisApproved()
public
isApproved() : bool
Return values
boolisBanned()
public
isBanned() : bool
Return values
boolisConfirmed()
public
isConfirmed() : bool
Return values
boolisDeactivated()
public
isDeactivated() : bool
Return values
boolisDeleted()
public
isDeleted() : bool
Return values
boolisPaid()
public
isPaid() : bool
Return values
boolisPersisted()
public
isPersisted() : bool
Return values
boolisReported()
public
isReported() : bool
Return values
boolisShowComments()
public
isShowComments() : bool
Return values
boolisToped()
Whether topping is in effect now; the same rule as the list order `topedUntil > NOW()` (as `Advert::isToped()`).
public
isToped() : bool
Return values
boolremoveAssetRel()
public
removeAssetRel(TAssetRel $assetRel) : $this
Parameters
- $assetRel : TAssetRel
Return values
$thisremoveCategory()
public
removeCategory(TCategory $category) : $this
Parameters
- $category : TCategory
Return values
$thissetActivationKey()
public
setActivationKey(string|null $activationKey) : $this
Parameters
- $activationKey : string|null
Return values
$thissetApprovedAt()
public
setApprovedAt(DateTime|null $approvedAt) : $this
Parameters
- $approvedAt : DateTime|null
Return values
$thissetAsset()
public
setAsset(TImage|null $asset) : $this
Parameters
- $asset : TImage|null
Return values
$thissetAssetRels()
IMPORTANT: the parameter type must be `Collection`, not `ArrayCollection`; the keep branch of the Api `SaveTrait` can pass a `PersistentCollection` from a managed entity, and a narrower type would throw a `TypeError` and fail the save.
public
setAssetRels(Collection<int, TAssetRel> $assetRels) : $this
Parameters
- $assetRels : Collection<int, TAssetRel>
Return values
$thissetBanned()
public
setBanned(bool $banned) : $this
Parameters
- $banned : bool
Return values
$thissetCategories()
public
setCategories(Collection<int, TCategory>|array<int, TCategory> $categories) : $this
Parameters
- $categories : Collection<int, TCategory>|array<int, TCategory>
Return values
$thissetCommentThread()
public
setCommentThread(TCommentThread|null $commentThread) : $this
Parameters
- $commentThread : TCommentThread|null
Return values
$thissetCommentThreadId()
public
setCommentThreadId(int|null $commentThreadId) : $this
Parameters
- $commentThreadId : int|null
Return values
$thissetConfirmedAt()
public
setConfirmedAt(DateTime|null $confirmedAt) : $this
Parameters
- $confirmedAt : DateTime|null
Return values
$thissetDeactivated()
public
setDeactivated(bool $deactivated) : $this
Parameters
- $deactivated : bool
Return values
$thissetDeleted()
public
setDeleted(bool $deleted) : $this
Parameters
- $deleted : bool
Return values
$thissetEmail()
public
setEmail(string $email) : $this
Parameters
- $email : string
Return values
$thissetExternalUrl()
public
setExternalUrl(string|null $url) : $this
Parameters
- $url : string|null
Return values
$thissetFirstParentId()
public
setFirstParentId(int|null $firstParentId) : $this
Parameters
- $firstParentId : int|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|null $ip) : $this
Parameters
- $ip : string|null
Return values
$thissetLevel()
public
setLevel(int $level) : $this
Parameters
- $level : int
Return values
$thissetLft()
public
setLft(int $lft) : $this
Parameters
- $lft : int
Return values
$thissetManageKeyExpires()
public
setManageKeyExpires(DateTime|null $manageKeyExpires) : $this
Parameters
- $manageKeyExpires : DateTime|null
Return values
$thissetManageKeyHash()
public
setManageKeyHash(string|null $manageKeyHash) : $this
Parameters
- $manageKeyHash : string|null
Return values
$thissetPaid()
public
setPaid(bool $paid) : $this
Parameters
- $paid : bool
Return values
$thissetParentId()
public
setParentId(int|null $parentId) : $this
Parameters
- $parentId : int|null
Return values
$thissetPassword()
public
setPassword(string $password) : $this
Parameters
- $password : string
Return values
$thissetRatingThread()
public
setRatingThread(TRatingThread|null $ratingThread) : $this
Parameters
- $ratingThread : TRatingThread|null
Return values
$thissetReported()
public
setReported(bool $reported) : $this
Parameters
- $reported : bool
Return values
$thissetRgt()
public
setRgt(int $rgt) : $this
Parameters
- $rgt : int
Return values
$thissetShowComments()
public
setShowComments(bool $show) : $this
Parameters
- $show : bool
Return values
$thissetSubject()
public
setSubject(string $subject) : $this
Parameters
- $subject : string
Return values
$thissetText()
public
setText(string $text) : $this
Parameters
- $text : string
Return values
$thissetTopedUntil()
public
setTopedUntil(DateTime|null $dt) : $this
Parameters
- $dt : DateTime|null
Return values
$thissetUserId()
public
setUserId(int|null $userId) : $this
Parameters
- $userId : int|null
Return values
$thissetUsername()
public
setUsername(string|null $username) : $this
Parameters
- $username : string|null
Return values
$thissetViewsDetail()
public
setViewsDetail(int $views) : $this
Parameters
- $views : int
Return values
$thissetViewsList()
public
setViewsList(int $views) : $this
Parameters
- $views : int
Return values
$thissetVotesDown()
public
setVotesDown(int $votes) : $this
Parameters
- $votes : int
Return values
$thissetVotesUp()
public
setVotesUp(int $votes) : $this
Parameters
- $votes : int
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>