AppSetting
extends BaseEntity
in package
AppSetting Entity
Table of Contents
Properties
- $branch_id : int|null
- $created : DateTime|null
- $id : int
- $modified : DateTime|null
- $name : string
- $value : string|null
- $_accessible : array<string, bool>
- Fields that can be mass assigned using newEntity() or patchEntity().
Methods
- getBranchId() : int|null
- Get the branch ID for authorization checks.
- _getRawValue() : mixed
- Get the raw value virtual field.
- _getValue() : mixed
- Get the value virtual field.
- _getValuePreview() : string|null
- Get a preview of the value for display in grids Shows truncated text for long values or indicates complex types
- _setRawValue() : void
- Set the raw value virtual field.
- _setValue() : mixed
- Set the value virtual field.
Properties
$branch_id
public
int|null
$branch_id
Associated branch ID (when applicable)
$created
public
DateTime|null
$created
Creation timestamp
$id
public
int
$id
$modified
public
DateTime|null
$modified
Last modification timestamp
$name
public
string
$name
$value
public
string|null
$value
$_accessible
Fields that can be mass assigned using newEntity() or patchEntity().
protected
array<string, bool>
$_accessible
= ['name' => true, 'value' => true, 'type' => true, 'raw_value' => true, 'required' => true]
Note that when '' is set to true, this allows all unspecified fields to be mass assigned. For security purposes, it is advised to set '' to false (or remove it), and explicitly make individual fields accessible as needed.
Methods
getBranchId()
Get the branch ID for authorization checks.
public
getBranchId() : int|null
Child classes should override for complex branch relationships.
Return values
int|null —The branch ID, or null if no association
_getRawValue()
Get the raw value virtual field.
protected
_getRawValue() : mixed
_getValue()
Get the value virtual field.
protected
_getValue(mixed $value) : mixed
Parameters
- $value : mixed
_getValuePreview()
Get a preview of the value for display in grids Shows truncated text for long values or indicates complex types
protected
_getValuePreview() : string|null
Return values
string|null_setRawValue()
Set the raw value virtual field.
protected
_setRawValue(mixed $value) : void
Parameters
- $value : mixed
_setValue()
Set the value virtual field.
protected
_setValue(mixed $value) : mixed
Parameters
- $value : mixed