...Человеческий поиск в разработке...
- Модуль: 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; }