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
Parameter | Description |
---|---|
Action | Character string with the name of verified method. |
arFields | Array of fields which will used in the verified method. |
Returned value
Returnstrue
, 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