HasFilterTagUserTrait
Table of Contents
Methods
-
fallbackMentionUsers()
: array<string|int, mixed>
-
fallbackTagUsers()
: array<string|int, mixed>
-
filterMentionUsers()
: array<string|int, mixed>
-
filterTagUsers()
: array<string|int, mixed>
-
removeMentionsFromContent()
: string|null
-
transformTaggedFriends()
: array<string|int, mixed>
-
handleMentionedUsers()
: array<string|int, mixed>
-
handleTaggedUsers()
: array<string|int, mixed>
fallbackMentionUsers()
public
fallbackMentionUsers(User $context, User $user, array<string|int, mixed> $mentionUserIds) : array<string|int, mixed>
Parameters
-
$context
: User
-
-
$user
: User
-
-
$mentionUserIds
: array<string|int, mixed>
-
Return values
array<string|int, mixed>
fallbackTagUsers()
public
fallbackTagUsers(User $context, User $user, array<string|int, mixed> $taggedUserIds) : array<string|int, mixed>
Parameters
-
$context
: User
-
-
$user
: User
-
-
$taggedUserIds
: array<string|int, mixed>
-
Return values
array<string|int, mixed>
filterMentionUsers()
public
filterMentionUsers(User $context, User $user, User $owner, array<string|int, mixed> $mentionUserIds) : array<string|int, mixed>
Parameters
-
$context
: User
-
-
$user
: User
-
-
$owner
: User
-
-
$mentionUserIds
: array<string|int, mixed>
-
Return values
array<string|int, mixed>
filterTagUsers()
public
filterTagUsers(User $context, User $user, User $owner, array<string|int, mixed> $taggedUserIds) : array<string|int, mixed>
Parameters
-
$context
: User
-
-
$user
: User
-
-
$owner
: User
-
-
$taggedUserIds
: array<string|int, mixed>
-
Return values
array<string|int, mixed>
removeMentionsFromContent()
public
removeMentionsFromContent(string|null $content, array<string|int, mixed> $removedIds) : string|null
Parameters
-
$content
: string|null
-
-
$removedIds
: array<string|int, mixed>
-
Return values
string|null
public
transformTaggedFriends(User $context, User $user, User|null $owner, array<string|int, mixed> $taggedFriends[, string|null $content = null ][, HasTaggedFriend|null $item = null ][, bool $removeMentionOnContent = true ]) : array<string|int, mixed>
Parameters
-
$context
: User
-
-
$user
: User
-
-
$owner
: User|null
-
-
$taggedFriends
: array<string|int, mixed>
-
-
$content
: string|null
= null
-
-
$item
: HasTaggedFriend|null
= null
-
-
$removeMentionOnContent
: bool
= true
-
Return values
array<string|int, mixed>
handleMentionedUsers()
protected
handleMentionedUsers(User $context, User $user, User $owner, array<string|int, mixed> $mentionedUsers, string|null &$content[, bool $removeMentionOnContent = true ]) : array<string|int, mixed>
Parameters
-
$context
: User
-
-
$user
: User
-
-
$owner
: User
-
-
$mentionedUsers
: array<string|int, mixed>
-
-
$content
: string|null
-
-
$removeMentionOnContent
: bool
= true
-
Return values
array<string|int, mixed>
handleTaggedUsers()
protected
handleTaggedUsers(User $context, User $user, User $owner, array<string|int, mixed> $taggedUsers) : array<string|int, mixed>
Parameters
-
$context
: User
-
-
$user
: User
-
-
$owner
: User
-
-
$taggedUsers
: array<string|int, mixed>
-
Return values
array<string|int, mixed>