deleteSpamComments() 공개 정적인 메소드

Delete all spam
public static deleteSpamComments ( )
예제 #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');
 }