implement clean deletion of Seminaries
This commit is contained in:
parent
a2c2111d63
commit
e1e64e8426
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…
Add table
Add a link
Reference in a new issue