public function restoreArchiveAction() { $this->accessRights(43); $this->childModuleAccessRights(42, 'restore'); //Accept Child Module ID & it's Actions: add, edit, view, disable $archive_id = $this->getRequest()->getPost('cbox'); $adapter = new ArchiveTable($this->serviceLocator()); if ($adapter->restoreArchiveToArticleList($archive_id)) { foreach ($archive_id as $id_ray) { $news_get_data = $adapter->getNews($id_ray); foreach ($news_get_data as $news_data) { $news_title = $news_data['title']; } $this->save_to_audit_trail($news_title, '--', '--', 'restore archive', 42); } } $this->flashMessenger()->addMessage(['content' => 'News has been restored', 'type' => 'success']); $this->redirect()->toRoute('archive'); }