implement clean deletion of Seminaries
This commit is contained in:
parent
4dca3e8089
commit
60b7f12f79
25 changed files with 410 additions and 9 deletions
|
|
@ -218,6 +218,25 @@
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Delete Avatars.
|
||||
*
|
||||
* @param array $charactertypeIds List of Charactertype-IDs to delete Avatars of
|
||||
* @param array $xplevelIds List of XP-level-IDs to delete Avatars of
|
||||
*/
|
||||
public function deleteAvatars($charactertypeIds, $xplevelIds)
|
||||
{
|
||||
$this->db->query(
|
||||
sprintf(
|
||||
'DELETE FROM avatars '.
|
||||
'WHERE charactertype_id IN (%s) OR xplevel_id IN (%s)',
|
||||
implode(',', $charactertypeIds),
|
||||
implode(',', $xplevelIds)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in a new issue