Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 194... Línea 194...
194
                if ($context) {
194
                if ($context) {
195
                    $contextname = $context->get_context_name(true);
195
                    $contextname = $context->get_context_name(true);
196
                    if ($url = $context->get_url()) {
196
                    if ($url = $context->get_url()) {
197
                        $contextname = html_writer::link($url, $contextname);
197
                        $contextname = html_writer::link($url, $contextname);
198
                    }
198
                    }
199
                } else {
199
                } else if (!$contextname = \report_log\helper::get_context_fallback($event)) {
200
                    $contextname = get_string('other');
200
                    $contextname = get_string('other');
201
                }
201
                }
202
            }
202
            }
203
        } else {
203
        } else {
204
            $contextname = get_string('other');
204
            $contextname = get_string('other');
Línea 245... Línea 245...
245
     *
245
     *
246
     * @param stdClass $event event data.
246
     * @param stdClass $event event data.
247
     * @return string HTML for the description column
247
     * @return string HTML for the description column
248
     */
248
     */
249
    public function col_description($event) {
249
    public function col_description($event) {
250
        // Description.
-
 
251
        return $event->get_description();
250
        return format_text($event->get_description(), FORMAT_PLAIN);
252
    }
251
    }
Línea 253... Línea 252...
253
 
252
 
254
    /**
253
    /**
255
     * Generate the origin column.
254
     * Generate the origin column.
Línea 307... Línea 306...
307
        if (!empty($this->filterparams->courseid)) {
306
        if (!empty($this->filterparams->courseid)) {
308
            $joins[] = "courseid = :courseid";
307
            $joins[] = "courseid = :courseid";
309
            $params['courseid'] = $this->filterparams->courseid;
308
            $params['courseid'] = $this->filterparams->courseid;
310
        }
309
        }
Línea -... Línea 310...
-
 
310
 
-
 
311
        // Add filters for missing/deleted courses in site context.
-
 
312
        if (!empty($this->filterparams->sitecoursefilter)) {
-
 
313
            $joins[] = "courseid = :courseid";
-
 
314
            $params['courseid'] = $this->filterparams->sitecoursefilter;
-
 
315
        }
311
 
316
 
312
        // Getting all members of a group.
317
        // Getting all members of a group.
313
        [
318
        [
314
            'joins' => $groupjoins,
319
            'joins' => $groupjoins,
315
            'params' => $groupparams,
320
            'params' => $groupparams,