Post
        
        extends Model
    
    
            
            in package
            
        
    
            
            implements
                            ActivityFeedSource,                             Content,                             AppendPrivacyList,                             HasLocationCheckin,                             ActivityFeedForm,                             HasPrivacy,                             HasTotalLike,                             HasTotalCommentWithReply,                             HasTotalShare,                             HasBackGroundStatus,                             HasTaggedFriend,                             HasSavedItem,                             HasApprove                    
    
            
            Uses
                            HasContent,                             HasUserMorph,                             HasOwnerMorph,                             AppendPrivacyListTrait,                             HasFactory,                             HasTaggedFriendTrait,                             HasTagTrait                    
    
Class Post.
Tags
Table of Contents
Interfaces
- ActivityFeedSource
- Interface ActivityFeedSource.
- Content
- Interface Content.
- AppendPrivacyList
- Interface AppendPrivacyList
- HasLocationCheckin
- Interface HasLocationCheckin.
- ActivityFeedForm
- Interface ActivityFeedForm.
- HasPrivacy
- Interface HasPrivacy.
- HasTotalLike
- Interface HasTotalLike.
- HasTotalCommentWithReply
- Interface HasTotalComment.
- HasTotalShare
- Interface HasTotalLike.
- HasBackGroundStatus
- Interface HasBackGroundStatus.
- HasTaggedFriend
- Interface HasTaggedFriend.
- HasSavedItem
- Interface HasSavedItem.
- HasApprove
- Interface HasApprove
Constants
- ENTITY_TYPE = 'activity_post'
- FEED_POST_TYPE = self::ENTITY_TYPE
Properties
- $content : string
- $created_at : string|Carbon
- $id : int
- $location_latitude : int
- $location_longitude : int
- $location_name : string
- $owner_id : int
- $owner_type : string
- $privacy : int
- $privacy_id : int
- $privacy_list : array<string|int, int>
- $status_background_id : int
- $updated_at : string|Carbon
- $user_id : int
- $user_type : string
- $fillable : mixed
- $isReview : int
- $table : mixed
Methods
- __toString() : mixed
- deletePrivacyStreams() : void
- Delete {item}_privacy_streams.
- disableFeedSponsor() : void
- disableSponsor() : void
- enableFeedSponsor() : void
- enableSponsor() : void
- factory() : PostFactory
- getBackgroundStatusImage() : array<string, mixed>|null
- getFeedContent() : string|null
- getHideStatusWhenErrorViewPermissionAttribute() : bool
- getKeepCommentItemRouterAttribute() : bool
- getOwnerAttribute() : mixed
- getOwnerEntityAttribute() : mixed
- getOwnerPendingMessage() : string|null
- This method is used for getting pending message if item is pending.
- getParsedContent() : string|null
- getPrivacyListAttribute() : array<string|int, mixed>|null
- getThumbnail() : string|null
- getUserAttribute() : mixed
- getUserEntityAttribute() : mixed
- hasTagStream() : bool
- isApproved() : mixed
- isDraft() : mixed
- isOwner() : bool
- check if $user is the owner of entity.
- isOwnerPending() : bool
- isPublished() : mixed
- isReview() : int
- isSponsored() : bool
- isSponsoredInFeed() : bool
- isUser() : bool
- check if $user is the user (creator) of entity.
- likes() : MorphMany
- loadPrivacyListAttribute() : mixed
- owner() : MorphTo
- ownerEntity() : BelongsTo
- ownerId() : int
- ownerType() : string
- privacyItem() : mixed
- reactItem() : mixed
- setIsReview() : mixed
- setPrivacyListAttribute() : mixed
- shares() : MorphMany
- syncPrivacyStreams() : void
- Create {item}_privacy_streams.
- toActivityFeed() : FeedAction|null
- toCallbackMessage() : string
- toFollowerNotification() : array<string|int, mixed>|null
- toLink() : string|null
- toLocation() : array<string|int, mixed>
- [address, lat, lng].
- toMail() : MailMessage
- toOGDescription() : string|null
- toRouter() : string|null
- toSavedItem() : array<string, mixed>
- [title, image, item_type_name, total_photo, user(UserEntity), link].
- toSitemapUrl() : string|null
- toSponsorData() : array<string|int, mixed>|null
- toTagFriendLink() : string|null
- toTagFriendRouter() : string|null
- toTagFriendUrl() : string|null
- toTitle() : string
- toUrl() : string|null
- user() : MorphTo
- userEntity() : BelongsTo
- userId() : int
- userType() : string
- newFactory() : PostFactory
Constants
ENTITY_TYPE
    public
        mixed
    ENTITY_TYPE
    = 'activity_post'
    
    
    
FEED_POST_TYPE
    public
        mixed
    FEED_POST_TYPE
    = self::ENTITY_TYPE
    
    
    
Properties
$content
    public
        string
    $content
    
    
    
    
$created_at
    public
        string|Carbon
    $created_at
    
    
    
    
$id
    public
        int
    $id
    
    
    
    
$location_latitude
    public
        int
    $location_latitude
    
    
    
    
$location_longitude
    public
        int
    $location_longitude
    
    
    
    
$location_name
    public
        string
    $location_name
    
    
    
    
