MetaFox

Type extends Model
in package
Uses HasFactory

Class Type.

Tags
mixin

Builder

SuppressWarnings

(PHPMD.BooleanArgumentFlag)

SuppressWarnings

(PHPMD.BooleanGetMethodName)

Table of Contents

Constants

ACTION_ON_FEED  = 32
ACTION_ON_FEED_TYPE  = 'action_on_feed'
CAN_CHANGE_PRIVACY_FROM_FEED_TYPE  = 'can_change_privacy_from_feed'
CAN_COMMENT  = 1
CAN_COMMENT_TYPE  = 'can_comment'
CAN_CREATE_FEED  = 16
CAN_CREATE_FEED_TYPE  = 'can_create_feed'
CAN_EDIT  = 8
CAN_EDIT_TYPE  = 'can_edit'
CAN_LIKE  = 2
CAN_LIKE_TYPE  = 'can_like'
CAN_REDIRECT_TO_DETAIL  = 128
CAN_REDIRECT_TO_DETAIL_TYPE  = 'can_redirect_to_detail'
CAN_SHARE  = 4
CAN_SHARE_TYPE  = 'can_share'
CHANGE_PRIVACY_FROM_FEED  = 64
PREVENT_EDIT_FEED_ITEM  = 256
PREVENT_EDIT_FEED_ITEM_TYPE  = 'prevent_from_edit_feed_item'

Properties

$description  : string
$entity_type  : string
$id  : int
$is_active  : bool
$is_system  : bool
$module_id  : string
$params  : array<string|int, mixed>
$timestamps  : bool
$title  : string
$type  : string
$value_actual  : array<string|int, mixed>|null
$value_default  : array<string|int, mixed>
$appends  : array<string|int, string>
$casts  : array<string|int, string>
$fillable  : array<string|int, string>
$table  : mixed

Methods

describe()  : array<string, mixed>
getAbilities()  : array<string|int, mixed>|array<string|int, int>
getSettings()  : array<string|int, mixed>
package()  : BelongsTo
newFactory()  : TypeFactory

Constants

ACTION_ON_FEED

public mixed ACTION_ON_FEED = 32

ACTION_ON_FEED_TYPE

public mixed ACTION_ON_FEED_TYPE = 'action_on_feed'

CAN_CHANGE_PRIVACY_FROM_FEED_TYPE

public mixed CAN_CHANGE_PRIVACY_FROM_FEED_TYPE = 'can_change_privacy_from_feed'

CAN_COMMENT

public mixed CAN_COMMENT = 1

CAN_COMMENT_TYPE

public mixed CAN_COMMENT_TYPE = 'can_comment'

CAN_CREATE_FEED

public mixed CAN_CREATE_FEED = 16

CAN_CREATE_FEED_TYPE

public mixed CAN_CREATE_FEED_TYPE = 'can_create_feed'

CAN_EDIT

public mixed CAN_EDIT = 8

CAN_EDIT_TYPE

public mixed CAN_EDIT_TYPE = 'can_edit'

CAN_LIKE

public mixed CAN_LIKE = 2

CAN_LIKE_TYPE

public mixed CAN_LIKE_TYPE = 'can_like'

CAN_REDIRECT_TO_DETAIL

public mixed CAN_REDIRECT_TO_DETAIL = 128

CAN_REDIRECT_TO_DETAIL_TYPE

public mixed CAN_REDIRECT_TO_DETAIL_TYPE = 'can_redirect_to_detail'

CAN_SHARE

public mixed CAN_SHARE = 4

CAN_SHARE_TYPE

public mixed CAN_SHARE_TYPE = 'can_share'

CHANGE_PRIVACY_FROM_FEED

public mixed CHANGE_PRIVACY_FROM_FEED = 64

PREVENT_EDIT_FEED_ITEM

public mixed PREVENT_EDIT_FEED_ITEM = 256

PREVENT_EDIT_FEED_ITEM_TYPE

public mixed PREVENT_EDIT_FEED_ITEM_TYPE = 'prevent_from_edit_feed_item'

Properties

$description

public string $description

$entity_type

public string $entity_type

$is_active

public bool $is_active

$is_system

public bool $is_system

$module_id

public string $module_id

$params

public array<string|int, mixed> $params

$timestamps

public bool $timestamps = false

$title

public string $title

$type

public string $type

$value_actual

public array<string|int, mixed>|null $value_actual

$value_default

public array<string|int, mixed> $value_default

$appends

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

$casts

protected array<string|int, string> $casts = ['is_active' => 'boolean', 'is_system' => 'boolean', 'params' => 'array', 'value_default' => 'array', 'value_actual' => 'array']

$fillable

protected array<string|int, string> $fillable = ['type', 'module_id', 'entity_type', 'title', 'description', 'is_active', 'system_value', 'is_system', 'value_actual', 'value_default', 'params']

$table

protected mixed $table = 'activity_types'

Methods

describe()

public describe() : array<string, mixed>
Return values
array<string, mixed>

getAbilities()

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

getSettings()

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

package()

public package() : BelongsTo
Return values
BelongsTo

newFactory()

protected static newFactory() : TypeFactory
Return values
TypeFactory

        
On this page

Search results