method
public
IntegerField::getConnection()
Сигнатура
public getConnection() : Connection
Возвращаемое значение
Connection
Как применяется в IntegerField
IntegerField::getConnection() — метод класса \Bitrix\Main\ORM\Fields\IntegerField модуля «Главный модуль». IntegerField: Класс поля сущности для типа данных integer.
Метод объекта: сначала нужен экземпляр IntegerField.
use Bitrix\Main\ORM\Fields\IntegerField;
/** @var IntegerField $object */
$result = $object->getConnection();
// $result: ConnectionДругие методы IntegerField
addFetchDataModifier()addSaveDataModifier()addValidator()cast()Строго приводит значение к типу поля.configureAutocomplete()configureBinary()configureColumnName()configureDefaultValue()configureFulltext()configureNullable()configurePrimary()configurePrivate()
getConnection() есть и у других классов модуля «Главный модуль»: Application, ArrayField, BooleanField, ConnectionPool, CryptoField, DateField, DatetimeField, DecimalField.
Исходный файл: source/main/lib/orm/fields/integerfield.php:638

