- Модуль: biconnector
- Путь к файлу: ~/bitrix/modules/biconnector/lib/Configuration/Action.php
- Класс: BitrixBiConnectorConfigurationAction
- Вызов: Action::onBeforeRestApplicationDelete
static function onBeforeRestApplicationDelete(Event $event)
{
$appId = (int)$event->getParameter('ID');
if ($appId > 0)
{
$res = KeyTable::getList(
[
'select' => [
'ID',
],
'filter' => [
'=ACTIVE' => 'Y',
'=APP_ID' => $appId,
],
'order' => [
'ID' => 'DESC',
],
]
);
while ($item = $res->fetch())
{
KeyTable::update(
$item['ID'],
[
'ACTIVE' => 'N',
]
);
}
}
return null;
}