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

