method
public
FieldType::convertValue()
Класс: \Bitrix\Bizproc\FieldType
Сигнатура
public convertValue(mixed $value, string $toTypeClass) : array<string|int, mixed>|bool|float|int|string
Параметры
$value
mixed
Значение поля.
$toTypeClass
string
Имя класса типа.
Возвращаемое значение
array<string|int, mixed>|bool|float|int|string
Как применяется в FieldType
FieldType::convertValue() — метод класса \Bitrix\Bizproc\FieldType модуля «Бизнес-процессы».
Метод объекта: сначала нужен экземпляр FieldType.
use Bitrix\Main\Loader;
use Bitrix\Bizproc\FieldType;
Loader::includeModule('bizproc');
/** @var FieldType $object */
$value = null;
$toTypeClass = '';
$result = $object->convertValue($value, $toTypeClass);
// $result: array<string|int, mixed>|bool|float|int|stringДругие методы FieldType
canRenderControl()clearValue()convertPropertyToView()convertUfType()externalizeValue()extractValue()formatValue()getBaseType()getBaseTypesMap()Возвращает список поддерживаемых базовых типов.getDescription()getDocumentId()getDocumentType()
Исходный файл: source/bizproc/lib/fieldtype.php:324

