CoolCMS API

ComponentBlock extends ComponentBlock
in package

Attributes
#[Entity]
#[Table]
$name: 'cms_system_component_blocks'
#[TableAlias]
'componentBlock'

Table of Contents

Properties

$id  : int|null
$name  : string|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
getName()  : string|null
isPersisted()  : bool
setId()  : $this
setName()  : $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: 'block_id'
$type: 'integer'
#[GeneratedValue]
#[Id]

$name

protected string|null $name = null
Attributes
#[Column]
$name: 'name'
$type: 'string'
$length: 80
$nullable: true

Methods

__construct()

public __construct([int|null $id = null ][, string|null $name = null ]) : mixed
Parameters
$id : int|null = null
$name : string|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>

getName()

public getName() : string|null
Return values
string|null

setId()

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

setName()

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