Documentation

CFormValidator

The CFormValidator class is used with validators.

Methods

Method Description
Clear Clears the list of validators assigned to a question.
Execute Applies the validator to a value.
GetAllList Returns the full list (optionally filtered) of registered validators.
GetList Returns the list of validators assigned to a question.
GetListForm Returns the list of validators assigned to form fields.
GetSettings Returns an array of validator parameters.
GetSettingsArray Returns an array of validator settings applied to a certain question.
GetSettingsString Returns a string of validator settings to be stored in the database.
Set Attaches a validator with the specified settings to a question.
SetBatch Attaches a set of validators with the specified settings to a question.
© «Bitrix24», 2001-2024