Your IP : 13.59.182.74


Current Path : /home/ncdcgo/ele.ncdc.go.ug/mod/url/
Upload File :
Current File : /home/ncdcgo/ele.ncdc.go.ug/mod/url/deprecatedlib.php

<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.

/**
 * List of deprecated mod_url functions.
 *
 * @package   mod_url
 * @copyright 2021 Peter D
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */

/**
 * Print url heading.
 *
 * @deprecated since 4.0
 * @param object $url
 * @param object $cm
 * @param object $course
 * @param bool $notused This variable is no longer used.
 * @return void
 */
function url_print_heading($url, $cm, $course, $notused = false) {
    global $OUTPUT;
    debugging('url_print_heading is deprecated. Handled by activity_header now.', DEBUG_DEVELOPER);
    echo $OUTPUT->heading(format_string($url->name), 2);
}

/**
 * Print url introduction.
 *
 * @deprecated since 4.0
 * @param object $url
 * @param object $cm
 * @param object $course
 * @param bool $ignoresettings print even if not specified in modedit
 * @return void
 */
function url_print_intro($url, $cm, $course, $ignoresettings=false) {
    global $OUTPUT;
    debugging('url_print_intro is deprecated. Handled by activity_header now.', DEBUG_DEVELOPER);
    if ($intro = url_get_intro($url, $cm, $ignoresettings)) {
        echo $OUTPUT->box_start('mod_introbox', 'urlintro');
        echo $intro;
        echo $OUTPUT->box_end();
    }
}