Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 32... Línea 32...
32
     * @param int $entryid id of the question entry
32
     * @param int $entryid id of the question entry
33
     * @param string $returnrul url of the page to return to
33
     * @param string $returnrul url of the page to return to
34
     * @param int $courseid id of the course
34
     * @param int $courseid id of the course
35
     * @param ?string $filter filter param to pass to the History view
35
     * @param ?string $filter filter param to pass to the History view
36
     * @return \moodle_url
36
     * @return \moodle_url
-
 
37
     * @deprecated since Moodle 5.0.
-
 
38
     * @todo MDL-82413 Final deprecation in Moodle 6.0.
37
     */
39
     */
-
 
40
    #[\core\attribute\deprecated(replacement: 'qbank_history\helper::get_question_history_url', since: '5.0', mdl: 'MDL-71378')]
38
    public static function question_history_url(int $entryid, string $returnrul, int $courseid, ?string $filter): \moodle_url {
41
    public static function question_history_url(int $entryid, string $returnrul, int $courseid, ?string $filter): \moodle_url {
-
 
42
        \core\deprecation::emit_deprecation([self::class, __FUNCTION__]);
39
        $params = [
43
        $params = [
40
            'entryid' => $entryid,
44
            'entryid' => $entryid,
41
            'returnurl' => $returnrul,
45
            'returnurl' => $returnrul,
42
            'courseid' => $courseid
46
            'courseid' => $courseid
43
        ];
47
        ];
44
        if (!is_null($filter)) {
48
        if (!is_null($filter)) {
45
            $params['filter'] = $filter;
49
            $params['filter'] = $filter;
46
        }
50
        }
Línea -... Línea 51...
-
 
51
 
-
 
52
        return new \moodle_url('/question/bank/history/history.php', $params);
-
 
53
    }
-
 
54
 
-
 
55
    /**
-
 
56
     * Get the question history url.
-
 
57
     *
-
 
58
     * @param int $entryid id of the question entry
-
 
59
     * @param string $returnrul url of the page to return to
-
 
60
     * @param int $cmid id of the coursemodule holding the question bank.
-
 
61
     * @param ?string $filter filter param to pass to the History view
-
 
62
     * @return \moodle_url
-
 
63
     */
-
 
64
    public static function get_question_history_url(int $entryid, string $returnrul, int $cmid, ?string $filter) {
-
 
65
 
-
 
66
        $params = [
-
 
67
            'entryid' => $entryid,
-
 
68
            'returnurl' => $returnrul,
-
 
69
            'cmid' => $cmid,
-
 
70
        ];
-
 
71
        if (!is_null($filter)) {
-
 
72
            $params['filter'] = $filter;
-
 
73
        }
47
 
74
 
48
        return new \moodle_url('/question/bank/history/history.php', $params);
75
        return new \moodle_url('/question/bank/history/history.php', $params);
Línea 49... Línea 76...
49
    }
76
    }