09-28-2019, 11:27 PM
a quick look at the other existing validation functions leads me to believe that the parameters are "just there", the one you are looking for is not a workflow entity object, I'd say it is just an array of fields, like this:
field triggering the validation, value to be validated, array with the other parameters in map, array of all the other fields
but to make sure log them to the log file:
function validaCPF($field, $cpf, $params, $fields) {
global $log;
$log->fatal($field);
$log->fatal($cpf);
$log->fatal($params);
$log->fatal($fields);
...
field triggering the validation, value to be validated, array with the other parameters in map, array of all the other fields
but to make sure log them to the log file:
function validaCPF($field, $cpf, $params, $fields) {
global $log;
$log->fatal($field);
$log->fatal($cpf);
$log->fatal($params);
$log->fatal($fields);
...
Joe
TSolucio
TSolucio