deleteSpamComments() public static method

Delete all spam
public static deleteSpamComments ( )
Exemplo n.º 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');
 }