Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 137... Línea 137...
137
        capability_manager $capabilitymanager,
137
        capability_manager $capabilitymanager,
138
        rating_manager $ratingmanager,
138
        rating_manager $ratingmanager,
139
        sorter_entity $exportedpostsorter,
139
        sorter_entity $exportedpostsorter,
140
        moodle_url $baseurl,
140
        moodle_url $baseurl,
141
        array $notifications = [],
141
        array $notifications = [],
142
        callable $postprocessfortemplate = null
142
        ?callable $postprocessfortemplate = null
143
    ) {
143
    ) {
144
        $this->forum = $forum;
144
        $this->forum = $forum;
145
        $this->discussion = $discussion;
145
        $this->discussion = $discussion;
146
        $this->displaymode = $displaymode;
146
        $this->displaymode = $displaymode;
147
        $this->renderer = $renderer;
147
        $this->renderer = $renderer;
Línea 351... Línea 351...
351
                }
351
                }
352
                $select = new url_select($forummenu, '',
352
                $select = new url_select($forummenu, '',
353
                        ['/mod/forum/discuss.php?d=' . $discussion->get_id() => get_string("movethisdiscussionto", "forum")],
353
                        ['/mod/forum/discuss.php?d=' . $discussion->get_id() => get_string("movethisdiscussionto", "forum")],
354
                        'forummenu', $movebutton);
354
                        'forummenu', $movebutton);
355
                $select->set_label(get_string('movethisdiscussionlabel', 'mod_forum'), [
355
                $select->set_label(get_string('movethisdiscussionlabel', 'mod_forum'), [
356
                    'class' => 'sr-only',
356
                    'class' => 'visually-hidden',
357
                ]);
357
                ]);
358
                $html .= $this->renderer->render($select);
358
                $html .= $this->renderer->render($select);
359
                $html .= "</div>";
359
                $html .= "</div>";
360
                return $html;
360
                return $html;
361
            }
361
            }