MetaFox

PrivacyValidator
in package
implements Rule

Class PrivacyValidator.

Table of Contents

Interfaces

Rule

Properties

$allows  : array<int, mixed>

Methods

getAllows()  : array<int, mixed>
message()  : string
Get the validation error message.
passes()  : bool
Determine if the validation rule passes.

Properties

$allows

private array<int, mixed> $allows = [\MetaFox\Platform\MetaFoxPrivacy::EVERYONE, \MetaFox\Platform\MetaFoxPrivacy::MEMBERS, \MetaFox\Platform\MetaFoxPrivacy::FRIENDS, \MetaFox\Platform\MetaFoxPrivacy::FRIENDS_OF_FRIENDS, \MetaFox\Platform\MetaFoxPrivacy::ONLY_ME, \MetaFox\Platform\MetaFoxPrivacy::CUSTOM]

Methods

getAllows()

public getAllows() : array<int, mixed>
Return values
array<int, mixed>

message()

Get the validation error message.

public message() : string
Return values
string

passes()

Determine if the validation rule passes.

public passes(string $attribute, mixed $value) : bool
Parameters
$attribute : string
$value : mixed
Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

Return values
bool

        
On this page

Search results