- Добавлен метод запускающий конкретный триггер

parent 8868dbd2
......@@ -18,12 +18,16 @@ class DefaultController extends BaseController
return [
'Index' => 'Главная страница модуля',
'Rechecktriggers' => 'Запуск проверки срабатывания триггеров',
'Dropschedule' => 'Drop schedule By id'
'Inittrigger' => 'Initiate trigger By id'
];
}
public function actionDropschedule($id){
TriggerSchedule::findOne($id)->delete();
public function actionInittrigger($id){
if (\Yii::$app->request->isAjax) {
/** @var TriggerTrigger $trigger */
$trigger = TriggerTrigger::findOne($id);
$trigger->initAction();
}
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment