public static validate_required ( $value, |
||
$control | The control that defines the value | |
$form | The container that holds the control | |
$warning | string | An optional error message |
Результат | array | An empty array if the value exists, or an array with strings describing the errors |