Proyectos de Subversion Moodle

Rev

Rev 11 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11 Rev 1441
Línea 95... Línea 95...
95
        $this->sortable(false);
95
        $this->sortable(false);
96
        $this->pageable(true);
96
        $this->pageable(true);
97
    }
97
    }
Línea 98... Línea 98...
98
 
98
 
99
    /**
-
 
100
     * Generate the course column.
-
 
101
     *
-
 
102
     * @deprecated since Moodle 2.9 MDL-48595 - please do not use this function any more.
-
 
103
     */
-
 
104
    public function col_course($event) {
-
 
105
        throw new coding_exception('col_course() can not be used any more, there is no such column.');
-
 
106
    }
-
 
107
 
-
 
108
    /**
99
    /**
109
     * Gets the user full name.
100
     * Gets the user full name.
110
     *
101
     *
111
     * This function is useful because, in the unlikely case that the user is
102
     * This function is useful because, in the unlikely case that the user is
112
     * not already loaded in $this->userfullnames it will fetch it from db.
103
     * not already loaded in $this->userfullnames it will fetch it from db.
Línea 246... Línea 237...
246
                if ($context) {
237
                if ($context) {
247
                    $contextname = $context->get_context_name(true);
238
                    $contextname = $context->get_context_name(true);
248
                    if (empty($this->download) && $url = $context->get_url()) {
239
                    if (empty($this->download) && $url = $context->get_url()) {
249
                        $contextname = html_writer::link($url, $contextname);
240
                        $contextname = html_writer::link($url, $contextname);
250
                    }
241
                    }
251
                } else {
242
                } else if (!$contextname = \report_log\helper::get_context_fallback($event)) {
252
                    $contextname = get_string('other');
243
                    $contextname = get_string('other');
253
                }
244
                }
254
            }
245
            }
255
        } else {
246
        } else {
256
            $contextname = get_string('other');
247
            $contextname = get_string('other');
Línea 427... Línea 418...
427
        $useextendeddbindex = !empty($this->filterparams->userid) && !empty($this->filterparams->modid);
418
        $useextendeddbindex = !empty($this->filterparams->userid) && !empty($this->filterparams->modid);
Línea 428... Línea 419...
428
 
419
 
429
        if (!empty($this->filterparams->courseid) && $this->filterparams->courseid != SITEID) {
420
        if (!empty($this->filterparams->courseid) && $this->filterparams->courseid != SITEID) {
430
            $joins[] = "courseid = :courseid";
421
            $joins[] = "courseid = :courseid";
-
 
422
            $params['courseid'] = $this->filterparams->courseid;
-
 
423
        } else if (!empty($this->filterparams->sitecoursefilter)) {
-
 
424
            // Add filters for missing/deleted courses in site context.
-
 
425
            $joins[] = "courseid = :courseid";
431
            $params['courseid'] = $this->filterparams->courseid;
426
            $params['courseid'] = $this->filterparams->sitecoursefilter;
Línea 432... Línea 427...
432
        }
427
        }
433
 
428
 
434
        if (!empty($this->filterparams->siteerrors)) {
429
        if (!empty($this->filterparams->siteerrors)) {
Línea 529... Línea 524...
529
        // Set initial bars.
524
        // Set initial bars.
530
        if ($useinitialsbar && !$this->is_downloading()) {
525
        if ($useinitialsbar && !$this->is_downloading()) {
531
            $this->initialbars($total > $pagesize);
526
            $this->initialbars($total > $pagesize);
532
        }
527
        }
533
    }
528
    }
534
 
-
 
535
    /**
-
 
536
     * Helper function to create list of course shortname and user fullname shown in log report.
-
 
537
     *
-
 
538
     * This will update $this->userfullnames and $this->courseshortnames array with userfullname and courseshortname (with link),
-
 
539
     * which will be used to render logs in table.
-
 
540
     *
-
 
541
     * @deprecated since Moodle 2.9 MDL-48595 - please do not use this function any more.
-
 
542
     */
-
 
543
    public function update_users_and_courses_used() {
-
 
544
        throw new coding_exception('update_users_and_courses_used() can not be used any more.');
-
 
545
    }
-
 
546
}
529
}