-
SuppressWarnings
-
Table of Contents
Interfaces
- ResourcePolicyInterface
- HideFeedPolicyInterface
- HideAllPolicyInterface
Properties
-
$type
: string
Methods
-
__call()
: bool
-
approve()
: bool
-
archive()
: bool
-
blockUser()
: bool
-
canAddFriend()
: bool
-
changePrivacyFromFeed()
: bool
-
checkModeratorSetting()
: bool
-
comment()
: bool
-
countTotalFriend()
: int
-
countTotalFriendRequest()
: int
-
countTotalMutualFriend()
: int
-
create()
: bool
-
delete()
: bool
-
deleteOwn()
: bool
-
getTaggedFriend()
: mixed
-
getTaggedFriendItems()
: array<string|int, mixed>
-
getTaggedFriends()
: Builder|null
-
hasCreateFeed()
: bool
-
hideAll()
: bool
-
hideFeed()
: bool
-
isFriend()
: bool
-
isPrivacyShareable()
: bool
-
isSavedItem()
: bool
-
like()
: bool
-
pinFeed()
: bool
-
pinHome()
: bool
-
pinItem()
: bool
-
purchaseSponsor()
: bool
-
removeFeed()
: bool
-
removeTag()
: bool
-
reportItem()
: bool
-
reportToOwner()
: bool
-
reviewTagStreams()
: bool
-
saveItem()
: bool
-
share()
: bool
-
snooze()
: bool
-
snoozeOwner()
: bool
-
sponsor()
: bool
-
unHideFeed()
: bool
-
unPinFeed()
: bool
-
update()
: bool
-
updateFeedItem()
: bool
-
view()
: bool
-
viewAny()
: bool
-
viewContent()
: bool
-
viewHistory()
: bool
-
viewOnProfilePage()
: bool
-
viewOwner()
: bool
-
isParentOwner()
: bool
-
validateChangingPrivacyPermission()
: bool
-
checkCreateOnOwner()
: bool
-
getActionItem()
: Entity|null
-
getTypeManager()
: TypeManager
-
prepareCheck()
: bool
-
prepareCheckPin()
: bool
$type
protected
string
$type
= \MetaFox\Activity\Models\Feed::class
__call()
public
__call(string $ability, array<string|int, mixed> $arguments) : bool
Parameters
-
$ability
: string
-
-
$arguments
: array<string|int, mixed>
-
approve()
public
approve(User $user[, Content|null $resource = null ]) : bool
Parameters
-
$user
: User
-
-
$resource
: Content|null
= null
-
archive()
public
archive(User $user, Feed $resource) : bool
Parameters
-
$user
: User
-
-
$resource
: Feed
-
blockUser()
public
blockUser(User $context, Content $resource) : bool
Parameters
-
$context
: User
-
-
$resource
: Content
-
canAddFriend()
public
canAddFriend(User $context[, User|null $user = null ]) : bool
Parameters
-
$context
: User
-
-
$user
: User|null
= null
-
changePrivacyFromFeed()
public
changePrivacyFromFeed(User $user, Feed $feed) : bool
Parameters
-
$user
: User
-
-
$feed
: Feed
-
checkModeratorSetting()
public
checkModeratorSetting(User $user, User $owner, string $settingName) : bool
Parameters
-
$user
: User
-
-
$owner
: User
-
-
$settingName
: string
-
public
comment(User $user[, Content|null $resource = null ]) : bool
Parameters
-
$user
: User
-
-
$resource
: Content|null
= null
-
countTotalFriend()
public
countTotalFriend(int $userId) : int
Parameters
-
$userId
: int
-
countTotalFriendRequest()
public
countTotalFriendRequest(User $user) : int
Parameters
-
$user
: User
-
countTotalMutualFriend()
public
countTotalMutualFriend(int $contextId, int $userId) : int
Parameters
-
$contextId
: int
-
-
$userId
: int
-
create()
public
create(User $user[, User|null $owner = null ]) : bool
Parameters
-
$user
: User
-
-
$owner
: User|null
= null
-
delete()
public
delete(User $user[, Entity|null $resource = null ]) : bool
Parameters
-
$user
: User
-
-
$resource
: Entity|null
= null
-
deleteOwn()
public
deleteOwn(User $user[, Entity|null $resource = null ]) : bool
Parameters
-
$user
: User
-
-
$resource
: Entity|null
= null
-
getTaggedFriend()
public
getTaggedFriend(Entity|null $item, User $friend) : mixed
Parameters
-
$item
: Entity|null
-
-
$friend
: User
-
getTaggedFriendItems()
public
getTaggedFriendItems(HasTaggedFriend $item[, int $limit = 10 ]) : array<string|int, mixed>
Parameters
-
$item
: HasTaggedFriend
-
-
$limit
: int
= 10
-
-
throws
-
AuthorizationException
Return values
array<string|int, mixed>
getTaggedFriends()
public
getTaggedFriends(Entity|null $item[, int $limit = 10 ][, array<string|int, mixed> $excludedIds = [] ]) : Builder|null
Parameters
-
$item
: Entity|null
-
-
$limit
: int
= 10
-
-
$excludedIds
: array<string|int, mixed>
= []
-
Return values
Builder|null
hasCreateFeed()
public
hasCreateFeed(User $owner, string $postType) : bool
Parameters
-
$owner
: User
-
-
$postType
: string
-
hideAll()
public
hideAll(User $user[, User|null $owner = null ][, bool|null $isProfileFeed = null ]) : bool
Parameters
-
$user
: User
-
-
$owner
: User|null
= null
-
-
$isProfileFeed
: bool|null
= null
-
hideFeed()
public
hideFeed(User $user, Feed $feed) : bool
Parameters
-
$user
: User
-
-
$feed
: Feed
-
isFriend()
public
isFriend(User $context[, User|null $user = null ]) : bool
Parameters
-
$context
: User
-
-
$user
: User|null
= null
-
isPrivacyShareable()
public
isPrivacyShareable(int|null $privacy) : bool
Parameters
-
$privacy
: int|null
-
isSavedItem()
public
isSavedItem(User $user[, Content $resource = null ]) : bool
Parameters
-
$user
: User
-
-
$resource
: Content
= null
-
like()
public
like(User $user[, Content|null $resource = null ]) : bool
Parameters
-
$user
: User
-
-
$resource
: Content|null
= null
-
pinFeed()
public
pinFeed(User $user, Feed $feed[, bool|null $isProfileFeed = null ]) : bool
Parameters
-
$user
: User
-
-
$feed
: Feed
-
-
$isProfileFeed
: bool|null
= null
-
pinHome()
public
pinHome(User $context, Content $resource) : bool
Parameters
-
$context
: User
-
-
$resource
: Content
-
pinItem()
public
pinItem(User $context, Content $resource) : bool
Parameters
-
$context
: User
-
-
$resource
: Content
-
public
purchaseSponsor(User $user[, Content|null $resource = null ]) : bool
Parameters
-
$user
: User
-
-
$resource
: Content|null
= null
-
removeFeed()
public
removeFeed(Feed $resource, User $user, User $owner) : bool
Parameters
-
$resource
: Feed
-
-
$user
: User
-
-
$owner
: User
-
removeTag()
public
removeTag([Feed|null $resource = null ]) : bool
Parameters
-
$resource
: Feed|null
= null
-
reportItem()
public
reportItem(User $user[, Content $resource = null ]) : bool
Parameters
-
$user
: User
-
-
$resource
: Content
= null
-
reportToOwner()
public
reportToOwner(User $user[, Content $resource = null ]) : bool
Parameters
-
$user
: User
-
-
$resource
: Content
= null
-
public
reviewTagStreams(User $user[, Content $resource = null ]) : bool
Parameters
-
$user
: User
-
-
$resource
: Content
= null
-
saveItem()
public
saveItem(User $user[, Content $resource = null ]) : bool
Parameters
-
$user
: User
-
-
$resource
: Content
= null
-
share()
public
share(User $user[, Content|null $resource = null ]) : bool
Parameters
-
$user
: User
-
-
$resource
: Content|null
= null
-
snooze()
public
snooze(User $user[, User|null $owner = null ][, bool|null $isProfileFeed = null ]) : bool
Parameters
-
$user
: User
-
-
$owner
: User|null
= null
-
-
$isProfileFeed
: bool|null
= null
-
snoozeOwner()
public
snoozeOwner(User $user, User|null $owner[, bool|null $isProfileFeed = null ]) : bool
Parameters
-
$user
: User
-
-
$owner
: User|null
-
-
$isProfileFeed
: bool|null
= null
-
public
sponsor(User $user[, Content|null $resource = null ]) : bool
Parameters
-
$user
: User
-
-
$resource
: Content|null
= null
-
unHideFeed()
public
unHideFeed(User $user, Feed $feed) : bool
Parameters
-
$user
: User
-
-
$feed
: Feed
-
unPinFeed()
public
unPinFeed(User $user, Feed $feed[, bool|null $isProfileFeed = null ]) : bool
Parameters
-
$user
: User
-
-
$feed
: Feed
-
-
$isProfileFeed
: bool|null
= null
-
update()
public
update(User $user[, Entity|null $resource = null ]) : bool
Parameters
-
$user
: User
-
-
$resource
: Entity|null
= null
-
updateFeedItem()
public
updateFeedItem(User $context, Content $resource) : bool
Parameters
-
$context
: User
-
-
$resource
: Content
-
view()
public
view(User $user, Entity $resource) : bool
Parameters
-
$user
: User
-
-
$resource
: Entity
-
viewAny()
public
viewAny(User $user[, User|null $owner = null ]) : bool
Parameters
-
$user
: User
-
-
$owner
: User|null
= null
-
viewContent()
public
viewContent(User $user, User $owner, string $status[, bool $isYour = false ]) : bool
Parameters
-
$user
: User
-
-
$owner
: User
-
-
$status
: string
-
-
$isYour
: bool
= false
-
viewHistory()
public
viewHistory(User $user[, Content $resource = null ]) : bool
Parameters
-
$user
: User
-
-
$resource
: Content
= null
-
viewOnProfilePage()
public
viewOnProfilePage(User $user, User $owner) : bool
Parameters
-
$user
: User
-
-
$owner
: User
-
viewOwner()
public
viewOwner(User $user[, User|null $owner = null ]) : bool
Parameters
-
$user
: User
-
-
$owner
: User|null
= null
-
isParentOwner()
protected
isParentOwner(User $user, User|null $owner) : bool
Parameters
-
$user
: User
-
-
$owner
: User|null
-
validateChangingPrivacyPermission()
protected
validateChangingPrivacyPermission(User $user, Feed $feed) : bool
Parameters
-
$user
: User
-
-
$feed
: Feed
-
checkCreateOnOwner()
private
checkCreateOnOwner(User $user, User $owner) : bool
Parameters
-
$user
: User
-
-
$owner
: User
-
getActionItem()
private
getActionItem(Feed $resource) : Entity|null
Parameters
-
$resource
: Feed
-
getTypeManager()
private
getTypeManager() : TypeManager
prepareCheck()
private
prepareCheck(User $user[, User|null $owner = null ][, bool|null $isProfileFeed = null ]) : bool
Parameters
-
$user
: User
-
-
$owner
: User|null
= null
-
-
$isProfileFeed
: bool|null
= null
-
prepareCheckPin()
private
prepareCheckPin(User $user, User|null $owner, Feed $feed[, bool|null $isProfileFeed = null ]) : bool
Parameters
-
$user
: User
-
-
$owner
: User|null
-
-
$feed
: Feed
-
-
$isProfileFeed
: bool|null
= null
-