Commit f0e3630a authored by Олег Гиммельшпах's avatar Олег Гиммельшпах

Merge branch 'master' of git.task-on.com:ktask/task-on.com

parents 27b74c59 702faf42
...@@ -16,9 +16,17 @@ class DefaultController extends BaseController ...@@ -16,9 +16,17 @@ class DefaultController extends BaseController
public static function actionsTitles(){ public static function actionsTitles(){
return [ return [
'Index' => 'Главная страница модуля', 'Index' => 'Главная страница модуля',
'Rechecktriggers' => 'Запуск проверки срабатывания триггеров' 'Rechecktriggers' => 'Запуск проверки срабатывания триггеров',
'Inittrigger' => 'Init trigger By id'
]; ];
} }
public function actionInittrigger($id){
/** @var TriggerTrigger $trigger */
$trigger = TriggerTrigger::findOne($id);
$trigger->initAction();
}
/** /**
* Renders the index view for the module * Renders the index view for the module
* @return string * @return string
......
...@@ -206,7 +206,7 @@ class TriggerTrigger extends \common\components\ActiveRecordModel ...@@ -206,7 +206,7 @@ class TriggerTrigger extends \common\components\ActiveRecordModel
* Тут выполняем то, что произойдет когда триггер сработает * Тут выполняем то, что произойдет когда триггер сработает
* @param $message * @param $message
*/ */
public function initAction($message){ public function initAction($message=null){
echo "ASD"; echo "ASD";
} }
} }
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