Table of Contents
Constants
-
RULE_EMAIL
: mixed = 'email'
-
RULE_MATCH
: mixed = 'match'
-
RULE_MAX
: mixed = 'max'
-
RULE_MIN
: mixed = 'min'
-
RULE_REQUIRED
: mixed = 'required'
-
RULE_UNIQUE
: mixed = 'unique'
Properties
-
$errors
: array<string|int, mixed>
Methods
-
addError()
: mixed
-
attributes()
: mixed
-
errorMessage()
: mixed
-
errorMessages()
: mixed
-
form()
: array<string|int, mixed>
-
getFirstError()
: mixed
-
getInputInnerAttribute()
: string|false
-
getInputInnerAttributes()
: string|false
-
getInputInnerType()
: string|false
-
getInputOuterAttribute()
: string|false
-
getInputOuterAttributes()
: string|false
-
getInputOuterType()
: string|false
-
getInputTargetAttribute()
: string|false
-
getInputTargetAttributes()
: string|false
-
getInputTargetType()
: string|false
-
getLabel()
: mixed
-
getOptionSelects()
: array<string|int, mixed>|false
-
getProperty()
: string|false
-
hasError()
: mixed
-
labels()
: mixed
-
loadData()
: mixed
-
property()
: string
-
rules()
: mixed
-
validate()
: mixed
-
addErrorByRule()
: mixed
RULE_EMAIL
public
mixed
RULE_EMAIL
= 'email'
RULE_MATCH
public
mixed
RULE_MATCH
= 'match'
RULE_MAX
public
mixed
RULE_MAX
= 'max'
RULE_MIN
public
mixed
RULE_MIN
= 'min'
RULE_REQUIRED
public
mixed
RULE_REQUIRED
= 'required'
RULE_UNIQUE
public
mixed
RULE_UNIQUE
= 'unique'
$errors
public
array<string|int, mixed>
$errors
= []
addError()
public
addError(string $attribute, string $message) : mixed
Parameters
-
$attribute
: string
-
-
$message
: string
-
attributes()
public
static attributes() : mixed
errorMessage()
public
errorMessage(mixed $rule) : mixed
Parameters
-
$rule
: mixed
-
errorMessages()
public
errorMessages() : mixed
public
form() : array<string|int, mixed>
Return values
array<string|int, mixed>
getFirstError()
public
getFirstError(mixed $attribute) : mixed
Parameters
-
$attribute
: mixed
-
public
getInputInnerAttribute(string $property) : string|false
Parameters
-
$property
: string
-
Return values
string|false
public
getInputInnerAttributes() : string|false
Return values
string|false
public
getInputInnerType() : string|false
Return values
string|false
public
getInputOuterAttribute(string $property) : string|false
Parameters
-
$property
: string
-
Return values
string|false
public
getInputOuterAttributes() : string|false
Return values
string|false
public
getInputOuterType() : string|false
Return values
string|false
public
getInputTargetAttribute(string $property) : string|false
Parameters
-
$property
: string
-
Return values
string|false
public
getInputTargetAttributes() : string|false
Return values
string|false
public
getInputTargetType() : string|false
Return values
string|false
getLabel()
public
getLabel(mixed $attribute) : mixed
Parameters
-
$attribute
: mixed
-
getOptionSelects()
public
getOptionSelects(string $attribute) : array<string|int, mixed>|false
Parameters
-
$attribute
: string
-
Return values
array<string|int, mixed>|false
getProperty()
public
getProperty(string $attribute, string $property) : string|false
Parameters
-
$attribute
: string
-
-
$property
: string
-
Return values
string|false
hasError()
public
hasError(mixed $attribute) : mixed
Parameters
-
$attribute
: mixed
-
labels()
public
labels() : mixed
loadData()
public
loadData(mixed $data) : mixed
Parameters
-
$data
: mixed
-
property()
public
property(string $attribute) : string
Parameters
-
$attribute
: string
-
rules()
public
rules() : mixed
validate()
public
validate() : mixed
addErrorByRule()
protected
addErrorByRule(string $attribute, string $rule[, mixed $params = [] ]) : mixed
Parameters
-
$attribute
: string
-
-
$rule
: string
-
-
$params
: mixed
= []
-