• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/recyclebin/contact.php
  • Класс: Bitrix\Crm\Integration\Recyclebin\Contact
  • Вызов: Contact::moveFromRecyclebin
static function moveFromRecyclebin(Recyclebin\Internals\Entity $entity)
{
	if($entity->getEntityType() !== self::getEntityName())
	{
		return false;
	}

	$entityID = (int)$entity->getEntityId();
	if($entityID <= 0)
	{
		return false;
	}

	return Crm\Recycling\ContactController::getInstance()->recover(
		$entityID,
		array(
			'ID' => $entity->getId(),
			'SLOTS' => self::prepareDataSlots($entity),
			'SLOT_MAP' => self::prepareDataSlotMap($entity),
			'FILES' => $entity->getFiles()
		)
	);
}