CoolCMS API

RegionText extends RegionText
in package

Tags
extends
Attributes
#[Entity]
#[Table]
$name: 'cms_system_region_texts'
#[TableAlias]
'regionText'

Table of Contents

Properties

$activeTranslation  : bool
$href  : string
$languageId  : int|null
$metaDescription  : string
$metaKeywords  : string
$metaTitle  : string
$name  : string
$namePostcode  : string
$parent  : mixed
$postcode  : string|null
$region  : TRegion|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.
getHref()  : string
getLanguageId()  : int|null
Translation language; null only for a new entity before `setLanguageId()`.
getMetaDescription()  : string
getMetaKeywords()  : string
getMetaTitle()  : string
getName()  : string
getNamePostcode()  : string
getParent()  : object|null
getPostcode()  : string|null
getRegion()  : TRegion|null
isActiveTranslation()  : bool
setActiveTranslation()  : $this
setHref()  : $this
setLanguageId()  : $this
setMetaDescription()  : $this
setMetaKeywords()  : $this
setMetaTitle()  : $this
setName()  : $this
setParent()  : static
setRegion()  : $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'

$href

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

$languageId

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

$metaDescription

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

$metaKeywords

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

$metaTitle

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

$name

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

$namePostcode

protected string $namePostcode = ''
Attributes
#[Column]
$name: 'name_postcode'
$type: 'string'
$length: 276
$insertable: false
$updatable: false

$parent

protected mixed $parent = null
Attributes
#[EntityOf]
\App\UI\Front\System\Models\Entities\Region::class
#[Id]
#[Identity]
#[JoinColumn]
$name: 'cms_system_regions_region_id'
$referencedColumnName: 'region_id'
$onDelete: 'CASCADE'
#[ManyToOne]
$targetEntity: \App\UI\Front\System\Models\Entities\Region::class
$inversedBy: 'translations'

$postcode

protected string|null $postcode = null
Attributes
#[Column]
$name: 'postcode'
$type: 'string'
$length: 20
$nullable: true
$insertable: false
$updatable: false

Methods

__construct()

public __construct([int|null $languageId = null ][, mixed $region = null ][, string $name = '' ][, string|null $postcode = null ][, string $namePostcode = '' ][, string $href = '' ][, string $metaTitle = '' ][, string $metaDescription = '' ][, string $metaKeywords = '' ][, bool $activeTranslation = true ]) : mixed
Parameters
$languageId : int|null = null
$region : mixed = null
$name : string = ''
$postcode : string|null = null
$namePostcode : string = ''
$href : string = ''
$metaTitle : string = ''
$metaDescription : string = ''
$metaKeywords : 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>

getHref()

public getHref() : string
Return values
string

getLanguageId()

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

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

getMetaDescription()

public getMetaDescription() : string
Return values
string

getMetaKeywords()

public getMetaKeywords() : string
Return values
string

getMetaTitle()

public getMetaTitle() : string
Return values
string

getName()

public getName() : string
Return values
string

getNamePostcode()

public getNamePostcode() : string
Return values
string

getPostcode()

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

getRegion()

public getRegion() : TRegion|null
Return values
TRegion|null

setActiveTranslation()

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

setHref()

public setHref(string $href) : $this
Parameters
$href : string
Return values
$this

setLanguageId()

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

setMetaDescription()

public setMetaDescription(string $metaDescription) : $this
Parameters
$metaDescription : string
Return values
$this

setMetaKeywords()

public setMetaKeywords(string $metaKeywords) : $this
Parameters
$metaKeywords : string
Return values
$this

setMetaTitle()

public setMetaTitle(string $metaTitle) : $this
Parameters
$metaTitle : string
Return values
$this

setName()

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

setParent()

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

setRegion()

public setRegion(TRegion|null $region) : $this
Parameters
$region : TRegion|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