D7 API documentation
What's New
Modules
Main module in old core
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 );
This non-static method converts values to the string according to the column type used in a SQL query.
Parameters
Parameter | Description | Version |
---|---|---|
$value | Value to be converted | |
$field | "Source" type. |
Exceptions
Examples
© «Bitrix24», 2001-2024
Up