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;
    }
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;
    }
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 ; }
Processes one GRADE_ITEM of the type 'mod'
Processes one GRADE_ITEM of the type mod