Documentation

Model
in package

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

Constants

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'

Properties

$errors

public array<string|int, mixed> $errors = []

Methods

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

form()

public form() : array<string|int, mixed>
Return values
array<string|int, mixed>

getFirstError()

public getFirstError(mixed $attribute) : mixed
Parameters
$attribute : mixed

getInputInnerAttribute()

public getInputInnerAttribute(string $property) : string|false
Parameters
$property : string
Return values
string|false

getInputInnerAttributes()

public getInputInnerAttributes() : string|false
Return values
string|false

getInputInnerType()

public getInputInnerType() : string|false
Return values
string|false

getInputOuterAttribute()

public getInputOuterAttribute(string $property) : string|false
Parameters
$property : string
Return values
string|false

getInputOuterAttributes()

public getInputOuterAttributes() : string|false
Return values
string|false

getInputOuterType()

public getInputOuterType() : string|false
Return values
string|false

getInputTargetAttribute()

public getInputTargetAttribute(string $property) : string|false
Parameters
$property : string
Return values
string|false

getInputTargetAttributes()

public getInputTargetAttributes() : string|false
Return values
string|false

getInputTargetType()

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
Return values
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 = []
On this page

Search results