Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 90... Línea 90...
90
    public function render_column_sort($sortdata) {
90
    public function render_column_sort($sortdata) {
91
        return $this->render_from_template('core_question/column_sort', $sortdata);
91
        return $this->render_from_template('core_question/column_sort', $sortdata);
92
    }
92
    }
Línea 93... Línea 93...
93
 
93
 
94
    /**
-
 
95
     * @deprecated since Moodle 4.0
-
 
96
     */
-
 
97
    public function render_qbank_chooser() {
-
 
98
        throw new coding_exception(__FUNCTION__ . '() has been removed.');
-
 
99
    }
-
 
100
 
-
 
101
    /**
-
 
102
     * Render category condition.
-
 
103
     *
-
 
104
     * @param array $displaydata
-
 
105
     * @return bool|string
94
    /**
106
     * @deprecated since Moodle 4.3
-
 
107
     * @todo Final deprecation on Moodle 4.7 MDL-78090
95
     * @deprecated since Moodle 4.3
-
 
96
     */
-
 
97
    #[\core\attribute\deprecated(
-
 
98
        'qbank_managecategories\output\renderer::render_category_condition()',
-
 
99
        since: '4.3',
-
 
100
        mdl: 'MDL-72321',
-
 
101
        final: true
108
     */
102
    )]
109
    public function render_category_condition($displaydata) {
-
 
110
        debugging(
-
 
111
            'Function render_category_condition() has been deprecated and moved to qbank_managecategories plugin, ' .
-
 
112
                'Please use qbank_managecategories\output\renderer::render_category_condition() instead.',
-
 
113
            DEBUG_DEVELOPER
-
 
114
        );
103
    public function render_category_condition($displaydata) {
115
        return $this->render_from_template('qbank_managecategories/category_condition', $displaydata);
104
        \core\deprecation::emit_deprecation([self::class, __FUNCTION__]);
Línea 116... Línea 105...
116
    }
105
    }
117
 
-
 
118
    /**
-
 
119
     * Render category condition advanced.
-
 
120
     *
-
 
121
     * @param array $displaydata
106
 
122
     * @return bool|string
-
 
123
     * @deprecated since Moodle 4.3
107
    /**
-
 
108
     * @deprecated since Moodle 4.3
124
     * @todo Final deprecation on Moodle 4.7 MDL-78090
109
     */
125
     */
-
 
126
    public function render_category_condition_advanced($displaydata) {
110
    #[\core\attribute\deprecated(null, since: '4.3', mdl: 'MDL-72321', final: true)]
127
        debugging(
-
 
128
            'Function render_category_condition_advanced() has been deprecated',
-
 
129
            DEBUG_DEVELOPER
-
 
130
        );
-
 
131
        // The template category_condition_advanced should also be deleted with this function.
111
    public function render_category_condition_advanced($displaydata) {
Línea 132... Línea 112...
132
        return $this->render_from_template('qbank_managecategories/category_condition_advanced', $displaydata);
112
        \core\deprecation::emit_deprecation([self::class, __FUNCTION__]);
133
    }
-
 
134
 
-
 
135
    /**
-
 
136
     * Render hidden condition advanced.
-
 
137
     *
-
 
138
     * @param array $displaydata
113
    }
139
     * @return bool|string
-
 
140
     * @see qbank_deletequestion\output\renderer
114
 
-
 
115
    /**
-
 
116
     * @deprecated since Moodle 4.3
-
 
117
     */
-
 
118
    #[\core\attribute\deprecated(
-
 
119
        'qbank_deletequestion\output\renderer::render_hidden_condition_advanced()',
-
 
120
        since: '4.3',
141
     * @deprecated since Moodle 4.3
121
        mdl: 'MDL-72321',
142
     * @todo Final deprecation on Moodle 4.7 MDL-78090
-
 
143
     */
-
 
144
    public function render_hidden_condition_advanced($displaydata) {
-
 
145
        debugging(
-
 
146
            'Function render_hidden_condition_advanced() has been deprecated and moved to qbank_deletequestion plugin, ' .
-
 
147
                'Please use qbank_deletequestion\output\renderer::render_hidden_condition_advanced() instead.',
122
        final: true
148
            DEBUG_DEVELOPER
123
    )]
Línea 149... Línea 124...
149
        );
124
    public function render_hidden_condition_advanced($displaydata) {
150
        return $this->render_from_template('qbank_deletequestion/hidden_condition_advanced', $displaydata);
125
        \core\deprecation::emit_deprecation([self::class, __FUNCTION__]);
151
    }
126
    }
Línea 180... Línea 155...
180
     * @return bool|string
155
     * @return bool|string
181
     */
156
     */
182
    public function render_bulk_actions_ui($displaydata) {
157
    public function render_bulk_actions_ui($displaydata) {
183
        return $this->render_from_template('core_question/bulk_actions_ui', $displaydata);
158
        return $this->render_from_template('core_question/bulk_actions_ui', $displaydata);
184
    }
159
    }
185
 
-
 
186
    /**
-
 
187
     * @deprecated since Moodle 4.0
-
 
188
     */
-
 
189
    public function qbank_chooser() {
-
 
190
        throw new coding_exception(__FUNCTION__ . '() has been removed.');
-
 
191
    }
-
 
192
 
-
 
193
    /**
-
 
194
     * @deprecated since Moodle 4.0
-
 
195
     */
-
 
196
    protected function qbank_chooser_types() {
-
 
197
        throw new coding_exception(__FUNCTION__ . '() has been removed.');
-
 
198
    }
-
 
199
 
-
 
200
    /**
-
 
201
     * @deprecated since Moodle 4.0
-
 
202
     */
-
 
203
    protected function qbank_chooser_qtype() {
-
 
204
        throw new coding_exception(__FUNCTION__ . '() has been removed.');
-
 
205
    }
-
 
206
 
-
 
207
    /**
-
 
208
     * @deprecated since Moodle 4.0
-
 
209
     */
-
 
210
    protected function qbank_chooser_title() {
-
 
211
        throw new coding_exception(__FUNCTION__ . '() has been removed.');
-
 
212
    }
-
 
213
 
-
 
214
}
160
}