Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 171... Línea 171...
171
     *
171
     *
172
     * @param int|null $displaymode How should the posts be formatted?
172
     * @param int|null $displaymode How should the posts be formatted?
173
     * @param bool $readonly Should the posts include the actions to reply, delete, etc?
173
     * @param bool $readonly Should the posts include the actions to reply, delete, etc?
174
     * @return posts_renderer
174
     * @return posts_renderer
175
     */
175
     */
176
    public function get_single_discussion_posts_renderer(int $displaymode = null, bool $readonly = false): posts_renderer {
176
    public function get_single_discussion_posts_renderer(?int $displaymode = null, bool $readonly = false): posts_renderer {
177
        $exportedpostssorter = $this->entityfactory->get_exported_posts_sorter();
177
        $exportedpostssorter = $this->entityfactory->get_exported_posts_sorter();
Línea 178... Línea 178...
178
 
178
 
179
        switch ($displaymode) {
179
        switch ($displaymode) {
180
            case FORUM_MODE_THREADED:
180
            case FORUM_MODE_THREADED: