implement clean deletion of Seminaries

This commit is contained in:
oliver 2015-08-16 21:27:36 +02:00
commit 60b7f12f79
25 changed files with 410 additions and 9 deletions

View file

@ -231,6 +231,17 @@
$this->db->setAutocommit(true);
}
/**
* Delete all XP-levels of a Seminary.
*
* @param int $seminaryId ID of Seminary to delete XP-levels of
*/
public function deleteXPLevelsOfSeminary($seminaryId)
{
$this->db->query('DELETE FROM xplevels WHERE seminary_id = ?', 'i', $seminaryId);
}
}
?>