$owner_id
    public
        int
    $owner_id
    
    
    
    
$owner_type
    public
        string
    $owner_type
    
    
    
    
$privacy
    public
        int
    $privacy
    
    
    
    
$privacy_id
    public
        int
    $privacy_id
    
    
    
    
$privacy_list
    public
        array<string|int, int>
    $privacy_list
    
    
    
    
$status_background_id
    public
        int
    $status_background_id
    
    
    
    
$updated_at
    public
        string|Carbon
    $updated_at
    
    
    
    
$user_id
    public
        int
    $user_id
    
    
    
    
$user_type
    public
        string
    $user_type
    
    
    
    
$fillable
    protected
        mixed
    $fillable
     = ['privacy', 'privacy_id', 'user_id', 'user_type', 'content', 'total_like', 'total_share', 'total_comment', 'total_reply', 'total_pending_comment', 'total_pending_reply', 'total_tag_friend', 'location_latitude', 'location_longitude', 'location_name', 'owner_id', 'owner_type', 'status_background_id', 'is_approved', 'updated_at', 'created_at']
    
    
    
$isReview
    protected
        int
    $isReview
    
    
    
    
$table
    protected
        mixed
    $table
     = 'activity_posts'
    
    
    
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
    factory()
    public
            static        factory(mixed $parameters) : PostFactory
    Parameters
- $parameters : mixed
Return values
PostFactorygetBackgroundStatusImage()
    public
                    getBackgroundStatusImage() : array<string, mixed>|null
    Return values
array<string, mixed>|nullgetFeedContent()
    public
                    getFeedContent() : string|null
    Return values
string|nullgetHideStatusWhenErrorViewPermissionAttribute()
    public
                    getHideStatusWhenErrorViewPermissionAttribute() : bool
    Return values
boolgetKeepCommentItemRouterAttribute()
    public
                    getKeepCommentItemRouterAttribute() : bool
    Return values
boolgetOwnerAttribute()
    public
                    getOwnerAttribute() : mixed
    getOwnerEntityAttribute()
    public
                    getOwnerEntityAttribute() : mixed
    getOwnerPendingMessage()
This method is used for getting pending message if item is pending.
    public
                    getOwnerPendingMessage() : string|null
    Return values
string|nullgetParsedContent()
    public
                    getParsedContent() : 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
    hasTagStream()
    public
                    hasTagStream() : bool
    Return values
boolisApproved()
    public
                    isApproved() : mixed
    isDraft()
    public
                    isDraft() : mixed
    isOwner()
check if $user is the owner of entity.
    public
                    isOwner(User $user) : bool
    Parameters
- $user : User
Return values
boolisOwnerPending()
    public
                    isOwnerPending() : bool
    Return values
boolisPublished()
    public
                    isPublished() : mixed
    isReview()
    public
                    isReview() : int
    Return values
intisSponsored()
    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
    owner()
    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
    setIsReview()
    public
                    setIsReview(int $isReview) : mixed
    Parameters
- $isReview : int
setPrivacyListAttribute()
    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>
toActivityFeed()
    public
                    toActivityFeed() : FeedAction|null
    Return values
FeedAction|nulltoCallbackMessage()
    public
                    toCallbackMessage(UserEntity $user, UserEntity $owner[, bool $isMention = false ]) : string
    Parameters
- $user : UserEntity
- $owner : UserEntity
- $isMention : bool = false
Return values
stringtoFollowerNotification()
    public
                    toFollowerNotification() : array<string|int, mixed>|null
    Return values
array<string|int, mixed>|nulltoLink()
    public
                    toLink() : string|null
    Tags
Return values
string|nulltoLocation()
[address, lat, lng].
    public
                    toLocation() : array<string|int, mixed>
    Return values
array<string|int, mixed>toMail()
    public
                    toMail(MailMessage $service, UserEntity|null $user, UserEntity|null $owner[, bool $isMention = false ]) : MailMessage
    Parameters
- $service : MailMessage
- $user : UserEntity|null
- $owner : UserEntity|null
- $isMention : bool = false
Return values
MailMessagetoOGDescription()
    public
                    toOGDescription([User|null $context = null ]) : string|null
    Parameters
- $context : User|null = null
Return values
string|nulltoRouter()
    public
                    toRouter() : string|null
    Tags
Return values
string|nulltoSavedItem()
[title, image, item_type_name, total_photo, user(UserEntity), link].
    public
                    toSavedItem() : array<string, mixed>
    Tags
Return values
array<string, mixed>toSitemapUrl()
    public
                    toSitemapUrl() : string|null
    Return values
string|nulltoSponsorData()
    public
                    toSponsorData() : array<string|int, mixed>|null
    Return values
array<string|int, mixed>|nulltoTagFriendLink()
    public
                    toTagFriendLink() : string|null
    Return values
string|nulltoTagFriendRouter()
    public
                    toTagFriendRouter() : string|null
    Return values
string|nulltoTagFriendUrl()
    public
                    toTagFriendUrl() : string|null
    Return values
string|nulltoTitle()
    public
                    toTitle() : string
    Return values
stringtoUrl()
    public
                    toUrl() : string|null
    Tags
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() : PostFactory