Documentation

convertToDb

string public
\Bitrix\Main\DB\SqlHelper::convertToDb(
 mixed $value,
 \Bitrix\Main\Entity\ScalarField $field
);

This non-static method converts values to the string according to the column type used in a SQL query.

Parameters

ParameterDescriptionVersion
$valueValue to be converted
$field"Source" type.

Exceptions

Examples



© «Bitrix24», 2001-2024
Up