ShipperRegionText
extends ShipperRegionText
in package
Tags
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_mod_eshop_shipper_region_texts'
- #[TableAlias]
- 'shipperRegionText'
Table of Contents
Properties
- $activeTranslation : bool
- $languageId : int|null
- $name : string
- $parent : ShipperRegion|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.
- getLanguageId() : int|null
- Translation language; null only for a new entity before `setLanguageId()`.
- getName() : string
- getParent() : object|null
- isActiveTranslation() : bool
- setActiveTranslation() : $this
- setLanguageId() : $this
- setName() : $this
- setParent() : static
- 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]
$name
protected
string
$name
= ''
Attributes
- #[Column]
- $name: 'name'
- $type: 'string'
- $length: 255
$parent
protected
ShipperRegion|null
$parent
= null
Attributes
- #[EntityOf]
- \App\UI\Admin\Eshop\Models\Entities\ShipperRegion::class
- #[Id]
- #[Identity]
- #[JoinColumn]
- $name: 'cms_mod_eshop_shipper_regions_shipper_region_id'
- $referencedColumnName: 'shipper_region_id'
- $onDelete: 'CASCADE'
- #[ManyToOne]
- $targetEntity: \App\UI\Admin\Eshop\Models\Entities\ShipperRegion::class
- $inversedBy: 'translations'
Methods
__construct()
public
__construct([int|null $languageId = null ][, string $name = '' ][, bool $activeTranslation = true ]) : mixed
Parameters
- $languageId : int|null = null
- $name : string = ''
- $activeTranslation : bool = true
callInitMethods()
Calls `init{TraitName}()` for every used trait that defines such a method.
public
callInitMethods() : void
getActiveTranslation()
public
getActiveTranslation() : bool
Return values
boolgetAllTraits()
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|nullgetName()
public
getName() : string
Return values
stringgetParent()
public
getParent() : object|null
Return values
object|nullisActiveTranslation()
public
isActiveTranslation() : bool
Return values
boolsetActiveTranslation()
public
setActiveTranslation(bool $activeTranslation) : $this
Parameters
- $activeTranslation : bool
Return values
$thissetLanguageId()
public
setLanguageId(int $languageId) : $this
Parameters
- $languageId : int
Return values
$thissetName()
public
setName(string $name) : $this
Parameters
- $name : string
Return values
$thissetParent()
public
setParent(object|null $parent) : static
Parameters
- $parent : object|null
Return values
staticgetTraitsRecursive()
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>