Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 199... Línea 199...
199
        $widget = new $widgetclass($format);
199
        $widget = new $widgetclass($format);
200
        return $this->render($widget);
200
        return $this->render($widget);
201
    }
201
    }
Línea 202... Línea 202...
202
 
202
 
203
    /**
-
 
204
     * @deprecated since 4.0 - use core_course output components instead.
-
 
205
     */
-
 
206
    protected function section_edit_control_menu($controls, $course, $section) {
-
 
207
 
-
 
208
        throw new coding_exception('section_edit_control_menu() can not be used anymore. Please use ' .
-
 
209
            'core_courseformat\\output\\local\\content\\section to render a section. In case you need to modify those controls ' .
-
 
210
            'override core_courseformat\\output\\local\\content\\section\\controlmenu in your format plugin.');
-
 
211
    }
-
 
212
 
-
 
213
    /**
-
 
214
     * @deprecated since 4.0 - use core_course output components instead.
-
 
215
     */
-
 
216
    protected function section_right_content($section, $course, $onsectionpage) {
-
 
217
 
-
 
218
        throw new coding_exception('section_right_content() can not be used anymore. Please use ' .
-
 
219
            'core_courseformat\\output\\local\\content\\section to render a section.');
-
 
220
    }
-
 
221
 
-
 
222
    /**
-
 
223
     * @deprecated since 4.0 - use core_course output components instead.
-
 
224
     */
-
 
225
    protected function section_left_content($section, $course, $onsectionpage) {
-
 
226
 
-
 
227
        throw new coding_exception('section_left_content() can not be used anymore. Please use ' .
-
 
228
            'core_courseformat\\output\\local\\content\\section to render a section.');
-
 
229
    }
-
 
230
 
-
 
231
    /**
-
 
232
     * @deprecated since 4.0 - use core_course output components instead.
-
 
233
     */
-
 
234
    protected function section_header($section, $course, $onsectionpage, $sectionreturn = null) {
-
 
235
 
-
 
236
        throw new coding_exception('section_header() can not be used any more. Please use ' .
-
 
237
            'core_courseformat\\output\\local\\content\\section to render a section ' .
-
 
238
            'or core_courseformat\output\\local\\content\\section\\header ' .
-
 
239
            'to print only the header.');
-
 
240
    }
-
 
241
 
-
 
242
    /**
-
 
243
     * @deprecated since 4.0 - use core_course output components instead.
-
 
244
     */
-
 
245
    protected function section_footer() {
-
 
246
 
-
 
247
        throw new coding_exception('section_footer() can not be used any more. Please use ' .
-
 
248
            'core_courseformat\\output\\local\\content\\section to render individual sections or .' .
-
 
249
            'core_courseformat\\output\\local\\content to render the full course');
-
 
250
    }
-
 
251
 
-
 
252
    /**
-
 
253
     * @deprecated since 4.0 - use core_course output components instead.
-
 
254
     */
-
 
255
    protected function start_section_list() {
-
 
256
 
-
 
257
        throw new coding_exception('start_section_list() can not be used any more. Please use ' .
-
 
258
            'core_courseformat\\output\\local\\content\\section to render individual sections or .' .
-
 
259
            'core_courseformat\\output\\local\\content to render the full course');
-
 
260
    }
-
 
261
 
-
 
262
    /**
-
 
263
     * @deprecated since 4.0 - use core_course output components instead.y
-
 
264
     */
-
 
265
    protected function end_section_list() {
-
 
266
 
-
 
267
        throw new coding_exception('end_section_list() can not be used any more. Please use ' .
-
 
268
            'core_courseformat\\output\\local\\content\\section to render individual sections or .' .
-
 
269
            'core_courseformat\\output\\local\\content to render the full course');
-
 
270
    }
-
 
271
 
-
 
272
    /**
-
 
273
     * Old method to print section edit controls. Do not use it!
-
 
274
     *
-
 
275
     * @deprecated since Moodle 3.0 MDL-48947 - Use core_courseformat\output\section_renderer::section_edit_control_items() instead
-
 
276
     */
-
 
