• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/integration/socialnetwork/logdestination.php
  • Класс: BitrixTasksIntegrationSocialNetworkLogDestination
  • Вызов: LogDestination::fillUsers
private function fillUsers(): self
{
	$destinationParams = $this->getDestinationParams();

	if (BitrixTasksIntegrationExtranetUser::isExtranet())
	{
		$this->destination["EXTRANET_USER"] = "Y";
		$this->destination["USERS"] = CSocNetLogDestination::getExtranetUser($destinationParams);
		return $this;
	}

	$this->destination["EXTRANET_USER"] = "N";

	$destUser = [];
	foreach ($this->destination["LAST"]["USERS"] as $value)
	{
		$destUser[] = str_replace("U", "", $value);
	}

	$destinationParams = array_merge($destinationParams, ["id" => $destUser]);

	$this->destination["USERS"] = CSocNetLogDestination::getUsers($destinationParams);

	CSocNetLogDestination::fillEmails($this->destination);

	return $this;
}