...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_activity.php
- Класс: \CAllCrmActivity
- Вызов: CAllCrmActivity::IsBindingsEquals
static function IsBindingsEquals(array $first, array $second) { if(count($first) !== count($second)) { return false; } foreach($first as $firstItem) { $firstOwnerTypeID = isset($firstItem['OWNER_TYPE_ID']) ? (int)$firstItem['OWNER_TYPE_ID'] : 0; $firstOwnerID = isset($firstItem['OWNER_ID']) ? (int)$firstItem['OWNER_ID'] : 0; $found = false; foreach($second as $secondItem) { $secondOwnerTypeID = isset($secondItem['OWNER_TYPE_ID']) ? (int)$secondItem['OWNER_TYPE_ID'] : 0; $secondOwnerID = isset($secondItem['OWNER_ID']) ? (int)$secondItem['OWNER_ID'] : 0; if($firstOwnerTypeID === $secondOwnerTypeID && $firstOwnerID === $secondOwnerID) { $found = true; break; } } if(!$found) { return false; } } return true; }