MIDDAG for Moodle

validator extends facade

Facade for local_middag\framework\support\validator.

Tags
see
validator
mixin

Table of Contents

Methods

get_facade_accessor()  : string
Return the service accessor key for this facade.
is_email()  : bool
is_not_empty()  : bool
is_uuid()  : bool
validate()  : array<string|int, mixed>
validate_cnpj()  : bool
validate_cpf()  : bool

Methods

get_facade_accessor()

Return the service accessor key for this facade.

public static get_facade_accessor() : string
Return values
string

is_email()

public static is_email(string $email) : bool
Parameters
$email : string
Return values
bool

is_not_empty()

public static is_not_empty(string $value[, int $minLength = = '1' ][, int|null $maxLength = = 'null' ]) : bool
Parameters
$value : string
$minLength : int = = '1'
$maxLength : int|null = = 'null'
Return values
bool

is_uuid()

public static is_uuid(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

validate()

public static validate(mixed $data, Validatable $rules) : array<string|int, mixed>
Parameters
$data : mixed
$rules : Validatable
Return values
array<string|int, mixed>

validate_cnpj()

public static validate_cnpj(string $cnpj) : bool
Parameters
$cnpj : string
Return values
bool

validate_cpf()

public static validate_cpf(string $cpf) : bool
Parameters
$cpf : string
Return values
bool

        
On this page

Search results