MetaFox

UpdateRequest extends StoreRequest
in package

Class UpdateRequest.

Table of Contents

Methods

applyLocationRules()  : array<string, mixed>
applyTaggedFriendsRules()  : array<string, mixed>
applyTaggedFriendsRulesForEdit()  : array<string, mixed>
handleTaggedFriend()  : array<string|int, mixed>
isEnableCheckin()  : bool
isEnableTagFriends()  : bool
rules()  : array<string, mixed>
Get the validation rules that apply to the request.
transform()  : array<string, mixed>
validated()  : mixed
isEdit()  : bool
transformPostAsParent()  : array<string|int, mixed>
validatedPostType()  : array<string|int, mixed>

Methods

applyLocationRules()

public applyLocationRules(array<string, mixed> $rules) : array<string, mixed>
Parameters
$rules : array<string, mixed>
Return values
array<string, mixed>

applyTaggedFriendsRules()

public applyTaggedFriendsRules(array<string, mixed> $rules) : array<string, mixed>
Parameters
$rules : array<string, mixed>
Return values
array<string, mixed>

applyTaggedFriendsRulesForEdit()

public applyTaggedFriendsRulesForEdit(array<string, mixed> $rules) : array<string, mixed>
Parameters
$rules : array<string, mixed>
Return values
array<string, mixed>

handleTaggedFriend()

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

[ 1 => 1, 2 => [ 'friend_id' => 2, 'px' => 100, 'py' => 200, ], 3 => [ 'friend_id' => 2, 'is_mention' => 1, 'content' => 'user test ahihi', ], ]

rules()

Get the validation rules that apply to the request.

public rules() : array<string, mixed>
Return values
array<string, mixed>

transform()

public transform(array<string, mixed> $data) : array<string, mixed>
Parameters
$data : array<string, mixed>
Tags
throws
AuthenticationException
SuppressWarnings

(PHPMD.CyclomaticComplexity)

SuppressWarnings

(PHPMD.NPathComplexity)

Return values
array<string, mixed>

validated()

public validated([mixed $key = null ][, mixed $default = null ]) : mixed
Parameters
$key : mixed = null
$default : mixed = null
Tags
throws
AuthenticationException

transformPostAsParent()

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

validatedPostType()

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

        
On this page

Search results