Vote::getCopiedIdsRelation

  1. Bitrix24 API (v. 23.675.0)
  2. vote
  3. Vote
  4. getCopiedIdsRelation
  • Модуль: vote
  • Путь к файлу: ~/bitrix/modules/vote/lib/copy/implement/vote.php
  • Класс: BitrixVoteCopyImplementVote
  • Вызов: Vote::getCopiedIdsRelation
private function getCopiedIdsRelation(Result $result)
{
	$copiedIdsRelation = [];

	$resultData = $result->getData();
	foreach ($resultData as $data)
	{
		array_walk($data, function($item, $key) use (&$copiedIdsRelation) {
			if (is_array($item))
			{
				$copiedIdsRelation["answer"] = $item;
			}
			else
			{
				$copiedIdsRelation[$key] = $item;
			}
		});
	}

	return $copiedIdsRelation;
}

Добавить комментарий