method
public
static
Datetime::formatValueMultiple()
Сигнатура
public static formatValueMultiple(FieldType $fieldType, mixed $value[, string $format = 'printable' ]) : string
Параметры
$fieldType
FieldType
Тип поля документа.
$value
mixed
Значение поля.
$format
string
= 'printable'
Имя формата.
Возвращаемое значение
string
Как применяется в Datetime
Datetime::formatValueMultiple() — метод класса \Bitrix\Bizproc\BaseType\Datetime модуля «Бизнес-процессы».
Статический метод — вызывается через имя класса Datetime, без создания объекта.
use Bitrix\Main\Loader;
use Bitrix\Bizproc\BaseType\Datetime;
Loader::includeModule('bizproc');
$fieldType = null; // FieldType
$value = null;
$result = Datetime::formatValueMultiple($fieldType, $value);
// $result: stringДругие методы Datetime
addError()addErrors()addFormat()canRenderControl()clearValueMultiple()clearValueSingle()compareValues()convertFrom()convertPropertyToView()convertTo()convertValueMultiple()convertValueSingle()
formatValueMultiple() есть и у других классов модуля «Бизнес-процессы»: Base, BoolType, Date, Double, File, InternalSelect, IntType, Select.
Исходный файл: source/bizproc/lib/basetype/datetime.php:123

