themes: MDL-19077 move deprecated function page_id_and_class to deprecatedlib.php

This commit is contained in:
tjhunt 2009-07-06 05:32:29 +00:00
parent 1420162a3a
commit a64e25f65d
2 changed files with 14 additions and 27 deletions

View File

@ -1815,6 +1815,20 @@ function style_sheet_setup($lastmodified=0, $lifetime=300, $themename='', $force
exit;
}
/**
* @todo Remove this deprecated function when no longer used
* @deprecated since Moodle 2.0 - use $PAGE->pagetype instead of the .
*
* @param string $getid used to return $PAGE->pagetype.
* @param string $getclass used to return $PAGE->legacyclass.
*/
function page_id_and_class(&$getid, &$getclass) {
global $PAGE;
debugging('Call to deprecated function page_id_and_class. Please use $PAGE->pagetype instead.', DEBUG_DEVELOPER);
$getid = $PAGE->pagetype;
$getclass = $PAGE->legacyclass;
}
/**
* Prints some red text using echo
*

View File

@ -4783,12 +4783,6 @@ function editorshortcutshelpbutton() {
/**
* Print a message and exit.
*
* @global object
* @global object Apparently not used in this function
* @global object
* @global object
* @global object
* @uses CLI_SCRIPT
* @param string $message The message to print in the notice
* @param string $link The link to use for the continue button
* @param object $course A course object
@ -4861,12 +4855,6 @@ function notice_yesno ($message, $linkyes, $linkno, $optionsyes=NULL, $optionsno
* <strong>Good practice:</strong> You should call this method before starting page
* output by using any of the OUTPUT methods.
*
* @global object
* @global object
* @global object
* @uses $_COOKIE
* @uses DEBUG_DEVELOPER
* @uses DEBUG_ALL
* @param string $url The URL to redirect to
* @param string $message The message to display to the user
* @param int $delay The delay before redirecting
@ -5115,21 +5103,6 @@ function rebuildnolinktag($text) {
return $text;
}
/**
* @todo Remove this deprecated function when no longer used
* @deprecated since Moodle 2.0 - use $PAGE->pagetype instead of the .
*
* @global object
* @param string $getid used to return $PAGE->pagetype.
* @param string $getclass used to return $PAGE->legacyclass.
*/
function page_id_and_class(&$getid, &$getclass) {
global $PAGE;
debugging('Call to deprecated function page_id_and_class. Please use $PAGE->pagetype instead.', DEBUG_DEVELOPER);
$getid = $PAGE->pagetype;
$getclass = $PAGE->legacyclass;
}
/**
* Prints a maintenance message from $CFG->maintenance_message or default if empty
* @return void