• Модуль: rpa
  • Путь к файлу: ~/bitrix/modules/rpa/lib/integration/bizproc/document/item.php
  • Класс: BitrixRpaIntegrationBizprocDocumentItem
  • Вызов: Item::addUserPrefix
static function addUserPrefix($value)
{
	if (is_scalar($value))
	{
		$value = $value > 0 ? self::BP_USER_PREFIX.$value : null;
	}
	if (is_array($value))
	{
		foreach ($value as $i => $item)
		{
			$value[$i] = $item > 0 ? self::BP_USER_PREFIX.$item : null;
		}
		$value = array_filter($value);
	}

	return $value;
}