public function deletePosts(array $ids) { DB::delete('blogposts', $ids); foreach ($ids as $id) { Comments_Model::deleteCommentsFor($id, 'blogpost'); } self::updateFeed(); }
public function deletePages(array $ids) { DB::delete('pages', $ids); foreach ($ids as $id) { Comments_Model::deleteCommentsFor($id, 'page'); } }