TagFriendRepositoryInterface
in
Interface TagFriend.
Tags
Table of Contents
Methods
- createTagFriend() : bool
- $tagFriends = [ [ 'friend_id' => 1, 'px' => 1, 'py' => 1, ], [ 'friend_id' => 1], ['friend_id' => 1, 'is_mention' => true, 'content' => 'user test ahihi'], ];.
- deleteItemTagFriends() : void
- deleteTagFriend() : bool
- getAllTaggedFriends() : Collection
- getItemTagFriends() : Collection
- getTagFriend() : TagFriend|null
- getTagFriends() : Builder
- getTaggedUserIdsByItem() : array<string|int, mixed>
- updateTagFriend() : bool
- $tagFriends = [ [ 'friend_id' => 1, 'px' => 1, 'py' => 1, ], [ 'friend_id' => 1], ['friend_id' => 1, 'is_mention' => true, 'content' => 'user test ahihi'], ];.
Methods
createTagFriend()
$tagFriends = [ [ 'friend_id' => 1, 'px' => 1, 'py' => 1, ], [ 'friend_id' => 1], ['friend_id' => 1, 'is_mention' => true, 'content' => 'user test ahihi'], ];.
public
createTagFriend(User $context, HasTaggedFriend $item, array<string|int, mixed> $tagFriends[, bool $putToTagStream = true ]) : bool
Parameters
- $context : User
- $item : HasTaggedFriend
- $tagFriends : array<string|int, mixed>
- $putToTagStream : bool = true
Return values
booldeleteItemTagFriends()
public
deleteItemTagFriends(HasTaggedFriend $item[, array<string|int, mixed>|null $friendIds = null ]) : void
Parameters
- $item : HasTaggedFriend
- $friendIds : array<string|int, mixed>|null = null
deleteTagFriend()
public
deleteTagFriend(int $id) : bool
Parameters
- $id : int
Return values
boolgetAllTaggedFriends()
public
getAllTaggedFriends(Entity $item) : Collection
Parameters
- $item : Entity
Return values
CollectiongetItemTagFriends()
public
getItemTagFriends(HasTaggedFriend $item[, array<string|int, mixed>|null $friendIds = null ]) : Collection
Parameters
- $item : HasTaggedFriend
- $friendIds : array<string|int, mixed>|null = null
Return values
CollectiongetTagFriend()
public
getTagFriend(HasTaggedFriend $item, User $owner) : TagFriend|null
Parameters
- $item : HasTaggedFriend
- $owner : User
Return values
TagFriend|nullgetTagFriends()
public
getTagFriends(HasTaggedFriend $item, int $limit[, array<string|int, mixed> $excludedIds = [] ]) : Builder
Parameters
- $item : HasTaggedFriend
- $limit : int
- $excludedIds : array<string|int, mixed> = []
Return values
BuildergetTaggedUserIdsByItem()
public
getTaggedUserIdsByItem(Entity $item) : array<string|int, mixed>
Parameters
- $item : Entity
Return values
array<string|int, mixed>updateTagFriend()
$tagFriends = [ [ 'friend_id' => 1, 'px' => 1, 'py' => 1, ], [ 'friend_id' => 1], ['friend_id' => 1, 'is_mention' => true, 'content' => 'user test ahihi'], ];.
public
updateTagFriend(User $context, HasTaggedFriend $item, array<string|int, int> $tagFriends) : bool
Parameters
- $context : User
- $item : HasTaggedFriend
- $tagFriends : array<string|int, int>