CoolCMS API

AdvertFileRel extends AdvertFileRel
in package

Tags
extends
Attributes
#[Entity]
#[Table]
$name: 'cms_mod_comcat_advert_file_rels'
#[TableAlias]
'advertFileRel'

Table of Contents

Properties

$advert  : TAdvert|null
$file  : TFile|null
$order  : int
$removed  : bool

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.
getFile()  : TFile|null
getOrder()  : int
getRemoved()  : bool
isRemoved()  : bool
setAdvert()  : $this
setFile()  : $this
setOrder()  : $this
setRemoved()  : $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: 'fileRels'

$file

protected TFile|null $file = null
Attributes
#[Id]
#[JoinColumn]
$name: 'cms_system_files_file_id'
$referencedColumnName: 'file_id'
$onDelete: 'CASCADE'
#[ManyToOne]
$targetEntity: \App\UI\Api\System\Models\Entities\File::class

$order

protected int $order = 1
Attributes
#[Column]
$name: '`order`'
$type: 'integer'

$removed

protected bool $removed = false
Attributes
#[Column]
$name: 'removed'
$type: 'boolean'

Methods

__construct()

public __construct([mixed $advert = null ][, mixed $file = null ][, int $order = 1 ][, bool $removed = false ]) : mixed
Parameters
$advert : mixed = null
$file : mixed = null
$order : int = 1
$removed : bool = false

callInitMethods()

Calls `init{TraitName}()` for every used trait that defines such a method.

public callInitMethods() : void

getAdvert()

public getAdvert() : TAdvert|null
Return values
TAdvert|null

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>

getFile()

public getFile() : TFile|null
Return values
TFile|null

setAdvert()

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

setFile()

public setFile(TFile|null $file) : $this
Parameters
$file : TFile|null
Return values
$this

setOrder()

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

setRemoved()

public setRemoved(bool $removed) : $this
Parameters
$removed : bool
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