MetaFox

StickerSet extends Model
in package
implements Entity, HasAmounts, HasThumbnail Uses HasEntity, HasFactory, HasNestedAttributes, HasAmountsTrait, HasThumbnailTrait

Class StickerSet.

Table of Contents

Interfaces

Entity
Interface Entity.
HasAmounts
Trait HasAmounts
HasThumbnail
Interface HasThumbnail.

Constants

DEFAULT_ITEM_PER_PAGE  = 5
ENTITY_TYPE  = 'sticker_set'
IS_ACTIVE  = 1
IS_DEFAULT  = 1
IS_DELETED  = 1
IS_VIEW_ONLY  = 1
MAX_DEFAULT  = 2

Properties

$id  : int
$is_active  : int
$is_default  : int
$is_deleted  : int
$nestedAttributes  : array<string|int, string>|array<string, mixed>
$ordering  : int
$stickers  : Collection
$thumbnail  : Sticker
$thumbnail_id  : int
$timestamps  : mixed
$title  : string
$total_sticker  : int
$view_only  : int
$fillable  : array<string|int, string>
$nestedAttributesFor  : array<string|int, mixed>
Defined nested attributes.
$table  : mixed

Methods

decrementAmount()  : int
decrementTotalItem()  : void
entityId()  : int
entityType()  : string
factory()  : StickerSetFactory
fill()  : static
Fill the model with an array of attributes.
getAdminBrowseUrlAttribute()  : mixed
getAdminEditUrlAttribute()  : mixed
getAvatarAttribute()  : string|null
getImageAttribute()  : string|null
getImagesAttribute()  : array<string|int, mixed>|null
getNestedAttributesFor()  : array<string|int, mixed>
Get accept nested attributes.
getSizes()  : array<string|int, mixed>
getThumbnail()  : string|null
getThumbsAttribute()  : array<string|int, mixed>|null
incrementAmount()  : int
incrementTotalItem()  : void
incrementTotalView()  : void
moduleName()  : string
save()  : bool
Save the model to the database.
stickers()  : HasMany
syncHasManyRelationAttribute()  : bool
Save the hasMany nested relation attributes to the database.
syncHasOneRelationAttribute()  : bool
thumbnail()  : BelongsTo
users()  : BelongsToMany
allowDestroyNestedAttributes()  : bool
Check can we delete nested data.
handleNegativeNumber()  : void
newFactory()  : StickerSetFactory

Constants

DEFAULT_ITEM_PER_PAGE

public mixed DEFAULT_ITEM_PER_PAGE = 5

ENTITY_TYPE

public mixed ENTITY_TYPE = 'sticker_set'

Properties

$nestedAttributes

public array<string|int, string>|array<string, mixed> $nestedAttributes = ['stickers']

$fillable

protected array<string|int, string> $fillable = ['title', 'used', 'is_default', 'is_active', 'thumbnail_id', 'ordering', 'view_only', 'is_deleted']

$nestedAttributesFor

Defined nested attributes.

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

Methods

decrementAmount()

public decrementAmount(string $column[, int $amount = 1 ]) : int
Parameters
$column : string
$amount : int = 1
Return values
int

entityId()

public entityId() : int
Return values
int

entityType()

public entityType() : string
Return values
string

factory()

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

fill()

Fill the model with an array of attributes.

public fill(array<string|int, mixed> $attributes) : static
Parameters
$attributes : array<string|int, mixed>
Tags
throws
MassAssignmentException
Return values
static

getAdminBrowseUrlAttribute()

public getAdminBrowseUrlAttribute() : mixed

getAdminEditUrlAttribute()

public getAdminEditUrlAttribute() : mixed

getAvatarAttribute()

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

getImageAttribute()

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

getImagesAttribute()

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

getNestedAttributesFor()

Get accept nested attributes.

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

getSizes()

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

getThumbnail()

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

getThumbsAttribute()

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

incrementAmount()

public incrementAmount(string $column[, int $amount = 1 ]) : int
Parameters
$column : string
$amount : int = 1
Return values
int

moduleName()

public moduleName() : string
Return values
string

save()

Save the model to the database.

public save([array<string|int, mixed> $options = [] ]) : bool
Parameters
$options : array<string|int, mixed> = []
Tags
throws
Exception
Return values
bool

stickers()

public stickers() : HasMany
Return values
HasMany

syncHasManyRelationAttribute()

Save the hasMany nested relation attributes to the database.

public syncHasManyRelationAttribute(HasMany $relation, array<string|int, mixed> $params) : bool
Parameters
$relation : HasMany
$params : array<string|int, mixed>
Return values
bool

syncHasOneRelationAttribute()

public syncHasOneRelationAttribute(HasOne $relation, array<string|int, mixed> $params) : bool
Parameters
$relation : HasOne
$params : array<string|int, mixed>
Return values
bool

thumbnail()

public thumbnail() : BelongsTo
Return values
BelongsTo

users()

public users() : BelongsToMany
Return values
BelongsToMany

allowDestroyNestedAttributes()

Check can we delete nested data.

protected allowDestroyNestedAttributes(array<string|int, mixed> $params) : bool
Parameters
$params : array<string|int, mixed>
Return values
bool

handleNegativeNumber()

protected handleNegativeNumber(string $column) : void
Parameters
$column : string

newFactory()

protected static newFactory() : StickerSetFactory
Return values
StickerSetFactory

        
On this page

Search results