CoolCMS API

ArticleDiscussionMessage extends ArticleDiscussionMessage
in package

Attributes
#[Entity]
#[Table]
$name: 'cms_mod_blog_article_discussion_messages'
#[TableAlias]
'articleDiscussionMessage'

Table of Contents

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]

$id

protected int|null $id = null
Attributes
#[Column]
$type: 'integer'
$name: 'article_discussion_message_id'
$options: ['unsigned' => true]
#[GeneratedValue]
#[Id]

$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]

$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>

getOwnerUserId()

Returns the id of the user who created the record; `null` for an unknown or anonymous owner.

public getOwnerUserId() : int|null
Return values
int|null

setEmail()

public setEmail(string|null $email) : $this
Parameters
$email : string|null
Return values
$this

setId()

public setId(int|null $id) : $this
Parameters
$id : int|null
Return values
$this

setInsertDatetime()

public setInsertDatetime(DateTime $dt) : $this
Parameters
$dt : DateTime
Return values
$this

setLanguageId()

public setLanguageId(int|null $id) : $this
Parameters
$id : int|null
Return values
$this

setParentId()

public setParentId(int|null $parentId) : $this
Parameters
$parentId : int|null
Return values
$this

setUserName()

public setUserName(string $userName) : $this
Parameters
$userName : string
Return values
$this

getTraitsRecursive()

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>
Return values
array<string, string>
On this page

Search results