ActivityFeedContract
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
createActivityFeed()
public
createActivityFeed(FeedAction $feedAction) : Feed|null
Parameters
-
$feedAction
: FeedAction
-
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
:
= []
-
createFeedFromFeedSource()
public
createFeedFromFeedSource(Model $model[, string|null $fromResource = Feed::FROM_APP_RESOURCE ]) : Feed|null
Parameters
-
$model
: Model
-
-
$fromResource
: string|null
= Feed::FROM_APP_RESOURCE
-
deleteActivityFeed()
public
deleteActivityFeed(int $feedId) : bool
Parameters
-
$feedId
: int
-
deleteCoreFeedsByOwner()
public
deleteCoreFeedsByOwner(string $ownerType, int $ownerId) : void
Parameters
-
$ownerType
: string
-
-
$ownerId
: int
-
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
getFeedByShareId()
public
getFeedByShareId(int $shareId) : Feed|null
Parameters
-
$shareId
: int
-
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>
isSnooze()
public
isSnooze(User $user, User $owner) : bool
Parameters
-
$user
: User
-
-
$owner
: User
-
putToStream()
public
putToStream(Feed $feed) : void
Parameters
-
$feed
: Feed
-
public
putToTagStream(Feed $feed, User $context, int $userAutoTag) : void
Parameters
-
$feed
: Feed
-
-
$context
: User
-
-
$userAutoTag
: int
-
sendFeedComposeNotification()
public
sendFeedComposeNotification(Feed $feed) : bool
Parameters
-
$feed
: Feed
-
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>
= []
-
unSnooze()
public
unSnooze(User $user, User $owner[, array<string|int, mixed> $relations = [] ]) : Snooze
Parameters
-
$user
: User
-
-
$owner
: User
-
-
$relations
: array<string|int, mixed>
= []
-