CoolCMS API

CarouselItemText extends CarouselItemText
in package

Tags
extends
Attributes
#[Entity]
#[Table]
$name: 'cms_mod_blog_carousel_item_texts'
#[TableAlias]
'carouselItemText'

Table of Contents

Properties

$activeTranslation  : bool
$carouselItem  : TCarouselItem|null
$code  : string
$languageId  : int|null
$parent  : mixed

Methods

__construct()  : mixed
callInitMethods()  : void
Calls `init{TraitName}()` for every used trait that defines such a method.
getActiveTranslation()  : bool
getAllTraits()  : array<string, string>
Returns all traits the class uses, including those used by parent classes and nested traits.
getCarouselItem()  : TCarouselItem|null
getCode()  : string
getLanguageId()  : int|null
Translation language; null only for a new entity before `setLanguageId()`.
getParent()  : object|null
isActiveTranslation()  : bool
setActiveTranslation()  : $this
setCarouselItem()  : $this
setCode()  : $this
setLanguageId()  : $this
setParent()  : static
getTraitsRecursive()  : array<string, string>
Walks the trait list recursively and collects nested traits too.

Properties

$activeTranslation

protected bool $activeTranslation = true
Attributes
#[Column]
$type: 'boolean'
$name: 'active_translation'

$code

protected string $code = ''
Attributes
#[Column]
$type: 'text'
$name: 'code'

$languageId

protected int|null $languageId = null
Attributes
#[Column]
$type: 'integer'
$name: 'cms_system_languages_language_id'
$options: ['unsigned' => true]
#[Id]
#[Identity]

$parent

protected mixed $parent = null
Attributes
#[EntityOf]
\App\UI\Front\Blog\Models\Entities\CarouselItem::class
#[Id]
#[Identity]
#[JoinColumn]
$name: 'cms_mod_blog_carousel_items_carousel_item_id'
$referencedColumnName: 'carousel_item_id'
$onDelete: 'CASCADE'
#[ManyToOne]
$targetEntity: \App\UI\Front\Blog\Models\Entities\CarouselItem::class
$inversedBy: 'translations'

Methods

__construct()

public __construct([int|null $languageId = null ][, mixed $carouselItem = null ][, string $code = '' ][, bool $activeTranslation = true ]) : mixed
Parameters
$languageId : int|null = null
$carouselItem : mixed = null
$code : string = ''
$activeTranslation : bool = true

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>

getCarouselItem()

public getCarouselItem() : TCarouselItem|null
Return values
TCarouselItem|null

getLanguageId()

Translation language; null only for a new entity before `setLanguageId()`.

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

setActiveTranslation()

public setActiveTranslation(bool $activeTranslation) : $this
Parameters
$activeTranslation : bool
Return values
$this

setCarouselItem()

public setCarouselItem(TCarouselItem|null $carouselItem) : $this
Parameters
$carouselItem : TCarouselItem|null
Return values
$this

setCode()

public setCode(string $code) : $this
Parameters
$code : string
Return values
$this

setLanguageId()

public setLanguageId(int $languageId) : $this
Parameters
$languageId : int
Return values
$this

setParent()

public setParent(object|null $parent) : static
Parameters
$parent : object|null
Return values
static

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