Documentation

CheckFields

bool
CBlogImage::CheckFields(
 string Action
 array arFields
);

The method verifies the option to execute various operations (ADD, UPDATE, DELETE) for the specified fields. The method is in-built into Add, Update and Delete operations, but can be called separately. Static method.

Method parameters

ParameterDescription
Action Character string with the name of verified method.
arFields Array of fields which will used in the verified method.

Returned value

Returns true, if it is possible to execute the operation, otherwise returns false.

Examples of use

Verify the option of calling the Add method and retrieving error message in case of failure:

if (!CBlogImage::CheckFields("ADD", $arFields))
{
	echo 'Unable to add record';
}


© «Bitrix24», 2001-2024
Up