• Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/lib/basetype/base.php
  • Класс: BitrixBizprocBaseTypeBase
  • Вызов: Base::formatValueSingle
static function formatValueSingle(FieldType $fieldType, $value, $format = 'printable')
{
	$callable = static::getFormatCallable($format);
	$value = static::toSingleValue($fieldType, $value);

	if (is_callable($callable))
	{
		return call_user_func($callable, $fieldType, $value);
	}

	//return original value if format not found
	return $value;
}