MetaFox

CreateFeedForm extends AbstractForm
in package
Uses HasFilterTagUserTrait

Table of Contents

Properties

$isEdit  : bool

Methods

__construct()  : mixed
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>
validate()  : void
Using to validate only.
validated()  : array<string|int, mixed>|null
getValidationMessages()  : array<string|int, mixed>
getValidationRules()  : array<string|int, mixed>
handleMentionedUsers()  : array<string|int, mixed>
handleTaggedUsers()  : array<string|int, mixed>
transformData()  : array<string|int, mixed>

Properties

Methods

__construct()

public __construct([ $resource = null ][, bool $isEdit = false ]) : mixed
Parameters
$resource : = null
$isEdit : bool = false

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

transformTaggedFriends()

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>

validate()

Using to validate only.

public validate(array<string|int, mixed> $data) : void
Parameters
$data : array<string|int, mixed>
Tags
throws
ValidationException

validated()

public validated(Request $request) : array<string|int, mixed>|null
Parameters
$request : Request
Tags
throws
ValidationException
Return values
array<string|int, mixed>|null

getValidationMessages()

protected getValidationMessages() : array<string|int, mixed>
Return values
array<string|int, mixed>

getValidationRules()

protected getValidationRules(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
$data : array<string|int, mixed>
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>

transformData()

protected transformData(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
$data : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results