CoolCMS API

ParameterText extends ParameterText
in package

Tags
extends
Attributes
#[Entity]
#[Table]
$name: 'cms_mod_comcat_parameter_texts'
#[TableAlias]
'parameterText'

Table of Contents

Properties

$activeTranslation  : bool
$description  : string|null
$displayText  : string|null
$label  : string|null
$label2  : string|null
$languageId  : int|null
$name  : string
$noticeFileType  : string|null
$noticeRequired  : string|null
$noticeSize  : string|null
$parameter  : TParameter|null
$parent  : mixed
$placeholder  : string|null
$placeholder2  : string|null
$searchLabel  : string|null
$searchLabel2  : string|null
$searchPlaceholder  : string|null
$searchPlaceholder2  : string|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.
getDescription()  : string|null
getDisplayText()  : string|null
getLabel()  : string|null
getLabel2()  : string|null
getLanguageId()  : int|null
Translation language; null only for a new entity before `setLanguageId()`.
getName()  : string
getNoticeFileType()  : string|null
getNoticeRequired()  : string|null
getNoticeSize()  : string|null
getParameter()  : TParameter|null
getParent()  : object|null
getPlaceholder()  : string|null
getPlaceholder2()  : string|null
getSearchLabel()  : string|null
getSearchLabel2()  : string|null
getSearchPlaceholder()  : string|null
getSearchPlaceholder2()  : string|null
isActiveTranslation()  : bool
setActiveTranslation()  : $this
setDescription()  : $this
setDisplayText()  : $this
setLabel()  : $this
setLabel2()  : $this
setLanguageId()  : $this
setName()  : $this
setNoticeFileType()  : $this
setNoticeRequired()  : $this
setNoticeSize()  : $this
setParameter()  : $this
setParent()  : static
setPlaceholder()  : $this
setPlaceholder2()  : $this
setSearchLabel()  : $this
setSearchLabel2()  : $this
setSearchPlaceholder()  : $this
setSearchPlaceholder2()  : $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'

$description

protected string|null $description = null
Attributes
#[Column]
$name: 'description'
$type: 'text'
$nullable: true

$displayText

protected string|null $displayText = null
Attributes
#[Column]
$name: 'display_text'
$type: 'string'
$length: 255
$nullable: true

$label

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

$label2

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

$languageId

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

$name

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

$noticeFileType

protected string|null $noticeFileType = null
Attributes
#[Column]
$name: 'notice_file_type'
$type: 'string'
$length: 255
$nullable: true

$noticeRequired

protected string|null $noticeRequired = null
Attributes
#[Column]
$name: 'notice_required'
$type: 'string'
$length: 255
$nullable: true

$noticeSize

protected string|null $noticeSize = null
Attributes
#[Column]
$name: 'notice_size'
$type: 'string'
$length: 255
$nullable: true

$parent

protected mixed $parent = null
Attributes
#[Id]
#[JoinColumn]
$name: 'cms_mod_comcat_parameters_parameter_id'
$referencedColumnName: 'parameter_id'
$onDelete: 'CASCADE'
#[ManyToOne]
$targetEntity: \App\UI\Api\Comcat\Models\Entities\Parameter::class
$inversedBy: 'translations'

$placeholder

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

$placeholder2

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

$searchLabel

protected string|null $searchLabel = null
Attributes
#[Column]
$name: 'search_label'
$type: 'string'
$length: 255
$nullable: true

$searchLabel2

protected string|null $searchLabel2 = null
Attributes
#[Column]
$name: 'search_label2'
$type: 'string'
$length: 255
$nullable: true

$searchPlaceholder

protected string|null $searchPlaceholder = null
Attributes
#[Column]
$name: 'search_placeholder'
$type: 'string'
$length: 255
$nullable: true

$searchPlaceholder2

protected string|null $searchPlaceholder2 = null
Attributes
#[Column]
$name: 'search_placeholder2'
$type: 'string'
$length: 255
$nullable: true

Methods

__construct()

public __construct([int|null $languageId = null ][, mixed $parameter = null ][, string $name = '' ][, string|null $label = null ][, string|null $label2 = null ][, string|null $description = null ][, string|null $noticeRequired = null ][, string|null $noticeFileType = null ][, string|null $noticeSize = null ][, bool $activeTranslation = true ][, string|null $placeholder = null ][, string|null $placeholder2 = null ][, string|null $searchPlaceholder = null ][, string|null $searchPlaceholder2 = null ][, string|null $searchLabel = null ][, string|null $searchLabel2 = null ][, string|null $displayText = null ]) : mixed
Parameters
$languageId : int|null = null
$parameter : mixed = null
$name : string = ''
$label : string|null = null
$label2 : string|null = null
$description : string|null = null
$noticeRequired : string|null = null
$noticeFileType : string|null = null
$noticeSize : string|null = null
$activeTranslation : bool = true
$placeholder : string|null = null
$placeholder2 : string|null = null
$searchPlaceholder : string|null = null
$searchPlaceholder2 : string|null = null
$searchLabel : string|null = null
$searchLabel2 : string|null = null
$displayText : 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>

getDescription()

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

getDisplayText()

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

getLabel()

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

getLabel2()

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

getLanguageId()

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

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

getNoticeFileType()

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

getNoticeRequired()

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

getNoticeSize()

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

getParameter()

public getParameter() : TParameter|null
Return values
TParameter|null

getPlaceholder()

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

getPlaceholder2()

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

getSearchLabel()

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

getSearchLabel2()

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

getSearchPlaceholder()

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

getSearchPlaceholder2()

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

setActiveTranslation()

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

setDescription()

public setDescription(string|null $description) : $this
Parameters
$description : string|null
Return values
$this

setDisplayText()

public setDisplayText(string|null $displayText) : $this
Parameters
$displayText : string|null
Return values
$this

setLabel()

public setLabel(string|null $label) : $this
Parameters
$label : string|null
Return values
$this

setLabel2()

public setLabel2(string|null $label2) : $this
Parameters
$label2 : string|null
Return values
$this

setLanguageId()

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

setName()

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

setNoticeFileType()

public setNoticeFileType(string|null $noticeFileType) : $this
Parameters
$noticeFileType : string|null
Return values
$this

setNoticeRequired()

public setNoticeRequired(string|null $noticeRequired) : $this
Parameters
$noticeRequired : string|null
Return values
$this

setNoticeSize()

public setNoticeSize(string|null $noticeSize) : $this
Parameters
$noticeSize : string|null
Return values
$this

setParameter()

public setParameter(TParameter|null $parameter) : $this
Parameters
$parameter : TParameter|null
Return values
$this

setParent()

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

setPlaceholder()

public setPlaceholder(string|null $placeholder) : $this
Parameters
$placeholder : string|null
Return values
$this

setPlaceholder2()

public setPlaceholder2(string|null $placeholder2) : $this
Parameters
$placeholder2 : string|null
Return values
$this

setSearchLabel()

public setSearchLabel(string|null $searchLabel) : $this
Parameters
$searchLabel : string|null
Return values
$this

setSearchLabel2()

public setSearchLabel2(string|null $searchLabel2) : $this
Parameters
$searchLabel2 : string|null
Return values
$this

setSearchPlaceholder()

public setSearchPlaceholder(string|null $searchPlaceholder) : $this
Parameters
$searchPlaceholder : string|null
Return values
$this

setSearchPlaceholder2()

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