CoolCMS API

PollVote extends BaseEntity
in package
uses CompositeIdTrait

AbstractYes
Attributes
#[MappedSuperclass]
#[TableAlias]
$alias: 'pollVote'

Table of Contents

Properties

$insertDatetime  : DateTime
$ip  : string
$pollAnswerId  : int|null
$pollId  : int|null

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.
getId()  : array<string, mixed>|null
getInsertDatetime()  : DateTime
getIp()  : string
getPollAnswerId()  : int|null
getPollId()  : int|null
isPersisted()  : bool
setInsertDatetime()  : $this
setIp()  : $this
setPollAnswerId()  : $this
setPollId()  : $this
getTraitsRecursive()  : array<string, string>
Walks the trait list recursively and collects nested traits too.

Properties

$insertDatetime

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

$pollAnswerId

protected int|null $pollAnswerId = null
Attributes
#[Column]
$name: 'cms_mod_base_poll_answers_poll_answer_id'
$type: 'integer'
$options: ['unsigned' => true]

$pollId

protected int|null $pollId = null
Attributes
#[Column]
$name: 'cms_mod_base_polls_poll_id'
$type: 'integer'
$options: ['unsigned' => true]
#[Id]
#[Identity]

Methods

__construct()

public __construct([int|null $pollId = null ][, string $ip = "" ][, int|null $pollAnswerId = null ][, DateTime $insertDatetime = new DateTime() ]) : mixed
Parameters
$pollId : int|null = null
$ip : string = ""
$pollAnswerId : int|null = null
$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>

getId()

public getId() : array<string, mixed>|null
Return values
array<string, mixed>|null

getInsertDatetime()

public getInsertDatetime() : DateTime
Return values
DateTime

getIp()

public getIp() : string
Return values
string

getPollAnswerId()

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

getPollId()

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

setInsertDatetime()

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

setIp()

public setIp(string $ip) : $this
Parameters
$ip : string
Return values
$this

setPollAnswerId()

public setPollAnswerId(int $pollAnswerId) : $this
Parameters
$pollAnswerId : int
Return values
$this

setPollId()

public setPollId(int $pollId) : $this
Parameters
$pollId : int
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