Documentation

Execute

bool
CFormValidator::Execute(
 array arValidator,
 array arQuestion,
 array arAnswers,
 array arValues,
)

The method Execute executes validator for specified answer values when applied to a question.

Parameters

Parameter Description
arValidator Validator description array; one of the array elements obtained by CFormValidator::GetList. Contains the following parameters:
  • NAME - the validator identifier;
  • PARAMS - an array of values of validator settings.
arQuestion The question description. The parameter is not used in validators shipped with the product, but can be used in custom validators.
arAnswers Array containing descriptions of answers. The parameter is not used in validators shipped with the product, but can be used in custom validators.
arValues An array of answers to a question in the format array('value1', 'value2', .... 'value n').
© «Bitrix24», 2001-2024