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