original_string: protected function fill_instance_data(\cm_info $cm) {
          global $DB;
  
          if (!isset($this->instancedata[$cm->instance])) {
              $this->instancedata[$cm->instance] = $DB->get_record($this->get_activity_type(), array('id' => $cm->instance),
                  '*', MUST_EXIST);
          }
      }
code: protected function fill_instance_data(\cm_info $cm) {
          global $DB;
  
          if (!isset($this->instancedata[$cm->instance])) {
              $this->instancedata[$cm->instance] = $DB->get_record($this->get_activity_type(), array('id' => $cm->instance),
                  '*', MUST_EXIST);
          }
      }
code_tokens: protected function fill_instance_data ( \ cm_info $ cm ) { global $ DB ; if ( ! isset ( $ this -> instancedata [ $ cm -> instance ] ) ) { $ this -> instancedata [ $ cm -> instance ] = $ DB -> get_record ( $ this -> get_activity_type ( ) , array ( 'id' => $ cm -> instance ) , '*' , MUST_EXIST ) ; } }
docstring: Fills in activity instance data.
  
  @param \cm_info $cm
  @return void
docstring_tokens: Fills in activity instance data .