/** * Удаление теста * @return void */ public function removeAction() { if ($this->_authorize('test', 'remove')) { $objTests = new Tests(); $arrParams = $this->getRequest()->getParams(); if (array_key_exists('testId', $arrParams) && !empty($arrParams['testId'])) { $objTests->removeTestById((int) $arrParams['testId']); } $this->_forward('index', 'test'); } }