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
$created_at
    public
        string
    $created_at
    
    
    
    
$id
    public
        int
    $id
    
    
    
    
$item_added_at
    public
        string
    $item_added_at
    
    
    
    
$name
    public
        string
    $name
    
    
    
    
$privacy
    public
        int
    $privacy
    
    
    
    
$privacy_list
    public
        array<string|int, int>
    $privacy_list
    
    
    
    
$saved_id
    public
        int
    $saved_id
    
    
    
    
$savedItems
    public
        Collection
    $savedItems
    
    
    
    
$savedThumb
    public
        Saved
    $savedThumb
    
    
    
    
$updated_at
    public
        string
    $updated_at
    
    
    
    
$fillable
    protected
        mixed
    $fillable
     = ['user_id', 'user_type', 'name', 'saved_id', 'privacy', 'item_added_at']
    
    
    
$table
    protected
        mixed
    $table
     = 'saved_lists'
    
    
    
Methods
__toString()
    public
                    __toString() : mixed
    deletePrivacyStreams()
Delete {item}_privacy_streams.
    public
                    deletePrivacyStreams() : void
    disableFeedSponsor()
    public
                    disableFeedSponsor() : void
    disableSponsor()
    public
                    disableSponsor() : void
    enableFeedSponsor()
    public
                    enableFeedSponsor() : void
    enableSponsor()
    public
                    enableSponsor() : void
    entityId()
    public
                    entityId() : int
    Return values
intentityType()
    public
                    entityType() : string
    Return values
stringfactory()
    public
            static        factory(mixed $parameters) : SavedListFactory
    Parameters
- $parameters : mixed
 
Return values
SavedListFactorygetOwnerPendingMessage()
This method is used for getting pending message if item is pending.
    public
                    getOwnerPendingMessage() : string|null
    Return values
string|nullgetPrivacyListAttribute()
    public
                    getPrivacyListAttribute() : array<string|int, mixed>|null
    Return values
array<string|int, mixed>|nullgetThumbnail()
    public
                    getThumbnail() : string|null
    Return values
string|nullgetUserAttribute()
    public
                    getUserAttribute() : mixed
    getUserEntityAttribute()
    public
                    getUserEntityAttribute() : mixed
    isApproved()
    public
                    isApproved() : mixed
    isDraft()
    public
                    isDraft() : mixed
    isOwnerPending()
    public
                    isOwnerPending() : bool
    Return values
boolisPublished()
    public
                    isPublished() : mixed
    isSponsored()
    public
                    isSponsored() : bool
    Return values
boolisSponsoredInFeed()
    public
                    isSponsoredInFeed() : bool
    Return values
boolisUser()
check if $user is the user (creator) of entity.
    public
                    isUser(User $user) : bool
    Parameters
- $user : User
 
Return values
boollikes()
    public
                    likes() : MorphMany
    Return values
MorphManyloadPrivacyListAttribute()
    public
                    loadPrivacyListAttribute() : mixed
    moduleName()
    public
                    moduleName() : string
    Return values
stringowner()
    public
                    owner() : MorphTo
    Return values
MorphToownerEntity()
    public
                    ownerEntity() : BelongsTo
    Return values
BelongsToownerId()
    public
                    ownerId() : int
    Return values
intownerType()
    public
                    ownerType() : string
    Return values
stringprivacyItem()
    public
                    privacyItem() : mixed
    reactItem()
    public
                    reactItem() : mixed
    savedItems()
    public
                    savedItems() : BelongsToMany
    Return values
BelongsToManysavedListMembers()
    public
                    savedListMembers() : HasMany
    Return values
HasManysavedThumb()
    public
                    savedThumb() : BelongsTo
    Return values
BelongsTosetPrivacyListAttribute()
    public
                    setPrivacyListAttribute([array<string|int, mixed> $privacyList = [] ]) : mixed
    Parameters
- $privacyList : array<string|int, mixed> = []
 
shares()
    public
                    shares() : MorphMany
    Return values
MorphManysyncPrivacyStreams()
Create {item}_privacy_streams.
    public
                    syncPrivacyStreams(array<string|int, mixed> $data) : void
    Parameters
- $data : array<string|int, mixed>
 
toLink()
    public
                    toLink() : string|null
    Return values
string|nulltoRouter()
    public
                    toRouter() : string|null
    Return values
string|nulltoSitemapUrl()
    public
                    toSitemapUrl() : string|null
    Return values
string|nulltoSponsorData()
    public
                    toSponsorData() : array<string|int, mixed>|null
    Return values
array<string|int, mixed>|nulltoTitle()
    public
                    toTitle() : string
    Return values
stringtoUrl()
    public
                    toUrl() : string|null
    Return values
string|nulluser()
    public
                    user() : MorphTo
    Return values
MorphTouserEntity()
    public
                    userEntity() : BelongsTo
    Return values
BelongsTouserId()
    public
                    userId() : int
    Return values
intuserType()
    public
                    userType() : string
    Return values
stringnewFactory()
    protected
            static        newFactory() : SavedListFactory