AssetText
extends AssetText
in package
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_system_image_texts'
- #[TableAlias]
- 'assetText'
Table of Contents
Properties
- $activeTranslation : bool
- $description : string|null
- $languageId : int
- $name : string|null
- $parent : mixed
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.
- getDescription() : string|null
- getLanguageId() : int|null
- Translation language; null only for a new entity before `setLanguageId()`.
- getName() : string|null
- getParent() : object|null
- isActiveTranslation() : bool
- setActiveTranslation() : $this
- setDescription() : $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'
- $options: ['default' => true]
$description
protected
string|null
$description
= ''
Attributes
- #[Column]
- $name: 'description'
- $type: 'text'
- $nullable: true
$languageId
protected
int
$languageId
= 0
Attributes
- #[Column]
- $name: 'cms_system_languages_language_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[Id]
- #[Identity]
$name
protected
string|null
$name
= ''
Attributes
- #[Column]
- $name: 'name'
- $type: 'string'
- $length: 255
- $nullable: true
$parent
protected
mixed
$parent
= null
Attributes
- #[Id]
- #[JoinColumn]
- $name: "cms_system_images_image_id"
- $referencedColumnName: "image_id"
- #[ManyToOne]
- $targetEntity: \App\UI\Api\System\Models\Entities\Asset::class
- $inversedBy: "translations"
Methods
__construct()
public
__construct([int $languageId = 0 ][, string|null $name = '' ][, string|null $description = '' ][, bool $activeTranslation = true ]) : mixed
Parameters
- $languageId : int = 0
- $name : string|null = ''
- $description : string|null = ''
- $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>getDescription()
public
getDescription() : string|null
Return values
string|nullgetLanguageId()
Translation language; null only for a new entity before `setLanguageId()`.
public
getLanguageId() : int|null
Return values
int|nullgetName()
public
getName() : string|null
Return values
string|nullgetParent()
public
getParent() : object|null
Return values
object|nullisActiveTranslation()
public
isActiveTranslation() : bool
Return values
boolsetActiveTranslation()
public
setActiveTranslation(bool $activeTranslation) : $this
Parameters
- $activeTranslation : bool
Return values
$thissetDescription()
public
setDescription(string|null $description) : $this
Parameters
- $description : string|null
Return values
$thissetLanguageId()
public
setLanguageId(int $languageId) : $this
Parameters
- $languageId : int
Return values
$thissetName()
public
setName(string|null $name) : $this
Parameters
- $name : string|null
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>