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
convertFromDb
mixed public \Bitrix\Main\DB\SqlHelper::convertFromDb( mixed $value, \Bitrix\Main\Entity\ScalarField $field );
This non-static method returns the $value
parameter, converted to the type matching to the $field
parameter type.
For example, if $field
is Entity\DatetimeField
, the the returned value will have the type, set in \Main\Type\DateTime.
Parameters
Parameter | Description | Version |
---|---|---|
$value | Value to be converted | |
$field | "Source" type. |
Examples
© «Bitrix24», 2001-2024
Up