BgsBackground
extends Model
in package
implements
Entity, HasThumbnail
Uses
HasEntity, HasFactory, HasThumbnailTrait
Class BgsBackground.
Table of Contents
Interfaces
- Entity
- Interface Entity.
- HasThumbnail
- Interface HasThumbnail.
Constants
- ENTITY_TYPE = 'pstatusbg_background'
- IS_DELETED = 1
Properties
- $bgsCollection : BgsCollection
- $collection_id : int
- $created_at : string
- $id : int
- $image_file_id : mixed
- $image_path : string
- $images : array<int|string, mixed>|null
- $is_deleted : int
- $ordering : int
- $server_id : string
- $timestamps : mixed
- $view_only : int
- $fillable : array<string|int, string>
- $table : mixed
Methods
- bgsCollection() : BelongsTo
- entityId() : int
- entityType() : string
- factory() : BgsBackgroundFactory
- getImageAttribute() : string|null
- getImagesAttribute() : array<string|int, mixed>|null
- getSizes() : array<string|int, int>
- getThumbnail() : string|null
- moduleName() : string
- newFactory() : BgsBackgroundFactory
Constants
ENTITY_TYPE
public
mixed
ENTITY_TYPE
= 'pstatusbg_background'
IS_DELETED
public
mixed
IS_DELETED
= 1
Properties
$bgsCollection
public
BgsCollection
$bgsCollection
$collection_id
public
int
$collection_id
$created_at
public
string
$created_at
$id
public
int
$id
$image_file_id
public
mixed
$image_file_id
$image_path
public
string
$image_path
$images
public
array<int|string, mixed>|null
$images
$is_deleted
public
int
$is_deleted
$ordering
public
int
$ordering
$server_id
public
string
$server_id
$timestamps
public
mixed
$timestamps
= false
$view_only
public
int
$view_only
$fillable
protected
array<string|int, string>
$fillable
= ['collection_id', 'image_path', 'server_id', 'is_deleted', 'ordering', 'view_only', 'image_file_id']
$table
protected
mixed
$table
= 'bgs_backgrounds'
Methods
bgsCollection()
public
bgsCollection() : BelongsTo
Return values
BelongsToentityId()
public
entityId() : int
Return values
intentityType()
public
entityType() : string
Return values
stringfactory()
public
static factory(mixed $parameters) : BgsBackgroundFactory
Parameters
- $parameters : mixed
Return values
BgsBackgroundFactorygetImageAttribute()
public
getImageAttribute() : string|null
Return values
string|nullgetImagesAttribute()
public
getImagesAttribute() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullgetSizes()
public
getSizes() : array<string|int, int>
Return values
array<string|int, int>getThumbnail()
public
getThumbnail() : string|null
Return values
string|nullmoduleName()
public
moduleName() : string
Return values
stringnewFactory()
protected
static newFactory() : BgsBackgroundFactory