original_string: protected function process_mod_grade_item(array $data, array $raw) {
  
          $stashname   = 'gradebook_modgradeitem_'.$data['itemmodule'];
          $stashitemid = $data['iteminstance'];
          $gradeitems  = $this->converter->get_stash_or_default($stashname, $stashitemid, array());
  
          // typically there will be single item with itemnumber 0
          $gradeitems[$data['itemnumber']] = $data;
  
          $this->converter->set_stash($stashname, $gradeitems, $stashitemid);
  
          return $data;
      }
code: protected function process_mod_grade_item(array $data, array $raw) {
  
          $stashname   = 'gradebook_modgradeitem_'.$data['itemmodule'];
          $stashitemid = $data['iteminstance'];
          $gradeitems  = $this->converter->get_stash_or_default($stashname, $stashitemid, array());
  
          // typically there will be single item with itemnumber 0
          $gradeitems[$data['itemnumber']] = $data;
  
          $this->converter->set_stash($stashname, $gradeitems, $stashitemid);
  
          return $data;
      }
code_tokens: protected function process_mod_grade_item ( array $ data , array $ raw ) { $ stashname = 'gradebook_modgradeitem_' . $ data [ 'itemmodule' ] ; $ stashitemid = $ data [ 'iteminstance' ] ; $ gradeitems = $ this -> converter -> get_stash_or_default ( $ stashname , $ stashitemid , array ( ) ) ; // typically there will be single item with itemnumber 0 $ gradeitems [ $ data [ 'itemnumber' ] ] = $ data ; $ this -> converter -> set_stash ( $ stashname , $ gradeitems , $ stashitemid ) ; return $ data ; }
docstring: Processes one GRADE_ITEM of the type 'mod'
docstring_tokens: Processes one GRADE_ITEM of the type mod