AdvertParameterRel
extends AdvertParameterRel
in package
Targets an advert at pages by a parameter and its range (`name` + `from`/`to`).
Tags
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_mod_base_advert_parameter_relations'
- #[TableAlias]
- 'advertParameterRel'
Table of Contents
Properties
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.
- getFrom() : string|null
- getId() : int|null
- getName() : string
- getTo() : string|null
- isPersisted() : bool
- setAdvert() : $this
- setFrom() : $this
- setId() : $this
- setName() : $this
- setTo() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$advert
protected
TAdvert|null
$advert
= null
Attributes
- #[JoinColumn]
- $name: 'cms_mod_base_adverts_advert_id'
- $referencedColumnName: 'advert_id'
- $onDelete: 'CASCADE'
- #[ManyToOne]
- $targetEntity: \App\UI\Api\Base\Models\Entities\Advert::class
- $inversedBy: 'parameters'
$from
protected
string|null
$from
= null
Attributes
- #[Column]
- $name: '`from`'
- $type: 'string'
- $length: 255
- $nullable: true
$id
protected
int|null
$id
= null
Attributes
- #[Column]
- $name: 'id'
- $type: 'bigint'
- $options: ['unsigned' => true]
- #[GeneratedValue]
- #[Id]
$name
protected
string
$name
= ''
Attributes
- #[Column]
- $name: 'name'
- $type: 'string'
- $length: 255
$to
protected
string|null
$to
= null
Attributes
- #[Column]
- $name: '`to`'
- $type: 'string'
- $length: 255
- $nullable: true
Methods
__construct()
public
__construct([int|null $id = null ][, mixed $advert = null ][, string $name = '' ][, string|null $from = null ][, string|null $to = null ]) : mixed
Parameters
- $id : int|null = null
- $advert : mixed = null
- $name : string = ''
- $from : string|null = null
- $to : string|null = null
callInitMethods()
Calls `init{TraitName}()` for every used trait that defines such a method.
public
callInitMethods() : void
getAdvert()
public
getAdvert() : TAdvert|null
Return values
TAdvert|nullgetAllTraits()
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>getFrom()
public
getFrom() : string|null
Return values
string|nullgetId()
public
getId() : int|null
Return values
int|nullgetName()
public
getName() : string
Return values
stringgetTo()
public
getTo() : string|null
Return values
string|nullisPersisted()
public
isPersisted() : bool
Return values
boolsetAdvert()
public
setAdvert(TAdvert|null $advert) : $this
Parameters
- $advert : TAdvert|null
Return values
$thissetFrom()
public
setFrom(string|null $from) : $this
Parameters
- $from : string|null
Return values
$thissetId()
public
setId(int|null $id) : $this
Parameters
- $id : int|null
Return values
$thissetName()
public
setName(string $name) : $this
Parameters
- $name : string
Return values
$thissetTo()
public
setTo(string|null $to) : $this
Parameters
- $to : string|null
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>