CoolCMS API

ProductSetLinkText extends ProductSetLinkText
in package

Tags
extends
Attributes
#[Entity]
#[Table]
$name: 'cms_mod_eshop_product_set_link_texts'
#[TableAlias]
'productSetLinkText'

Table of Contents

Properties

$activeTranslation  : bool
$languageId  : int|null
$name  : string|null
$parent  : ProductSetLink|null
$value  : string

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.
getLanguageId()  : int|null
Translation language; null only for a new entity before `setLanguageId()`.
getName()  : string|null
getParent()  : object|null
getValue()  : string
isActiveTranslation()  : bool
setActiveTranslation()  : $this
setLanguageId()  : $this
setName()  : $this
setParent()  : static
setValue()  : $this
getTraitsRecursive()  : array<string, string>
Walks the trait list recursively and collects nested traits too.

Properties

$activeTranslation

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

$languageId

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

$name

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

$parent

protected ProductSetLink|null $parent = null
Attributes
#[EntityOf]
\App\UI\Front\Eshop\Models\Entities\ProductSetLink::class
#[Id]
#[Identity]
#[JoinColumn]
$name: 'cms_mod_eshop_product_set_links_product_set_link_id'
$referencedColumnName: 'product_set_link_id'
$onDelete: 'CASCADE'
#[ManyToOne]
$targetEntity: \App\UI\Front\Eshop\Models\Entities\ProductSetLink::class
$inversedBy: 'translations'

$value

protected string $value = ''
Attributes
#[Column]
$name: 'value'
$type: 'string'
$length: 255

Methods

__construct()

public __construct([int|null $languageId = null ][, string|null $name = null ][, string $value = '' ][, bool $activeTranslation = false ]) : mixed
Parameters
$languageId : int|null = null
$name : string|null = null
$value : string = ''
$activeTranslation : bool = false

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>

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

setLanguageId()

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

setName()

public setName(string|null $name) : $this
Parameters
$name : string|null
Return values
$this

setParent()

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

setValue()

public setValue(string $value) : $this
Parameters
$value : string
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