Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 41... Línea 41...
41
    /**
41
    /**
42
     * Render the create template form
42
     * Render the create template form
43
     *
43
     *
44
     * @param int $id
44
     * @param int $id
45
     * @return bool|string
45
     * @return bool|string
-
 
46
     * @deprecated since 4.5
-
 
47
     * @todo MDL-82164 This will be deleted in Moodle 6.0.
46
     */
48
     */
-
 
49
    #[\core\attribute\deprecated(replacement: null, since: '4.5')]
47
    public function create_template_form(int $id) {
50
    public function create_template_form(int $id) {
-
 
51
        \core\deprecation::emit_deprecation([self::class, __FUNCTION__]);
-
 
52
 
48
        return $this->render_from_template('mod_feedback/create_template', ['id' => $id]);
53
        return $this->render_from_template('mod_feedback/create_template', ['id' => $id]);
49
    }
54
    }
-
 
55
 
-
 
56
    /**
-
 
57
     * Builds the feedback page title.
-
 
58
     *
-
 
59
     * @param array $titleparts the different parts to add to the title.
-
 
60
     * @param string $pagetitle the page title to add to the rest of the parts. Empty by default.
-
 
61
     */
-
 
62
    public function set_title(array $titleparts, string $pagetitle = '') {
-
 
63
        $title = implode(\moodle_page::TITLE_SEPARATOR, $titleparts);
-
 
64
        if (!empty($pagetitle)) {
-
 
65
            $title = $pagetitle . ': ' . $title;
-
 
66
        }
-
 
67
        $this->page->set_title($title);
-
 
68
    }
50
}
69
}