/** * Removes Test By TestId * * @param int $testId * @return void */ public function removeTestById($testId) { $objQuestions = new Questions(); $objQuestions->removeQuestionsByTestId($testId); /*$objQuestionCategories = new QuestionCategories(); $objQuestionCategories -> removeCategoriesByTestId( $testId );*/ // Удаляем информацию о тесте из БД $where = array('t_id=?' => $testId); $this->delete($where); }