CoolCMS API

ParameterRuleTarget extends ParameterRuleTarget
in package

Tags
extends
Attributes
#[Entity]
#[Table]
$name: 'cms_mod_bazaar_parameter_rule_targets'
#[TableAlias]
'parameterRuleTarget'

Table of Contents

Properties

$id  : int|null
$optionId  : int|null
$parameterGroupId  : int|null
$parameterId  : int|null
$rule  : TRule|null
$ruleId  : int|null
$option  : Parameter|null
$parameter  : Parameter|null
$parameterGroup  : ParameterGroup|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()  : int|null
getOption()  : Parameter|null
getOptionId()  : int|null
getParameter()  : Parameter|null
getParameterGroup()  : ParameterGroup|null
getParameterGroupId()  : int|null
getParameterId()  : int|null
getRule()  : TRule|null
getRuleId()  : int|null
isPersisted()  : bool
setId()  : $this
setOption()  : self
setOptionId()  : $this
setParameter()  : self
setParameterGroup()  : self
setParameterGroupId()  : $this
setParameterId()  : $this
setRule()  : $this
setRuleId()  : $this
getTraitsRecursive()  : array<string, string>
Walks the trait list recursively and collects nested traits too.

Properties

$id

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

$optionId

protected int|null $optionId = null
Attributes
#[Column]
$name: 'option_id'
$type: 'integer'
$nullable: true
$insertable: false
$updatable: false
$options: ['unsigned' => true]

$parameterGroupId

protected int|null $parameterGroupId = null
Attributes
#[Column]
$name: 'cms_mod_bazaar_parameter_groups_parameter_group_id'
$type: 'integer'
$nullable: true
$insertable: false
$updatable: false
$options: ['unsigned' => true]

$parameterId

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

$rule

protected TRule|null $rule = null
Attributes
#[EntityOf]
\App\UI\Front\Bazaar\Models\Entities\ParameterRule::class
#[JoinColumn]
$name: 'cms_mod_bazaar_parameter_rules_parameter_rule_id'
$referencedColumnName: 'parameter_rule_id'
$onDelete: 'CASCADE'
#[ManyToOne]
$targetEntity: \App\UI\Front\Bazaar\Models\Entities\ParameterRule::class
$inversedBy: 'targetsCollection'
#[ParentRef]

$ruleId

protected int|null $ruleId = null
Attributes
#[Column]
$name: 'cms_mod_bazaar_parameter_rules_parameter_rule_id'
$type: 'bigint'
$insertable: false
$updatable: false
$options: ['unsigned' => true]

$option

private Parameter|null $option = null
Attributes
#[EntityOf]
\App\UI\Front\Bazaar\Models\Entities\Parameter::class
#[JoinColumn]
$name: 'option_id'
$referencedColumnName: 'parameter_id'
$onDelete: 'CASCADE'
#[ManyToOne]
$targetEntity: \App\UI\Front\Bazaar\Models\Entities\Parameter::class

$parameter

private Parameter|null $parameter = null
Attributes
#[EntityOf]
\App\UI\Front\Bazaar\Models\Entities\Parameter::class
#[JoinColumn]
$name: 'cms_mod_bazaar_parameters_parameter_id'
$referencedColumnName: 'parameter_id'
$onDelete: 'CASCADE'
#[ManyToOne]
$targetEntity: \App\UI\Front\Bazaar\Models\Entities\Parameter::class

$parameterGroup

private ParameterGroup|null $parameterGroup = null
Attributes
#[EntityOf]
\App\UI\Front\Bazaar\Models\Entities\ParameterGroup::class
#[JoinColumn]
$name: 'cms_mod_bazaar_parameter_groups_parameter_group_id'
$referencedColumnName: 'parameter_group_id'
$onDelete: 'CASCADE'
#[ManyToOne]
$targetEntity: \App\UI\Front\Bazaar\Models\Entities\ParameterGroup::class

Methods

__construct()

public __construct([int|null $id = null ][, int|null $ruleId = null ][, int|null $parameterId = null ][, int|null $optionId = null ][, int|null $parameterGroupId = null ][, mixed $rule = null ]) : mixed
Parameters
$id : int|null = null
$ruleId : int|null = null
$parameterId : int|null = null
$optionId : int|null = null
$parameterGroupId : int|null = null
$rule : mixed = 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>

getParameterGroupId()

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

setId()

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

setOptionId()

public setOptionId(int|null $optionId) : $this
Parameters
$optionId : int|null
Return values
$this

setParameterGroupId()

public setParameterGroupId(int|null $parameterGroupId) : $this
Parameters
$parameterGroupId : int|null
Return values
$this

setParameterId()

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

setRule()

public setRule(TRule|null $rule) : $this
Parameters
$rule : TRule|null
Return values
$this

setRuleId()

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