public function delete($id) { $db = new DB(); $this->delCartForUser($id); $this->delUserCategoryExclusions($id); $rc = new ReleaseComments(); $rc->deleteCommentsForUser($id); $um = new UserMovies(); $um->delMovieForUser($id); $us = new UserSeries(); $us->delShowForUser($id); $forum = new Forum(); $forum->deleteUser($id); $db->query(sprintf("delete from users where ID = %d", $id)); }
public function delete($id) { $this->delCartForUser($id); $this->delUserCategoryExclusions($id); $this->delDownloadRequests($id); $this->delApiRequests($id); $rc = new ReleaseComments(); $rc->deleteCommentsForUser($id); $um = new UserMovies(); $um->delMovieForUser($id); $us = new UserSeries(); $us->delShowForUser($id); $forum = new Forum(); $forum->deleteUser($id); $this->pdo->queryExec(sprintf("DELETE from users where id = %d", $id)); }