original_string: public function process_alignment($data) {
          global $DB;
  
          $data = (object)$data;
          $params = array(
                  'badgeid'           => $this->get_new_parentid('badge'),
                  'targetname'        => $data->targetname,
                  'targeturl'         => $data->targeturl,
                  'targetdescription' => $data->targetdescription,
                  'targetframework'   => $data->targetframework,
                  'targetcode'        => $data->targetcode
          );
          $newid = $DB->insert_record('badge_alignment', $params);
          $this->set_mapping('alignment', $data->id, $newid);
      }
code: public function process_alignment($data) {
          global $DB;
  
          $data = (object)$data;
          $params = array(
                  'badgeid'           => $this->get_new_parentid('badge'),
                  'targetname'        => $data->targetname,
                  'targeturl'         => $data->targeturl,
                  'targetdescription' => $data->targetdescription,
                  'targetframework'   => $data->targetframework,
                  'targetcode'        => $data->targetcode
          );
          $newid = $DB->insert_record('badge_alignment', $params);
          $this->set_mapping('alignment', $data->id, $newid);
      }
code_tokens: public function process_alignment ( $ data ) { global $ DB ; $ data = ( object ) $ data ; $ params = array ( 'badgeid' => $ this -> get_new_parentid ( 'badge' ) , 'targetname' => $ data -> targetname , 'targeturl' => $ data -> targeturl , 'targetdescription' => $ data -> targetdescription , 'targetframework' => $ data -> targetframework , 'targetcode' => $ data -> targetcode ) ; $ newid = $ DB -> insert_record ( 'badge_alignment' , $ params ) ; $ this -> set_mapping ( 'alignment' , $ data -> id , $ newid ) ; }
docstring: Link to an alignment for a badge.
  
  @param mixed $data
  @return void
docstring_tokens: Link to an alignment for a badge .