Skip to content

Commit fb32c1d

Browse files
committed
Добавление агента
1 parent 8de187e commit fb32c1d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

install/index.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,28 @@ public function uninstallDB()
9696
// Ошибки типа таблица не найдена - глушатся.
9797
}
9898
}
99+
100+
/**
101+
* @inheritDoc
102+
*/
103+
public function InstallEvents()
104+
{
105+
\CAgent::AddAgent(
106+
'\\Proklung\\Error\\Notifier\\ClearTableAgent::clear();',
107+
'proklung.error.notifier',
108+
'N',
109+
10 * 24 * 3600,
110+
'',
111+
'Y',
112+
''
113+
);
114+
}
115+
116+
/**
117+
* @inheritDoc
118+
*/
119+
public function UnInstallEvents()
120+
{
121+
\CAgent::RemoveModuleAgents('proklung.error.notifier');
122+
}
99123
}

0 commit comments

Comments
 (0)