MetaFox

ActivityFeed extends Facade
in package

Class ActivityFeed.

Tags
mixin

\MetaFox\Activity\Support\ActivityFeed

Table of Contents

Methods

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

Methods

createActivityPost()

public static createActivityPost(mixed $content, mixed $privacy, mixed $user, mixed $owner, mixed $list, mixed $relations) : Post
Parameters
$content : mixed
$privacy : mixed
$user : mixed
$owner : mixed
$list : mixed
$relations : mixed
Return values
Post

createFeedFromFeedSource()

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

deleteActivityFeed()

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

deleteTagsStream()

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

getBackgroundStatusImage()

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

getPrivacyDetail()

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

putToTagStream()

public static putToTagStream(Feed $feed, User $context, int $userAutoTag, bool $isUpdate = false) : void
Parameters
$feed : Feed
$context : User
$userAutoTag : int
$isUpdate = false : bool

sendFeedComposeNotification()

public static sendFeedComposeNotification(Feed $feed) : bool
Parameters
$feed : Feed
Return values
bool

unSnooze()

public static unSnooze(User $user, User $owner, array<string|int, mixed> $relations = []) : Snooze
Parameters
$user : User
$owner : User
$relations = [] : array<string|int, mixed>
Return values
Snooze

getFacadeAccessor()

protected static getFacadeAccessor() : mixed

        
On this page

Search results