Documentation

getFieldByColumnType

\Bitrix\Main\Entity\ScalarField public
\Bitrix\Main\DB\MysqliSqlHelper::getFieldByColumnType(
 string $name,
 mixed $type,
 array $parameters = null
);

This non-static method returns instance of a descendant fromEntity\ScalarField that matches database type.

Parameters

ParameterDescriptionVersion
$nameName of database column.
$typeDatabase type.
$parametersAdditional information.

Example



© «Bitrix24», 2001-2024
Up