• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/util/user.php
  • Класс: BitrixTasksUtilUser
  • Вызов: User::setOccurAsId
static function setOccurAsId($userId = 0)
{
	$userId = intval($userId);

	$key = static::getOccurAsIdKey();

	// todo: use user cache here, when implemented
	if(!$userId || !CUser::getById($userId)->fetch())
	{
		$userId = null;
	}

	CTasksPerHitOption::set('tasks', $key, $userId);

	return $key;
}