Exemplo n.º 1
0
 function store_record($post)
 {
     // add the record data to the database
     $id = Participants_Db::process_form($post, 'insert');
     // count the insert type for the record
     switch (Participants_Db::$insert_status) {
         case 'insert':
             $this->insert_count++;
             break;
         case 'update':
             $this->update_count++;
             break;
         case 'skip':
             $this->skip_count++;
             break;
     }
 }
 function store_record($post)
 {
     $post['csv_file_upload'] = 'true';
     $post['subsource'] = Participants_Db::PLUGIN_NAME;
     // add the record data to the database
     $id = Participants_Db::process_form($post, 'insert');
     // count the insert type for the record
     switch (Participants_Db::$insert_status) {
         case 'insert':
             $this->insert_count++;
             break;
         case 'update':
             $this->update_count++;
             break;
         case 'skip':
             $this->skip_count++;
             break;
     }
 }