* @return grade_category
*/
private function category($item) {
+ global $DB;
+
if (empty($item->categoryid)) {
if ($item->itemtype == 'course') {
return $this->course->fullname;
}
- global $DB;
-
$params = array('id' => $item->iteminstance);
$elem = $DB->get_record('grade_categories', $params);
* @return string
*/
public function pager() {
+ global $OUTPUT;
+
if (!$this->supports_paging()) {
return '';
}
- global $OUTPUT;
-
return $OUTPUT->paging_bar(
count($this->items), $this->page, $this->perpage,
new moodle_url('/grade/report/singleview/index.php', array(