MetaFox

PhotoGroup extends Model
in package
implements Content, ResourcePostOnOwner, ActivityFeedSourceCanEditAttachment, AppendPrivacyList, HasPrivacy, HasFeature, HasSponsor, HasSponsorInFeed, HasTotalLike, HasTotalShare, HasTotalCommentWithReply, HasTotalView, HasTotalPhoto, HasTotalItem, HasLocationCheckin, HasSavedItem, HasTaggedFriend, HasApprove Uses HasContent, HasFactory, HasAmountsTrait, HasUserMorph, HasOwnerMorph, AppendPrivacyListTrait, HasTaggedFriendTrait

Class PhotoGroup.

Tags
mixin

Builder

Table of Contents

Interfaces

Content
Interface Content.
ResourcePostOnOwner
Determine whenever a resource can be posted on another user: example photo, user_status,.
ActivityFeedSourceCanEditAttachment
Interface ActivityFeedSourceCanEditAttachment
AppendPrivacyList
Interface AppendPrivacyList
HasPrivacy
Interface HasPrivacy.
HasFeature
Interface HasFeature.
HasSponsor
Interface HasSponsor.
HasSponsorInFeed
Interface HasSponsor.
HasTotalLike
Interface HasTotalLike.
HasTotalShare
Interface HasTotalLike.
HasTotalCommentWithReply
Interface HasTotalComment.
HasTotalView
Interface HasTotalView.
HasTotalPhoto
Interface Entity.
HasTotalItem
Interface Entity.
HasLocationCheckin
Interface HasLocationCheckin.
HasSavedItem
Interface HasSavedItem.
HasTaggedFriend
Interface HasTaggedFriend.
HasApprove
Interface HasApprove

Constants

ENTITY_TYPE  = 'photo_set'
FEED_POST_TYPE  = self::ENTITY_TYPE
PHOTO_ALBUM_UPDATE_TYPE  = 'update_photo_album'

Properties

$album  : Album|null
$album_id  : int
$album_link  : string
$album_name  : string
$content  : string
$created_at  : string
$id  : int
$items  : Collection
$privacy_list  : array<string|int, int>
$statistic  : CollectionStatistic|null
$total_item  : int
$updated_at  : string
$appends  : array<string|int, string>
$fillable  : mixed
$isReview  : int
$with  : array<string|int, string>

Methods

__toString()  : mixed
album()  : BelongsTo
approvedItems()  : HasMany
decreaseStatisticAmount()  : int
decrementAmount()  : int
decrementTotalItem()  : void
deletePrivacyStreams()  : void
Delete {item}_privacy_streams.
disableFeedSponsor()  : void
disableSponsor()  : void
enableFeedSponsor()  : void
enableSponsor()  : void
factory()  : PhotoGroupFactory
getAlbumLinkAttribute()  : string
getAlbumNameAttribute()  : string
getFeedContent()  : string|null
getForceSaveItemAttribute()  : bool
getKeepCommentItemRouterAttribute()  : bool
getOwnerAttribute()  : mixed
getOwnerEntityAttribute()  : mixed
getOwnerPendingMessage()  : string|null
getPrivacyListAttribute()  : array<string|int, mixed>|null
getThumbnail()  : string|null
getUserAttribute()  : mixed
getUserEntityAttribute()  : mixed
hasTagStream()  : bool
increaseStatisticAmount()  : int
incrementAmount()  : int
incrementTotalItem()  : void
incrementTotalView()  : void
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.
items()  : HasMany
likes()  : MorphMany
loadPrivacyListAttribute()  : mixed
owner()  : MorphTo
ownerEntity()  : BelongsTo
ownerId()  : int
ownerType()  : string
pendingItems()  : HasMany
privacyItem()  : mixed
processingItems()  : HasMany
reactItem()  : mixed
setIsReview()  : mixed
setPrivacyListAttribute()  : mixed
shares()  : MorphMany
statistic()  : MorphOne
syncPrivacyStreams()  : void
Create {item}_privacy_streams.
toActivityFeed()  : FeedAction|null
toCallbackMessage()  : string
toFeedOGImages()  : array<int, mixed>
toFollowerNotification()  : array<string|int, mixed>|null
toLink()  : string|null
toLocation()  : array<string|int, mixed>
[address, lat, lng].
toMail()  : MailMessage
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
handleNegativeNumber()  : void
newFactory()  : PhotoGroupFactory
toSavedItemTitle()  : string
toSaveItemTypeName()  : string

