class Field (View source)

Field class

Properties

string $name
string $trans
string $validation_rules

Methods

__construct($name, $trans, $validation_rules = '')

Constructor

Details

__construct($name, $trans, $validation_rules = '')

Constructor

Parameters

$name Field name
$trans Field translation
$validation_rules Field validation rules, possible values: 'required|numeric|string|validEmail|validTel|validUrl|validID|greaterThan()|lessThan()|minLength()|maxLength()'