CoolCMS API

AdvertParameterRel extends AdvertParameterRel
in package

Tags
extends
Attributes
#[Entity]
#[Table]
$name: 'cms_mod_comcat_advert_parameter_rel'
#[TableAlias]
'advertParameterRel'

Table of Contents

Properties

$advert  : TAdvert|null
$parameter  : TParameter|null
$parameterId  : int|null
$value  : string|null
$value2  : string|null

Methods

__construct()  : mixed
callInitMethods()  : void
Calls `init{TraitName}()` for every used trait that defines such a method.
getAdvert()  : TAdvert|null
getAllTraits()  : array<string, string>
Returns all traits the class uses, including those used by parent classes and nested traits.
getParameter()  : TParameter|null
getParameterId()  : int|null
getValue()  : string|null
getValue2()  : string|null
setAdvert()  : $this
setParameter()  : $this
setParameterId()  : $this
setValue()  : $this
setValue2()  : $this
getTraitsRecursive()  : array<string, string>
Walks the trait list recursively and collects nested traits too.

Properties

$advert

protected TAdvert|null $advert = null
Attributes
#[Id]
#[JoinColumn]
$name: 'cms_mod_comcat_adverts_advert_id'
$referencedColumnName: 'advert_id'
$onDelete: 'CASCADE'
#[ManyToOne]
$targetEntity: \App\UI\Api\Comcat\Models\Entities\Advert::class
$inversedBy: 'parameterRels'
$fetch: 'LAZY'

$parameter

protected TParameter|null $parameter = null
Attributes
#[Id]
#[JoinColumn]
$name: 'cms_mod_comcat_parameters_parameter_id'
$referencedColumnName: 'parameter_id'
$onDelete: 'CASCADE'
#[ManyToOne]
$targetEntity: \App\UI\Api\Comcat\Models\Entities\Parameter::class

$parameterId

protected int|null $parameterId = null
Attributes
#[Column]
$name: 'cms_mod_comcat_parameters_parameter_id'
$type: 'integer'
$insertable: false
$updatable: false
$nullable: true

$value

protected string|null $value = null
Attributes
#[Column]
$name: 'value'
$type: 'text'
$length: 16777215
$nullable: true
#[PersonalData]
PersonalDataKind::Email
$detect: true

$value2

protected string|null $value2 = null
Attributes
#[Column]
$name: 'value2'
$type: 'text'
$nullable: true
#[PersonalData]
PersonalDataKind::Email
$detect: true

Methods

__construct()

public __construct([mixed $advert = null ][, mixed $parameter = null ][, string|null $value = null ][, string|null $value2 = null ][, int|null $parameterId = null ]) : mixed
Parameters
$advert : mixed = null
$parameter : mixed = null
$value : string|null = null
$value2 : string|null = null
$parameterId : int|null = null

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>

getParameter()

public getParameter() : TParameter|null
Return values
TParameter|null

setAdvert()

public setAdvert(TAdvert|null $advert) : $this
Parameters
$advert : TAdvert|null
Return values
$this

setParameter()

public setParameter(TParameter|null $parameter) : $this
Parameters
$parameter : TParameter|null
Return values
$this

setParameterId()

public setParameterId(int|null $parameterId) : $this
Parameters
$parameterId : int|null
Return values
$this

setValue()

public setValue(string|null $value) : $this
Parameters
$value : string|null
Return values
$this

setValue2()

public setValue2(string|null $value2) : $this
Parameters
$value2 : string|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