Constants

ENTITY_TYPE

public mixed ENTITY_TYPE = 'photo_set'

FEED_POST_TYPE

public mixed FEED_POST_TYPE = self::ENTITY_TYPE

PHOTO_ALBUM_UPDATE_TYPE

public mixed PHOTO_ALBUM_UPDATE_TYPE = 'update_photo_album'

Properties

$appends

protected array<string|int, string> $appends = ['album_name', 'album_link']

$fillable

protected mixed $fillable = ['album_id', 'total_item', 'content', 'user_id', 'user_type', 'owner_id', 'owner_type', 'privacy', 'total_view', 'total_like', 'total_share', 'location_name', 'location_latitude', 'location_longitude', 'is_featured', 'is_sponsor', 'is_approved', 'total_tag_friend', 'total_pending_reply', 'total_comment', 'total_reply', 'total_pending_comment']

$with

protected array<string|int, string> $with = ['statistic']

Methods

album()

public album() : BelongsTo
Return values
BelongsTo

approvedItems()

public approvedItems() : HasMany
Return values
HasMany

decreaseStatisticAmount()

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

decrementAmount()

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

deletePrivacyStreams()

Delete {item}_privacy_streams.

public deletePrivacyStreams() : void

disableFeedSponsor()

public disableFeedSponsor() : void

disableSponsor()

public disableSponsor() : void

enableFeedSponsor()

public enableFeedSponsor() : void

factory()

public static factory() : PhotoGroupFactory
Return values
PhotoGroupFactory

getAlbumLinkAttribute()

public getAlbumLinkAttribute() : string
Return values
string

getAlbumNameAttribute()

public getAlbumNameAttribute() : string
Return values
string

getFeedContent()

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

getForceSaveItemAttribute()

public getForceSaveItemAttribute() : bool
Return values
bool

getKeepCommentItemRouterAttribute()

public getKeepCommentItemRouterAttribute() : bool
Return values
bool

getOwnerEntityAttribute()

public getOwnerEntityAttribute() : mixed

getOwnerPendingMessage()

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

increaseStatisticAmount()

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

incrementAmount()

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

isOwner()

check if $user is the owner of entity.

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

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

items()

public items() : HasMany
Return values
HasMany

likes()

public likes() : MorphMany
Return values
MorphMany

ownerEntity()

public ownerEntity() : BelongsTo
Return values
BelongsTo

ownerType()

public ownerType() : string
Return values
string

pendingItems()

public pendingItems() : HasMany
Return values
HasMany

processingItems()

public processingItems() : HasMany
Return values
HasMany

setPrivacyListAttribute()

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

shares()

public shares() : MorphMany
Return values
MorphMany

statistic()

public statistic() : MorphOne
Return values
MorphOne

syncPrivacyStreams()

Create {item}_privacy_streams.

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

toFeedOGImages()

public toFeedOGImages() : array<int, mixed>
Return values
array<int, mixed>

toFollowerNotification()

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

toLocation()

[address, lat, lng].

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

toRouter()

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

toSavedItem()

[title, image, item_type_name, total_photo, user(UserEntity), link].

public toSavedItem() : array<string, mixed>
Return values
array<string, mixed>

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

handleNegativeNumber()

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

newFactory()

protected static newFactory() : PhotoGroupFactory
Return values
PhotoGroupFactory

toSavedItemTitle()

protected toSavedItemTitle() : string
Return values
string

toSaveItemTypeName()

protected toSaveItemTypeName() : string
Return values
string

        
On this page

Search results