method
public
static Устаревший
IntegerField::getClassByOldDataType()
Сигнатура
public static getClassByOldDataType(mixed $dateType) : bool
Параметры
$dateType
mixed
Возвращаемое значение
bool
Как применяется в IntegerField
IntegerField::getClassByOldDataType() — метод класса \Bitrix\Main\ORM\Fields\IntegerField модуля «Главный модуль». IntegerField: Класс поля сущности для типа данных integer.
Статический метод — вызывается через имя класса IntegerField, без создания объекта.
use Bitrix\Main\ORM\Fields\IntegerField;
$dateType = null;
$result = IntegerField::getClassByOldDataType($dateType);
// $result: boolДругие методы IntegerField
addFetchDataModifier()addSaveDataModifier()addValidator()cast()Строго приводит значение к типу поля.configureAutocomplete()configureBinary()configureColumnName()configureDefaultValue()configureFulltext()configureNullable()configurePrimary()configurePrivate()
getClassByOldDataType() есть и у других классов модуля «Главный модуль»: ArrayField, BooleanField, CryptoField, DateField, DatetimeField, DecimalField, EnumField, ExpressionField.
Исходный файл: source/main/lib/orm/fields/integerfield.php:609

