CoolCMS API

Localization extends Localization
in package

Tags
extends
Attributes
#[Entity]
#[Table]
$name: 'cms_system_localizations'
#[TableAlias]
'localization'

Table of Contents

Properties

$active  : bool
$currencySymbolPosition  : string|null
$dateFormat  : string
$decimalSeparator  : string|null
$firstDayOfWeek  : int
$id  : int|null
$key  : string
$language  : Language
$locale  : string
$main  : bool
$name  : string
$negativeSymbolPosition  : string|null
$paymentRegionId  : int|null
$precision  : int|null
$regionId  : int|null
$separator  : string|null
$shortDateFormat  : string
$showSuffix  : bool|null
$suffix  : 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.
getCurrencySymbolPosition()  : string|null
getDateFormat()  : string
getDecimalSeparator()  : string|null
getFirstDayOfWeek()  : int
getId()  : int|null
getKey()  : string
getLanguage()  : Language|null
getLanguageId()  : int|null
getLocale()  : string
getName()  : string
getNegativeSymbolPosition()  : string|null
getPaymentRegionId()  : int|null
getPrecision()  : int|null
getRegionId()  : int|null
getSeparator()  : string|null
getShortDateFormat()  : string
getShowSuffix()  : bool|null
getSuffix()  : string|null
isActive()  : bool
isMain()  : bool
isPersisted()  : bool
setActive()  : $this
setCurrencySymbolPosition()  : $this
setDateFormat()  : $this
setDecimalSeparator()  : $this
setFirstDayOfWeek()  : $this
setId()  : $this
setKey()  : $this
setLanguage()  : $this
setLanguageId()  : $this
setLocale()  : $this
setMain()  : $this
setName()  : $this
setNegativeSymbolPosition()  : $this
setPaymentRegionId()  : $this
setPrecision()  : $this
setRegionId()  : $this
setSeparator()  : $this
setShortDateFormat()  : $this
setShowSuffix()  : $this
setSuffix()  : $this
getTraitsRecursive()  : array<string, string>
Walks the trait list recursively and collects nested traits too.

Properties

$active

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

$currencySymbolPosition

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

$dateFormat

protected string $dateFormat = ''
Attributes
#[Column]
$name: 'date_format'
$type: 'string'
$length: 20

$decimalSeparator

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

$firstDayOfWeek

protected int $firstDayOfWeek = 1
Attributes
#[Column]
$name: 'first_day_of_week'
$type: 'smallint'
$options: ['unsigned' => true, 'default' => 1]

$id

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

$key

protected string $key = ''
Attributes
#[Column]
$name: '`key`'
$type: 'string'
$length: 3

$language

protected Language $language = null
Attributes
#[EntityOf]
\App\UI\Admin\System\Models\Entities\Language::class
#[JoinColumn]
$name: 'cms_system_languages_language_id'
$referencedColumnName: 'language_id'
$onDelete: 'SET NULL'
#[ManyToOne]
$targetEntity: \App\UI\Admin\System\Models\Entities\Language::class
$fetch: 'LAZY'

$locale

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

$main

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

$name

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

$negativeSymbolPosition

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

$paymentRegionId

protected int|null $paymentRegionId = null
Attributes
#[Column]
$name: 'cms_system_payment_regions_payment_region_id'
$type: 'integer'
$options: ['unsigned' => true]
$nullable: true

$precision

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

$regionId

protected int|null $regionId = null
Attributes
#[Column]
$name: 'cms_system_regions_region_id'
$type: 'integer'
$options: ['unsigned' => true]
$nullable: true

$separator

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

$shortDateFormat

protected string $shortDateFormat = ''
Attributes
#[Column]
$name: 'short_date_format'
$type: 'string'
$length: 20

$showSuffix

protected bool|null $showSuffix = null
Attributes
#[Column]
$name: 'show_suffix'
$type: 'boolean'
$nullable: true

$suffix

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

Methods

__construct()

