original_string: public static function load_roles_to_tempids($restoreid, $rolesfile) {
  
          if (!file_exists($rolesfile)) { // Shouldn't happen ever, but...
              throw new backup_helper_exception('missing_roles_xml_file', $rolesfile);
          }
          // Let's parse, custom processor will do its work, sending info to DB
          $xmlparser = new progressive_parser();
          $xmlparser->set_file($rolesfile);
          $xmlprocessor = new restore_roles_parser_processor($restoreid);
          $xmlparser->set_processor($xmlprocessor);
          $xmlparser->process();
      }
code: public static function load_roles_to_tempids($restoreid, $rolesfile) {
  
          if (!file_exists($rolesfile)) { // Shouldn't happen ever, but...
              throw new backup_helper_exception('missing_roles_xml_file', $rolesfile);
          }
          // Let's parse, custom processor will do its work, sending info to DB
          $xmlparser = new progressive_parser();
          $xmlparser->set_file($rolesfile);
          $xmlprocessor = new restore_roles_parser_processor($restoreid);
          $xmlparser->set_processor($xmlprocessor);
          $xmlparser->process();
      }
code_tokens: public static function load_roles_to_tempids ( $ restoreid , $ rolesfile ) { if ( ! file_exists ( $ rolesfile ) ) { // Shouldn't happen ever, but... throw new backup_helper_exception ( 'missing_roles_xml_file' , $ rolesfile ) ; } // Let's parse, custom processor will do its work, sending info to DB $ xmlparser = new progressive_parser ( ) ; $ xmlparser -> set_file ( $ rolesfile ) ; $ xmlprocessor = new restore_roles_parser_processor ( $ restoreid ) ; $ xmlparser -> set_processor ( $ xmlprocessor ) ; $ xmlparser -> process ( ) ; }
docstring: Load the needed role.xml file to backup_ids table for future reference
docstring_tokens: Load the needed role . xml file to backup_ids table for future reference