CoolCMS API

AdvertReport extends AdvertReport
in package

Attributes
#[Entity]
#[Table]
$name: 'cms_mod_comcat_advert_reports'
#[TableAlias]
'advertReport'

Table of Contents

Properties

$advertId  : int
$id  : int|null
$insertDatetime  : DateTime
$insertIp  : string|null
$solved  : bool
$text  : string|null
$userId  : int|null

Methods

__construct()  : mixed
callInitMethods()  : void
Calls `init{TraitName}()` for every used trait that defines such a method.
getAdvertId()  : int
getAllTraits()  : array<string, string>
Returns all traits the class uses, including those used by parent classes and nested traits.
getId()  : int|null
getInsertDatetime()  : DateTime
getInsertIp()  : string|null
getOwnerUserId()  : int|null
Returns the id of the user who created the record; `null` for an unknown or anonymous owner.
getSolved()  : bool
getText()  : string|null
getUserId()  : int|null
isPersisted()  : bool
isSolved()  : bool
setAdvertId()  : $this
setId()  : $this
setInsertDatetime()  : $this
setInsertIp()  : $this
setSolved()  : $this
setText()  : $this
setUserId()  : $this
getTraitsRecursive()  : array<string, string>
Walks the trait list recursively and collects nested traits too.

Properties

$advertId

protected int $advertId = 0
Attributes
#[Column]
$name: 'cms_mod_comcat_adverts_advert_id'
$type: 'integer'
$options: ['unsigned' => true]

$id

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

$insertDatetime

protected DateTime $insertDatetime = new DateTime()
Attributes
#[Column]
$name: 'insert_datetime'
$type: 'datetime'
#[ExternalReadonly]

$text

protected string|null $text = null
Attributes
#[Column]
$name: 'text'
$type: 'text'
$nullable: true

$userId

protected int|null $userId = null
Attributes
#[Column]
$name: 'cms_system_users_user_id'
$type: 'integer'
$nullable: true
$options: ['unsigned' => true]
#[ExternalReadonly]

Methods

__construct()

public __construct([int|null $id = null ][, int $advertId = 0 ][, int|null $userId = null ][, string|null $insertIp = null ][, string|null $text = null ][, bool $solved = false ][, DateTime $insertDatetime = new DateTime() ]) : mixed
Parameters
$id : int|null = null
$advertId : int = 0
$userId : int|null = null
$insertIp : string|null = null
$text : string|null = null
$solved : bool = false
$insertDatetime : DateTime = new DateTime()

callInitMethods()

Calls `init{TraitName}()` for every used trait that defines such a method.

public callInitMethods() : void

getAdvertId()

public getAdvertId() : int
Return values
int

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>

getInsertDatetime()

public getInsertDatetime() : DateTime
Return values
DateTime

getInsertIp()

public getInsertIp() : string|null
Return values
string|null

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

getSolved()

public getSolved() : bool
Return values
bool

getText()

public getText() : string|null
Return values
string|null

getUserId()

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

setAdvertId()

public setAdvertId(int $advertId) : $this
Parameters
$advertId : int
Return values
$this

setId()

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

setInsertDatetime()

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

setInsertIp()

public setInsertIp(string|null $insertIp) : $this
Parameters
$insertIp : string|null
Return values
$this

setSolved()

public setSolved(bool $solved) : $this
Parameters
$solved : bool
Return values
$this

setText()

public setText(string|null $text) : $this
Parameters
$text : string|null
Return values
$this

setUserId()

public setUserId(int|null $userId) : $this
Parameters
$userId : int|null
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