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