CoolCMS API

MessageAssetRel extends MessageAssetRel
in package

Tags
extends
Attributes
#[Entity]
#[Table]
$name: 'cms_mod_discussion_message_image_rel'
#[TableAlias]
'messageImageRel'

Table of Contents

Properties

$asset  : TImage|null
$main  : bool
$message  : TMessage|null
$order  : int
$removed  : bool

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.
getAsset()  : TImage|null
getMain()  : bool
getMessage()  : TMessage|null
getOrder()  : int
getRemoved()  : bool
isMain()  : bool
isRemoved()  : bool
setAsset()  : $this
setMain()  : $this
setMessage()  : $this
setOrder()  : $this
setRemoved()  : $this
getTraitsRecursive()  : array<string, string>
Walks the trait list recursively and collects nested traits too.

Properties

$asset

protected TImage|null $asset = null
Attributes
#[Id]
#[JoinColumn]
$name: 'cms_system_images_image_id'
$referencedColumnName: 'image_id'
$onDelete: 'CASCADE'
#[ManyToOne]
$targetEntity: \App\UI\Api\System\Models\Entities\Asset::class

$main

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

$message

protected TMessage|null $message = null
Attributes
#[Id]
#[JoinColumn]
$name: 'cms_mod_discussion_messages_message_id'
$referencedColumnName: 'message_id'
$onDelete: 'CASCADE'
#[ManyToOne]
$targetEntity: \App\UI\Api\Discussion\Models\Entities\Message::class
$inversedBy: 'assetRels'

$order

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

$removed

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

Methods

__construct()

public __construct([mixed $message = null ][, mixed $asset = null ][, bool $main = false ][, bool $removed = false ][, int $order = 0 ]) : mixed
Parameters
$message : mixed = null
$asset : mixed = null
$main : bool = false
$removed : bool = false
$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>

getAsset()

public getAsset() : TImage|null
Return values
TImage|null

getMessage()

public getMessage() : TMessage|null
Return values
TMessage|null

setAsset()

public setAsset(TImage|null $asset) : $this
Parameters
$asset : TImage|null
Return values
$this

setMain()

public setMain(bool $main) : $this
Parameters
$main : bool
Return values
$this

setMessage()

public setMessage(TMessage|null $message) : $this
Parameters
$message : TMessage|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