/**
  * Interface to display and manage the spam keywords on the site.
  */
 public function spam_keywords()
 {
     $view = $this->getView();
     if (!\Core\user()->checkAccess('g:admin')) {
         return View::ERROR_ACCESSDENIED;
     }
     $threshold = \ConfigHandler::Get('/security/spam_threshold');
     $table = new Core\ListingTable\Table();
     $table->setLimit(100);
     // Set the model that this table will be pulling data from.
     $table->setModelName('SpamHamKeywordModel');
     // Add in all the columns for this listing table.
     $table->addColumn('Keyword', 'keyword');
     $table->addColumn('Score', 'score');
     // This page will also feature a quick-edit feature.
     $table->setEditFormCaller('SecurityController::SpamKeywordsSave');
     $table->loadFiltersFromRequest();
     $view->addControl('Import Spam Training', '/security/spam/train', 'strikethrough');
     $view->mastertemplate = 'admin';
     $view->title = 'Spam Keywords';
     $view->assign('listing', $table);
     $view->assign('threshold', $threshold);
 }