Return values:
o array, keys - field path or formset id, values - array of errors
when $isPostSource is true values is an empty array to allow for error list
cleanup in HTML document
o false - when no validators match name(s) given by $validator_id
public static validate ( PMA\libraries\config\ConfigFile $cf, string | array $validator_id, &$values, boolean $isPostSource ) : boolean | array | ||
$cf | PMA\libraries\config\ConfigFile | Config file instance |
$validator_id | string | array | ID of validator(s) to run |
$isPostSource | boolean | tells whether $values are directly from POST request |
Результат | boolean | array |