original_string: public function process_enrol_lti_users($data) {
          global $DB;
  
          $data = (object) $data;
  
          $data->userid = $this->get_mappingid('user', $data->userid);
          $data->toolid = $this->get_mappingid('enrol_lti_tool', $data->toolid);
          $data->timecreated = time();
  
          $DB->insert_record('enrol_lti_users', $data);
      }
code: public function process_enrol_lti_users($data) {
          global $DB;
  
          $data = (object) $data;
  
          $data->userid = $this->get_mappingid('user', $data->userid);
          $data->toolid = $this->get_mappingid('enrol_lti_tool', $data->toolid);
          $data->timecreated = time();
  
          $DB->insert_record('enrol_lti_users', $data);
      }
code_tokens: public function process_enrol_lti_users ( $ data ) { global $ DB ; $ data = ( object ) $ data ; $ data -> userid = $ this -> get_mappingid ( 'user' , $ data -> userid ) ; $ data -> toolid = $ this -> get_mappingid ( 'enrol_lti_tool' , $ data -> toolid ) ; $ data -> timecreated = time ( ) ; $ DB -> insert_record ( 'enrol_lti_users' , $ data ) ; }
docstring: Processes LTI users element data
  
  @param array|stdClass $data The data to insert as a comment
docstring_tokens: Processes LTI users element data