Exemplo n.º 1
0
 /**
  * This method is called ONLY after ALL validation has
  * passed.  This is the method that allows you to 
  * do something with the data, say insert/update records
  * in the DB.
  */
 function form_action()
 {
     $success = true;
     $result = new SwimResult();
     $result->PurgeResults();
     $this->set_action_message(html_div(sprintf('ft-%s-msg', $result->getAffectedRows() == 0 ? 'warning' : 'note'), sprintf('%d record%s purged from Results database.', $result->getAffectedRows(), $result->getAffectedRows() == 1 ? '' : 's')));
     unset($result);
     return $success;
 }