MetaFox

PointSetting extends Model
in package
implements Entity Uses HasEntity, HasFactory

Class PointSetting.

Tags
mixin

Builder

Table of Contents

Interfaces

Entity
Interface Entity.

Constants

ENTITY_TYPE  = 'activitypoint_setting'
POINT_SETTING_ACTIONS  = ['create']

Properties

$action  : string
$created_at  : string
$description  : string
$description_phrase  : string
$disabledFields  : array<string|int, mixed>
$extra  : array<string|int, mixed>|null
$id  : int
$is_active  : bool
$max_earned  : int
$module_id  : string
$name  : string
$package_id  : string
$period  : int
$points  : int
$role  : Role|null
$updated_at  : string
$appends  : array<string|int, string>
$casts  : array<string|int, string>
$fillable  : array<string|int, string>
$table  : mixed

Methods

entityId()  : int
entityType()  : string
factory()  : PointSettingFactory
getDescriptionAttribute()  : string
getDisabledFieldsAttribute()  : array<string|int, string>
moduleName()  : string
role()  : BelongsTo
transactions()  : HasMany
newFactory()  : PointSettingFactory

Constants

ENTITY_TYPE

public mixed ENTITY_TYPE = 'activitypoint_setting'

POINT_SETTING_ACTIONS

public mixed POINT_SETTING_ACTIONS = ['create']

Properties

$disabledFields

public array<string|int, mixed> $disabledFields

$appends

protected array<string|int, string> $appends = ['description']

$casts

protected array<string|int, string> $casts = ['is_active' => 'boolean', 'extra' => 'array']

$fillable

protected array<string|int, string> $fillable = ['name', 'role_id', 'action', 'module_id', 'package_id', 'description_phrase', 'is_active', 'points', 'max_earned', 'period', 'created_at', 'updated_at', 'extra']

Methods

entityId()

public entityId() : int
Return values
int

entityType()

public entityType() : string
Return values
string

factory()

public static factory(mixed $parameters) : PointSettingFactory
Parameters
$parameters : mixed
Return values
PointSettingFactory

getDescriptionAttribute()

public getDescriptionAttribute() : string
Return values
string

getDisabledFieldsAttribute()

public getDisabledFieldsAttribute() : array<string|int, string>
Return values
array<string|int, string>

moduleName()

public moduleName() : string
Return values
string

role()

public role() : BelongsTo
Return values
BelongsTo

transactions()

public transactions() : HasMany
Return values
HasMany

newFactory()

protected static newFactory() : PointSettingFactory
Return values
PointSettingFactory

        
On this page

Search results