implement clean deletion of Seminaries

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

View file

@ -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)
)
);
}
}
?>