- Модуль: bizproc
- Путь к файлу: ~/bitrix/modules/bizproc/classes/general/helper.php
- Класс: CBPHelper
- Вызов: CBPHelper::usersArrayToString
static function usersArrayToString($users, $arWorkflowTemplate, $documentType, $appendId = true)
{
if (static::isEmptyValue($users))
{
return "";
}
if (is_array($users))
{
$users = array_unique($users);
}
$arAllowableUserGroups = [];
$arAllowableUserGroupsTmp = CBPDocument::GetAllowableUserGroups($documentType);
foreach ($arAllowableUserGroupsTmp as $k1 => $v1)
{
$arAllowableUserGroups[mb_strtolower($k1)] = str_replace(",", " ", $v1);
}
return self::UsersArrayToStringInternal($users, $arWorkflowTemplate, $arAllowableUserGroups, $appendId);
}