public function get_right_icons_row($rows=array()) {
        global $USER;
        if ($USER->gradeediting[$this->courseid]) {
            $iconsrow = new html_table_row();
            $iconsrow->attributes['class'] = 'controls';

            foreach ($this->gtree->items as $itemid => $unused) {
                // emulate grade element
                $item = $this->gtree->get_item($itemid);

                $eid = $this->gtree->get_item_eid($item);
                $element = $this->gtree->locate_element($eid);
                $itemcell = new html_table_cell();
                $itemcell->attributes['class'] = 'controls icons i'.$itemid;
                $itemcell->text = $this->get_icons($element);
                $iconsrow->cells[] = $itemcell;
            }
            $rows[] = $iconsrow;
        }
        return $rows;
    }
public function get_right_icons_row($rows=array()) {
        global $USER;
        if ($USER->gradeediting[$this->courseid]) {
            $iconsrow = new html_table_row();
            $iconsrow->attributes['class'] = 'controls';

            foreach ($this->gtree->items as $itemid => $unused) {
                // emulate grade element
                $item = $this->gtree->get_item($itemid);

                $eid = $this->gtree->get_item_eid($item);
                $element = $this->gtree->locate_element($eid);
                $itemcell = new html_table_cell();
                $itemcell->attributes['class'] = 'controls icons i'.$itemid;
                $itemcell->text = $this->get_icons($element);
                $iconsrow->cells[] = $itemcell;
            }
            $rows[] = $iconsrow;
        }
        return $rows;
    }
public function get_right_icons_row ( $ rows = array ( ) ) { global $ USER ; if ( $ USER -> gradeediting [ $ this -> courseid ] ) { $ iconsrow = new html_table_row ( ) ; $ iconsrow -> attributes [ 'class' ] = 'controls' ; foreach ( $ this -> gtree -> items as $ itemid => $ unused ) { // emulate grade element $ item = $ this -> gtree -> get_item ( $ itemid ) ; $ eid = $ this -> gtree -> get_item_eid ( $ item ) ; $ element = $ this -> gtree -> locate_element ( $ eid ) ; $ itemcell = new html_table_cell ( ) ; $ itemcell -> attributes [ 'class' ] = 'controls icons i' . $ itemid ; $ itemcell -> text = $ this -> get_icons ( $ element ) ; $ iconsrow -> cells [ ] = $ itemcell ; } $ rows [ ] = $ iconsrow ; } return $ rows ; }
Builds and return the row of icons when editing is on, for the right part of the grader report.
@param array $rows The Array of rows for the right part of the report
@return array Array of rows for the right part of the report
Builds and return the row of icons when editing is on for the right part of the grader report .