MetaFox

ActivityFeedContract
in

Table of Contents

Methods

createActivityFeed()  : Feed|null
createActivityPost()  : Post
createFeedFromFeedSource()  : Feed|null
deleteActivityFeed()  : bool
deleteCoreFeedsByOwner()  : void
deleteTagsStream()  : void
getBackgroundStatusImage()  : array<string|int, mixed>|null
getFeedByShareId()  : Feed|null
getPrivacyDetail()  : array<string|int, mixed>
isSnooze()  : bool
putToStream()  : void
putToTagStream()  : void
sendFeedComposeNotification()  : bool
snooze()  : Snooze
unSnooze()  : Snooze

Methods

createActivityPost()

public createActivityPost(string $content, int $privacy, User $user[, User|null $owner = null ][, array<string|int, mixed> $list = [] ][,  $relations = [] ]) : Post
Parameters
$content : string
$privacy : int
$user : User
$owner : User|null = null
$list : array<string|int, mixed> = []
$relations : = []
Return values
Post

createFeedFromFeedSource()

public createFeedFromFeedSource(Model $model[, string|null $fromResource = Feed::FROM_APP_RESOURCE ]) : Feed|null
Parameters
$model : Model
$fromResource : string|null = Feed::FROM_APP_RESOURCE
Return values
Feed|null

deleteActivityFeed()

public deleteActivityFeed(int $feedId) : bool
Parameters
$feedId : int
Return values
bool

deleteCoreFeedsByOwner()

public deleteCoreFeedsByOwner(string $ownerType, int $ownerId) : void
Parameters
$ownerType : string
$ownerId : int

deleteTagsStream()

public deleteTagsStream(array<string|int, mixed> $conditions) : void
Parameters
$conditions : array<string|int, mixed>

getBackgroundStatusImage()

public getBackgroundStatusImage(int $bgStatusId) : array<string|int, mixed>|null
Parameters
$bgStatusId : int
Return values
array<string|int, mixed>|null

getPrivacyDetail()

public getPrivacyDetail(User $context, Feed $feed[, int|null $representativePrivacy = null ]) : array<string|int, mixed>
Parameters
$context : User
$feed : Feed
$representativePrivacy : int|null = null
Return values
array<string|int, mixed>

snooze()

public snooze(User $user, User $owner[, int $snoozeDay = 30 ][, int $isSystem = 0 ][, int $isSnoozed = 1 ][, int $isSnoozedForever = 0 ][, array<string|int, mixed> $relations = [] ]) : Snooze
Parameters
$user : User
$owner : User
$snoozeDay : int = 30
$isSystem : int = 0
$isSnoozed : int = 1
$isSnoozedForever : int = 0
$relations : array<string|int, mixed> = []
Return values
Snooze

        
On this page

Search results