Документация по D7
История изменений
Модули
Главный модуль в старом ядре
addSecondsToDateTime
castToChar
convertFromDb
convertToDb
forSql
formatDate
getAliasLength
getAscendingOrder
getCharToDateFunction
getColumnTypeByField
getConcatFunction
getConverter
getCurrentDateFunction
getCurrentDateTimeFunction
getDateToCharFunction
getDatetimeToDateFunction
getDescendingOrder
getFieldByColumnType
getIsNullFunction
getLeftQuote
getLengthFunction
getQueryDelimiter
getRightQuote
getSubstrFunction
getTopSql
prepareAssignment
prepareInsert
prepareMerge
prepareUpdate
quote
softCastTextToChar
convertToDb
string public \Bitrix\Main\DB\SqlHelper::convertToDb( mixed $value, \Bitrix\Main\Entity\ScalarField $field );
Нетатический метод конвертирует значение в строку, соответствующую типу колонки используемой в SQL запросе.
Параметры
Параметр | Описание | Версия |
---|---|---|
$value | Значение для конвертации | |
$field | Тип "источника". |
Исключения
Примеры
© «Битрикс», 2001-2025, «1С-Битрикс», 2025
Наверх