Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 46... Línea 46...
46
     *
46
     *
47
     * @param  \renderer_base $output renderer base output.
47
     * @param  \renderer_base $output renderer base output.
48
     * @return array Data to be used for a template.
48
     * @return array Data to be used for a template.
49
     */
49
     */
50
    public function export_for_template(\renderer_base $output): array {
50
    public function export_for_template(\renderer_base $output): array {
51
        $submissionlink = new moodle_url('/mod/assign/view.php', ['id' => $this->cmid, 'action' => 'grading']);
-
 
52
        $return = ['submissionlink' => $submissionlink->out(false)];
51
        $return = [];
Línea 53... Línea 52...
53
 
52
 
54
        if (has_capability('mod/assign:grade', \context_module::instance($this->cmid))) {
53
        if (has_capability('mod/assign:grade', \context_module::instance($this->cmid))) {
55
            $gradelink = new moodle_url('/mod/assign/view.php', ['id' => $this->cmid, 'action' => 'grader']);
54
            $gradelink = new moodle_url('/mod/assign/view.php', ['id' => $this->cmid, 'action' => 'grader']);
56
            $return['gradelink'] = $gradelink->out(false);
55
            $return['gradelink'] = $gradelink->out(false);