CoolCMS API

PollPlaceRel extends PollPlaceRel
in package

Api variant of the poll to poll place link (join entity with an `order` position).

Tags
extends
Attributes
#[Entity]
#[Table]
$name: 'cms_mod_base_poll_place_relations'
#[TableAlias]
'pollPlaceRel'

Table of Contents

Properties

$order  : int
$poll  : TPoll|null
$pollPlace  : TPollPlace|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.
getOrder()  : int
getPoll()  : TPoll|null
getPollPlace()  : TPollPlace|null
setOrder()  : $this
setPoll()  : $this
setPollPlace()  : $this
getTraitsRecursive()  : array<string, string>
Walks the trait list recursively and collects nested traits too.

Properties

$order

protected int $order = 0
Attributes
#[Column]
$name: '`order`'
$type: 'integer'
$options: ['unsigned' => true, 'default' => 0]

$poll

protected TPoll|null $poll = null
Attributes
#[Id]
#[JoinColumn]
$name: 'cms_mod_base_polls_poll_id'
$referencedColumnName: 'poll_id'
$onDelete: 'CASCADE'
#[ManyToOne]
$targetEntity: \App\UI\Api\Base\Models\Entities\Poll::class
$inversedBy: 'placeRels'

$pollPlace

protected TPollPlace|null $pollPlace = null
Attributes
#[Id]
#[JoinColumn]
$name: 'cms_mod_base_poll_places_poll_place_id'
$referencedColumnName: 'poll_place_id'
$onDelete: 'CASCADE'
#[ManyToOne]
$targetEntity: \App\UI\Api\Base\Models\Entities\PollPlace::class
$inversedBy: 'pollRels'

Methods

__construct()

public __construct([mixed $poll = null ][, mixed $pollPlace = null ][, int $order = 0 ]) : mixed
Parameters
$poll : mixed = null
$pollPlace : mixed = null
$order : int = 0

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>

getPoll()

public getPoll() : TPoll|null
Return values
TPoll|null

getPollPlace()

public getPollPlace() : TPollPlace|null
Return values
TPollPlace|null

setOrder()

public setOrder(int $order) : $this
Parameters
$order : int
Return values
$this

setPoll()

public setPoll(TPoll|null $poll) : $this
Parameters
$poll : TPoll|null
Return values
$this

setPollPlace()

public setPollPlace(TPollPlace|null $pollPlace) : $this
Parameters
$pollPlace : TPollPlace|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