277
    protected function section_edit_controls() {
-
 
278
        throw new coding_exception('section_edit_controls() can not be used anymore. Please use ' .
-
 
279
            'section_edit_control_items() instead.');
-
 
280
    }
-
 
281
 
-
 
282
    /**
-
 
283
     * @deprecated since 4.0 - use core_course output components instead.
-
 
284
     */
-
 
285
    protected function section_edit_control_items($course, $section, $onsectionpage = false) {
-
 
286
 
-
 
287
        throw new coding_exception('section_edit_control_items() can not be used any more. Please use or extend' .
-
 
288
            'core_courseformat\output\\local\\content\\section\\controlmenu instead (like topics format does).');
-
 
289
    }
-
 
290
 
-
 
291
    /**
-
 
292
     * @deprecated since 4.0 - use core_course output components instead.
-
 
293
     */
-
 
294
    protected function section_summary($section, $course, $mods) {
-
 
295
 
-
 
296
        throw new coding_exception('section_summary() can not be used any more. Please use ' .
-
 
297
            'core_courseformat\output\\local\\content\\section to render sections. If you need to modify those summary, extend ' .
-
 
298
            'core_courseformat\output\\local\\content\\section\\summary in your format plugin.');
-
 
299
    }
-
 
300
 
-
 
301
    /**
-
 
302
     * @deprecated since 4.0 - use core_course output components instead.
-
 
303
     */
-
 
304
    protected function section_activity_summary($section, $course, $mods) {
-
 
305
 
-
 
306
        throw new coding_exception('section_activity_summary() can not be used any more. Please use ' .
-
 
307
            'core_courseformat\output\\local\\content\\section to render sections. ' .
-
 
308
            'If you need to modify those information, extend ' .
-
 
309
            'core_courseformat\output\\local\\content\\section\\cmsummary in your format plugin.');
-
 
310
    }
-
 
311
 
-
 
312
    /**
-
 
313
     * @deprecated since 4.0 - use core_course output components instead.
-
 
314
     */
-
 
315
    protected function section_availability_message($section, $canviewhidden) {
-
 
316
 
-
 
317
        throw new coding_exception('section_availability_message() can not be used any more. Please use ' .
-
 
318
            'core_courseformat\output\\local\\content\\section to render sections. If you need to modify this element, extend ' .
-
 
319
            'core_courseformat\output\\local\\content\\section\\availability in your format plugin.');
-
 
320
    }
-
 
321
 
-
 
322
    /**
-
 
323
     * @deprecated since 4.0 - use core_course output components instead.
-
 
324
     */
-
 
325
    public function section_availability($section) {
-
 
326
        throw new coding_exception('section_availability() can not be used any more. Please use ' .
-
 
327
            'core_courseformat\output\\local\\content\\section to render sections. If you need to modify this element, extend ' .
-
 
328
            'core_courseformat\output\\local\\content\\section\\availability in your format plugin.');
-
 
329
    }
-
 
330
 
-
 
331
    /**
-
 
332
     * @deprecated since 4.0 - use core_course output components instead.
-
 
333
     */
-
 
334
    protected function course_activity_clipboard($course, $sectionno = null) {
-
 
335
        throw new coding_exception('Non ajax course edition using course_activity_clipboard is not supported anymore.');
-
 
336
    }
-
 
337
 
-
 
338
    /**
-
 
339
     * @deprecated since 4.0 - use core_course output components instead.
-
 
340
     */
-
 
341
    protected function get_nav_links($course, $sections, $sectionno) {
-
 
342
 
-
 
343
        throw new coding_exception('get_nav_links() can not be used any more. Please use ' .
-
 
344
            'core_courseformat\\output\\local\\content to render a course. If you need to modify this element, extend ' .
-
 
345
            'core_courseformat\\output\\local\\content\\sectionnavigation in your format plugin.');
-
 
346
    }
-
 
347
 
-
 
348
    /**
-
 
349
     * @deprecated since 4.0 - use core_course output components instead.
-
 
350
     */
-
 
