deleteSpamComments() public static method

Delete all spam
public static deleteSpamComments ( )
Beispiel #1
0
 /**
  * Execute the action
  */
 public function execute()
 {
     parent::execute();
     BackendBlogModel::deleteSpamComments();
     // item was deleted, so redirect
     $this->redirect(BackendModel::createURLForAction('Comments') . '&report=deleted-spam#tabSpam');
 }