CoolCMS API

IntroText extends IntroText
in package

Tags
extends
Attributes
#[Entity]
#[Table]
$name: 'cms_mod_blog_intro_texts'
#[TableAlias]
'introText'

Table of Contents

Properties

$activeTranslation  : bool
$intro  : TIntro|null
$languageId  : int|null
$link  : string|null
$parent  : mixed
$text  : string|null
$title  : string|null

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.
getIntro()  : TIntro|null
getLanguageId()  : int|null
Translation language; null only for a new entity before `setLanguageId()`.
getLink()  : string|null
getParent()  : object|null
getText()  : string|null
getTitle()  : string|null
isActiveTranslation()  : bool
setActiveTranslation()  : $this
setIntro()  : $this
setLanguageId()  : $this
setLink()  : $this
setParent()  : static
setText()  : $this
setTitle()  : $this
getTraitsRecursive()  : array<string, string>
Walks the trait list recursively and collects nested traits too.

Properties

$activeTranslation

protected bool $activeTranslation = true
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]
#[Identity]
protected string|null $link = null
#[Column]
$name: 'link'
$type: 'text'
$nullable: true

$parent

protected mixed $parent = null
Attributes
#[EntityOf]
\App\UI\Admin\Blog\Models\Entities\Intro::class
#[Id]
#[Identity]
#[JoinColumn]
$name: 'cms_mod_blog_intros_intro_id'
$referencedColumnName: 'intro_id'
$onDelete: 'CASCADE'
#[ManyToOne]
$targetEntity: \App\UI\Admin\Blog\Models\Entities\Intro::class
$inversedBy: 'translations'

$text

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

$title

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

Methods

__construct()

public __construct([mixed $intro = null ][, int|null $languageId = null ][, string|null $title = null ][, string|null $text = null ][, string|null $link = null ][, bool $activeTranslation = true ]) : mixed
Parameters
$intro : mixed = null
$languageId : int|null = null
$title : string|null = null
$text : string|null = null
$link : string|null = null
$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>

getIntro()

public getIntro() : TIntro|null
Return values
TIntro|null

getLanguageId()

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

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

getText()

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

getTitle()

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

setActiveTranslation()

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

setIntro()

public setIntro(TIntro|null $intro) : $this
Parameters
$intro : TIntro|null
Return values
$this

setLanguageId()

public setLanguageId(int $languageId) : $this
Parameters
$languageId : int
Return values
$this
public setLink(string|null $link) : $this
Parameters
$link : string|null
Return values
$this

setParent()

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

setText()

public setText(string|null $text) : $this
Parameters
$text : string|null
Return values
$this

setTitle()

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