351
    protected function stealth_section_header($sectionno) {
-
 
352
 
-
 
353
        throw new coding_exception('stealth_section_header() can not be used any more. Please use ' .
-
 
354
            'core_courseformat\output\\local\\content\\section to render sections.');
-
 
355
    }
-
 
356
 
-
 
357
    /**
-
 
358
     * @deprecated since 4.0 - use core_course output components instead.
-
 
359
     */
-
 
360
    protected function stealth_section_footer() {
-
 
361
 
-
 
362
        throw new coding_exception('stealth_section_footer() can not be used any more. Please use ' .
-
 
363
            'core_courseformat\output\\local\\content\\section to render sections.');
-
 
364
    }
-
 
365
 
-
 
366
    /**
203
    /**
367
     * Generate the html for a hidden section
204
     * Generate the html for a hidden section
368
     *
205
     *
369
     * @param int $sectionno The section number in the course which is being displayed
206
     * @param int $sectionno The section number in the course which is being displayed
370
     * @param int|stdClass $courseorid The course to get the section name for (object or just course id)
207
     * @param int|stdClass $courseorid The course to get the section name for (object or just course id)
Línea 390... Línea 227...
390
        $o .= html_writer::tag('div', $strnotavailable);
227
        $o .= html_writer::tag('div', $strnotavailable);
391
        $o .= html_writer::end_tag('div');
228
        $o .= html_writer::end_tag('div');
392
        $o .= html_writer::end_tag('li');
229
        $o .= html_writer::end_tag('li');
393
        return $o;
230
        return $o;
394
    }
231
    }
395
 
-
 
396
    /**
-
 
397
     * @deprecated since 4.0 - use core_course output components instead.
-
 
398
     */
-
 
399
    protected function section_nav_selection($course, $sections, $displaysection) {
-
 
400
 
-
 
401
        throw new coding_exception('section_nav_selection() can not be used anymore. Please use ' .
-
 
402
            'core_courseformat\\output\\local\\content to render a course. If you need to modify this element, extend ' .
-
 
403
            'core_courseformat\\output\\local\\content\\sectionnavigation or ' .
-
 
404
            'core_courseformat\\output\\local\\content\\sectionselector in your format plugin.');
-
 
405
    }
-
 
406
 
-
 
407
    /**
-
 
408
     * @deprecated since 4.0
-
 
409
     */
-
 
410
    public function print_single_section_page($course, $sections, $mods, $modnames, $modnamesused, $displaysection) {
-
 
411
 
-
 
412
        throw new coding_exception('Method print_single_section_page can not be used anymore. Please use' .
-
 
413
            'core_courseformat\\output\\local\\content instead ' .
-
 
414
            'or override render_content method to use a different template');
-
 
415
    }
-
 
416
 
-
 
417
    /**
-
 
418
     * @deprecated since 4.0
-
 
419
     */
-
 
420
    public function print_multiple_section_page($course, $sections, $mods, $modnames, $modnamesused) {
-
 
421
 
-
 
422
        throw new coding_exception('Method print_multiple_section_page can not be used anymore. Please use' .
-
 
423
            'core_courseformat\\output\\local\\content instead ' .
-
 
424
            'or override render_content method to use a diferent template');
-
 
425
    }
-
 
426
 
-
 
427
    /**
-
 
428
     * @deprecated since 4.0 - use core_course output components instead.
-
 
429
     */
-
 
430
    protected function change_number_sections($course, $sectionreturn = null) {
-
 
431
 
-
 
432
        throw new coding_exception('Method change_number_sections can not be used anymore. Please use' .
-
 
433
            'core_courseformat\\output\\local\\content\\addsection instead');
-
 
434
    }
-
 
435
 
-
 
436
    /**
-
 
437
     * @deprecated since 4.0 - use core_course output components instead.
-
 
438
     */
-
 
439
    protected function format_summary_text($section) {
-
 
440
 
-
 
441
        throw new coding_exception('Method format_summary_text can not be used anymore. Please use' .
-
 
442
            'core_courseformat\output\\local\\content\\section\\summary::format_summary_text instead');
-
 
443
    }
-
 
444
}
232
}