MetaFox

SavedList extends Model
in package
implements Content, HasPrivacy Uses HasEntity, HasFactory, HasUserMorph, HasContent, HasUserAsOwnerMorph, AppendPrivacyListTrait

Class SavedList.

Table of Contents

Interfaces

Content
Interface Content.
HasPrivacy
Interface HasPrivacy.

Constants

ENTITY_TYPE  = 'saved_list'
MAXIMUM_NAME_LENGTH  = 128

Properties

$created_at  : string
$id  : int
$item_added_at  : string
$name  : string
$privacy  : int
$privacy_list  : array<string|int, int>
$saved_id  : int
$savedItems  : Collection
$savedThumb  : Saved
$updated_at  : string
$fillable  : mixed
$table  : mixed

Methods

__toString()  : mixed
deletePrivacyStreams()  : void
Delete {item}_privacy_streams.
disableFeedSponsor()  : void
disableSponsor()  : void
enableFeedSponsor()  : void
enableSponsor()  : void
entityId()  : int
entityType()  : string
factory()  : SavedListFactory
getOwnerPendingMessage()  : string|null
This method is used for getting pending message if item is pending.
getPrivacyListAttribute()  : array<string|int, mixed>|null
getThumbnail()  : string|null
getUserAttribute()  : mixed
getUserEntityAttribute()  : mixed
isApproved()  : mixed
isDraft()  : mixed
isOwnerPending()  : bool
isPublished()  : mixed
isSponsored()  : bool
isSponsoredInFeed()  : bool
isUser()  : bool
check if $user is the user (creator) of entity.
likes()  : MorphMany
loadPrivacyListAttribute()  : mixed
moduleName()  : string
owner()  : MorphTo
ownerEntity()  : BelongsTo
ownerId()  : int
ownerType()  : string
privacyItem()  : mixed
reactItem()  : mixed
savedItems()  : BelongsToMany
savedListMembers()  : HasMany
savedThumb()  : BelongsTo
setPrivacyListAttribute()  : mixed
shares()  : MorphMany
syncPrivacyStreams()  : void
Create {item}_privacy_streams.
toLink()  : string|null
toRouter()  : string|null
toSitemapUrl()  : string|null
toSponsorData()  : array<string|int, mixed>|null
toTitle()  : string
toUrl()  : string|null
user()  : MorphTo
userEntity()  : BelongsTo
userId()  : int
userType()  : string
newFactory()  : SavedListFactory

Constants

ENTITY_TYPE

public mixed ENTITY_TYPE = 'saved_list'

MAXIMUM_NAME_LENGTH

public mixed MAXIMUM_NAME_LENGTH = 128

Properties

$fillable

protected mixed $fillable = ['user_id', 'user_type', 'name', 'saved_id', 'privacy', 'item_added_at']

$table

protected mixed $table = 'saved_lists'

Methods

deletePrivacyStreams()

Delete {item}_privacy_streams.

public deletePrivacyStreams() : void

disableFeedSponsor()

public disableFeedSponsor() : void

disableSponsor()

public disableSponsor() : void

enableFeedSponsor()

public enableFeedSponsor() : void

entityId()

public entityId() : int
Return values
int

entityType()

public entityType() : string
Return values
string

factory()

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

getOwnerPendingMessage()

This method is used for getting pending message if item is pending.

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

getPrivacyListAttribute()

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

getThumbnail()

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

getUserEntityAttribute()

public getUserEntityAttribute() : mixed

isOwnerPending()

public isOwnerPending() : bool
Return values
bool

isSponsored()

public isSponsored() : bool
Return values
bool

isSponsoredInFeed()

public isSponsoredInFeed() : bool
Return values
bool

isUser()

check if $user is the user (creator) of entity.

public isUser(User $user) : bool
Parameters
$user : User
Return values
bool

likes()

public likes() : MorphMany
Return values
MorphMany

moduleName()

public moduleName() : string
Return values
string

savedItems()

public savedItems() : BelongsToMany
Return values
BelongsToMany

savedListMembers()

public savedListMembers() : HasMany
Return values
HasMany

savedThumb()

public savedThumb() : BelongsTo
Return values
BelongsTo

setPrivacyListAttribute()

public setPrivacyListAttribute([array<string|int, mixed> $privacyList = [] ]) : mixed
Parameters
$privacyList : array<string|int, mixed> = []

shares()

public shares() : MorphMany
Return values
MorphMany

syncPrivacyStreams()

Create {item}_privacy_streams.

public syncPrivacyStreams(array<string|int, mixed> $data) : void
Parameters
$data : array<string|int, mixed>
public toLink() : string|null
Return values
string|null

toRouter()

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

toSitemapUrl()

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

toSponsorData()

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

toTitle()

public toTitle() : string
Return values
string

toUrl()

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

userEntity()

public userEntity() : BelongsTo
Return values
BelongsTo

userType()

public userType() : string
Return values
string

newFactory()

protected static newFactory() : SavedListFactory
Return values
SavedListFactory

        
On this page

Search results