PollVote
extends PollVote
in package
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_mod_base_poll_votes'
- #[TableAlias]
- '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'
$ip
protected
string
$ip
= ""
Attributes
- #[Column]
- $name: 'ip'
- $type: 'string'
- $length: 45
- #[Id]
- #[Identity]
- #[PersonalData]
- PersonalDataKind::Hidden
$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>|nullgetInsertDatetime()
public
getInsertDatetime() : DateTime
Return values
DateTimegetIp()
public
getIp() : string
Return values
stringgetPollAnswerId()
public
getPollAnswerId() : int|null
Return values
int|nullgetPollId()
public
getPollId() : int|null
Return values
int|nullisPersisted()
public
isPersisted() : bool
Return values
boolsetInsertDatetime()
public
setInsertDatetime(DateTime $insertDatetime) : $this
Parameters
- $insertDatetime : DateTime
Return values
$thissetIp()
public
setIp(string $ip) : $this
Parameters
- $ip : string
Return values
$thissetPollAnswerId()
public
setPollAnswerId(int $pollAnswerId) : $this
Parameters
- $pollAnswerId : int
Return values
$thissetPollId()
public
setPollId(int $pollId) : $this
Parameters
- $pollId : 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>