public __construct([int|null $id = null ][, mixed $language = null ][, int|null $languageId = null ][, string $name = '' ][, string $key = '' ][, string $locale = '' ][, string $dateFormat = '' ][, string $shortDateFormat = '' ][, int $firstDayOfWeek = 1 ][, bool $active = true ][, bool $main = false ][, int|null $regionId = null ][, int|null $paymentRegionId = null ][, string|null $separator = null ][, string|null $decimalSeparator = null ][, int|null $precision = null ][, string|null $currencySymbolPosition = null ][, string|null $negativeSymbolPosition = null ][, bool|null $showSuffix = null ][, string|null $suffix = null ]) : mixed
Parameters
$id : int|null = null
$language : mixed = null
$languageId : int|null = null
$name : string = ''
$key : string = ''
$locale : string = ''
$dateFormat : string = ''
$shortDateFormat : string = ''
$firstDayOfWeek : int = 1
$active : bool = true
$main : bool = false
$regionId : int|null = null
$paymentRegionId : int|null = null
$separator : string|null = null
$decimalSeparator : string|null = null
$precision : int|null = null
$currencySymbolPosition : string|null = null
$negativeSymbolPosition : string|null = null
$showSuffix : bool|null = null
$suffix : 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>

getCurrencySymbolPosition()

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

getDateFormat()

public getDateFormat() : string
Return values
string

getDecimalSeparator()

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

getFirstDayOfWeek()

public getFirstDayOfWeek() : int
Return values
int

getLanguageId()

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

getLocale()

public getLocale() : string
Return values
string

getName()

public getName() : string
Return values
string

getNegativeSymbolPosition()

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

getPaymentRegionId()

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

getPrecision()

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

getRegionId()

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

getSeparator()

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

getShortDateFormat()

public getShortDateFormat() : string
Return values
string

getShowSuffix()

public getShowSuffix() : bool|null
Return values
bool|null

getSuffix()

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

setActive()

public setActive(bool $active) : $this
Parameters
$active : bool
Return values
$this

setCurrencySymbolPosition()

public setCurrencySymbolPosition(string|null $currencySymbolPosition) : $this
Parameters
$currencySymbolPosition : string|null
Return values
$this

setDateFormat()

public setDateFormat(string $dateFormat) : $this
Parameters
$dateFormat : string
Return values
$this

setDecimalSeparator()

public setDecimalSeparator(string|null $decimalSeparator) : $this
Parameters
$decimalSeparator : string|null
Return values
$this

setFirstDayOfWeek()

public setFirstDayOfWeek(int $firstDayOfWeek) : $this
Parameters
$firstDayOfWeek : int
Return values
$this

setId()

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

setKey()

public setKey(string $key) : $this
Parameters
$key : string
Return values
$this

setLanguage()

public setLanguage(TLanguage|null $language) : $this
Parameters
$language : TLanguage|null
Return values
$this

setLanguageId()

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

setLocale()

public setLocale(string $locale) : $this
Parameters
$locale : string
Return values
$this

setMain()

public setMain(bool $main) : $this
Parameters
$main : bool
Return values
$this

setName()

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

setNegativeSymbolPosition()

public setNegativeSymbolPosition(string|null $negativeSymbolPosition) : $this
Parameters
$negativeSymbolPosition : string|null
Return values
$this

setPaymentRegionId()

public setPaymentRegionId(int|null $paymentRegionId) : $this
Parameters
$paymentRegionId : int|null
Return values
$this

setPrecision()

public setPrecision(int|null $precision) : $this
Parameters
$precision : int|null
Return values
$this

setRegionId()

public setRegionId(int|null $regionId) : $this
Parameters
$regionId : int|null
Return values
$this

setSeparator()

public setSeparator(string|null $separator) : $this
Parameters
$separator : string|null
Return values
$this

setShortDateFormat()

public setShortDateFormat(string $shortDateFormat) : $this
Parameters
$shortDateFormat : string
Return values
$this

setShowSuffix()

public setShowSuffix(bool|null $showSuffix) : $this
Parameters
$showSuffix : bool|null
Return values
$this

setSuffix()

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