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'
IS_ACTIVE
public
mixed
IS_ACTIVE
= 1
IS_DEFAULT
public
mixed
IS_DEFAULT
= 1
IS_DELETED
public
mixed
IS_DELETED
= 1
IS_VIEW_ONLY
public
mixed
IS_VIEW_ONLY
= 1
MAX_DEFAULT
public
mixed
MAX_DEFAULT
= 2
Properties
$id
public
int
$id
$is_active
public
int
$is_active
$is_default
public
int
$is_default
$is_deleted
public
int
$is_deleted
$nestedAttributes
public
array<string|int, string>|array<string, mixed>
$nestedAttributes
= ['stickers']
$ordering
public
int
$ordering
$stickers
public
Collection
$stickers
$thumbnail
public
Sticker
$thumbnail
$thumbnail_id
public
int
$thumbnail_id
$timestamps
public
mixed
$timestamps
= false
$title
public
string
$title
$total_sticker
public
int
$total_sticker
$view_only
public
int
$view_only
$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
= []
$table
protected
mixed
$table
= 'sticker_sets'
Methods
decrementAmount()
public
decrementAmount(string $column[, int $amount = 1 ]) : int
Parameters
- $column : string
- $amount : int = 1
Return values
intdecrementTotalItem()
public
decrementTotalItem() : void
entityId()
public
entityId() : int
Return values
intentityType()
public
entityType() : string
Return values
stringfactory()
public
static factory(mixed $parameters) : StickerSetFactory
Parameters
- $parameters : mixed
Return values
StickerSetFactoryfill()
Fill the model with an array of attributes.
public
fill(array<string|int, mixed> $attributes) : static
Parameters
- $attributes : array<string|int, mixed>
Tags
Return values
staticgetAdminBrowseUrlAttribute()
public
getAdminBrowseUrlAttribute() : mixed
getAdminEditUrlAttribute()
public
getAdminEditUrlAttribute() : mixed
getAvatarAttribute()
public
getAvatarAttribute() : string|null
Return values
string|nullgetImageAttribute()
public
getImageAttribute() : string|null
Return values
string|nullgetImagesAttribute()
public
getImagesAttribute() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullgetNestedAttributesFor()
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|nullgetThumbsAttribute()
public
getThumbsAttribute() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullincrementAmount()
public
incrementAmount(string $column[, int $amount = 1 ]) : int
Parameters
- $column : string
- $amount : int = 1
Return values
intincrementTotalItem()
public
incrementTotalItem() : void
incrementTotalView()
public
incrementTotalView() : void
moduleName()
public
moduleName() : string
Return values
stringsave()
Save the model to the database.
public
save([array<string|int, mixed> $options = [] ]) : bool
Parameters
- $options : array<string|int, mixed> = []
Tags
Return values
boolstickers()
public
stickers() : HasMany
Return values
HasManysyncHasManyRelationAttribute()
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
boolsyncHasOneRelationAttribute()
public
syncHasOneRelationAttribute(HasOne $relation, array<string|int, mixed> $params) : bool
Parameters
- $relation : HasOne
- $params : array<string|int, mixed>
Return values
boolthumbnail()
public
thumbnail() : BelongsTo
Return values
BelongsTousers()
public
users() : BelongsToMany
Return values
BelongsToManyallowDestroyNestedAttributes()
Check can we delete nested data.
protected
allowDestroyNestedAttributes(array<string|int, mixed> $params) : bool
Parameters
- $params : array<string|int, mixed>
Return values
boolhandleNegativeNumber()
protected
handleNegativeNumber(string $column) : void
Parameters
- $column : string
newFactory()
protected
static newFactory() : StickerSetFactory