method
public
Устаревший
SecretField::getDataType()
Сигнатура
public getDataType() : null|string
Возвращаемое значение
null|string
Как применяется в SecretField
SecretField::getDataType() — метод класса \Bitrix\Main\ORM\Fields\SecretField модуля «Главный модуль». SecretField: Класс поля сущности для типа данных text.
Метод объекта: сначала нужен экземпляр SecretField.
use Bitrix\Main\ORM\Fields\SecretField;
/** @var SecretField $object */
$result = $object->getDataType();
// $result: null|stringДругие методы SecretField
addFetchDataModifier()addSaveDataModifier()addValidator()cast()Строго приводит значение к типу поля.configureAutocomplete()configureBinary()configureColumnName()configureDefaultValue()configureFormat()configureFulltext()configureLong()configureNullable()
getDataType() есть и у других классов модуля «Главный модуль»: ArrayField, BooleanField, CryptoField, DateField, DatetimeField, DecimalField, EnumField, ExpressionField.
Исходный файл: source/main/lib/orm/fields/secretfield.php:569

