Localization
extends Localization
in package
Tags
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\Front\System\Models\Entities\Language::class
- #[JoinColumn]
- $name: 'cms_system_languages_language_id'
- $referencedColumnName: 'language_id'
- $onDelete: 'SET NULL'
- #[ManyToOne]
- $targetEntity: \App\UI\Front\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|nullgetDateFormat()
public
getDateFormat() : string
Return values
stringgetDecimalSeparator()
public
getDecimalSeparator() : string|null
Return values
string|nullgetFirstDayOfWeek()
public
getFirstDayOfWeek() : int
Return values
intgetId()
public
getId() : int|null
Return values
int|nullgetKey()
public
getKey() : string
Return values
stringgetLanguage()
public
getLanguage() : Language|null
Return values
Language|nullgetLanguageId()
public
getLanguageId() : int|null
Return values
int|nullgetLocale()
public
getLocale() : string
Return values
stringgetName()
public
getName() : string
Return values
stringgetNegativeSymbolPosition()
public
getNegativeSymbolPosition() : string|null
Return values
string|nullgetPaymentRegionId()
public
getPaymentRegionId() : int|null
Return values
int|nullgetPrecision()
public
getPrecision() : int|null
Return values
int|nullgetRegionId()
public
getRegionId() : int|null
Return values
int|nullgetSeparator()
public
getSeparator() : string|null
Return values
string|nullgetShortDateFormat()
public
getShortDateFormat() : string
Return values
stringgetShowSuffix()
public
getShowSuffix() : bool|null
Return values
bool|nullgetSuffix()
public
getSuffix() : string|null
Return values
string|nullisActive()
public
isActive() : bool
Return values
boolisMain()
public
isMain() : bool
Return values
boolisPersisted()
public
isPersisted() : bool
Return values
boolsetActive()
public
setActive(bool $active) : $this
Parameters
- $active : bool
Return values
$thissetCurrencySymbolPosition()
public
setCurrencySymbolPosition(string|null $currencySymbolPosition) : $this
Parameters
- $currencySymbolPosition : string|null
Return values
$thissetDateFormat()
public
setDateFormat(string $dateFormat) : $this
Parameters
- $dateFormat : string
Return values
$thissetDecimalSeparator()
public
setDecimalSeparator(string|null $decimalSeparator) : $this
Parameters
- $decimalSeparator : string|null
Return values
$thissetFirstDayOfWeek()
public
setFirstDayOfWeek(int $firstDayOfWeek) : $this
Parameters
- $firstDayOfWeek : int
Return values
$thissetId()
public
setId(int|null $id) : $this
Parameters
- $id : int|null
Return values
$thissetKey()
public
setKey(string $key) : $this
Parameters
- $key : string
Return values
$thissetLanguage()
public
setLanguage(TLanguage|null $language) : $this
Parameters
- $language : TLanguage|null
Return values
$thissetLanguageId()
public
setLanguageId(int|null $languageId) : $this
Parameters
- $languageId : int|null
Return values
$thissetLocale()
public
setLocale(string $locale) : $this
Parameters
- $locale : string
Return values
$thissetMain()
public
setMain(bool $main) : $this
Parameters
- $main : bool
Return values
$thissetName()
public
setName(string $name) : $this
Parameters
- $name : string
Return values
$thissetNegativeSymbolPosition()
public
setNegativeSymbolPosition(string|null $negativeSymbolPosition) : $this
Parameters
- $negativeSymbolPosition : string|null
Return values
$thissetPaymentRegionId()
public
setPaymentRegionId(int|null $paymentRegionId) : $this
Parameters
- $paymentRegionId : int|null
Return values
$thissetPrecision()
public
setPrecision(int|null $precision) : $this
Parameters
- $precision : int|null
Return values
$thissetRegionId()
public
setRegionId(int|null $regionId) : $this
Parameters
- $regionId : int|null
Return values
$thissetSeparator()
public
setSeparator(string|null $separator) : $this
Parameters
- $separator : string|null
Return values
$thissetShortDateFormat()
public
setShortDateFormat(string $shortDateFormat) : $this
Parameters
- $shortDateFormat : string
Return values
$thissetShowSuffix()
public
setShowSuffix(bool|null $showSuffix) : $this
Parameters
- $showSuffix : bool|null
Return values
$thissetSuffix()
public
setSuffix(string|null $suffix) : $this
Parameters
- $suffix : string|null
Return values
$thisgetTraitsRecursive()
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>