public function actionClearLogs() { $model = new \tables\GeneralLog(); $model->clearLogs(); $this->flashMessenger->add('Logs was successfully cleared.'); $this->redirect($this->makeLink('index/index')); }
public function getCommandTypeOptions(array $out = []) { if (!isset($this->commandTypeOptions)) { $table = new \tables\GeneralLog(); $this->commandTypeOptions = $table->getCommandTypeOptions(); } return array_merge($out, $this->commandTypeOptions); }