<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Development%3ADeprecated_functions_in_2.0</id>
	<title>Development:Deprecated functions in 2.0 - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Development%3ADeprecated_functions_in_2.0"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:Deprecated_functions_in_2.0&amp;action=history"/>
	<updated>2026-05-06T23:01:36Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Development:Deprecated_functions_in_2.0&amp;diff=11032&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:Deprecated_functions_in_2.0&amp;diff=11032&amp;oldid=prev"/>
		<updated>2024-10-21T08:51:10Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 08:51, 21 октября 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Олег Давидович</name></author>
	</entry>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Development:Deprecated_functions_in_2.0&amp;diff=11031&amp;oldid=prev</id>
		<title>1&gt;Tbannister: Correcting navigation example in print_header section .</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:Deprecated_functions_in_2.0&amp;diff=11031&amp;oldid=prev"/>
		<updated>2011-01-14T20:50:49Z</updated>

		<summary type="html">&lt;p&gt;Correcting navigation example in print_header section .&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Work in progress}}&lt;br /&gt;
{{Moodle 2.0}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
THIS PAGE IS OUTDATED, DO NOT USE!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This page lists all functions that have been deprecated between 1.9 and 2.0, with instructions on how to upgrade your code. A count of remaining function calls in core is kept next to each function name.&lt;br /&gt;
&lt;br /&gt;
== General notes ==&lt;br /&gt;
&lt;br /&gt;
The following functions have been arranged in alphabetical order, although some of them are very closely related to each other. The number of occurrences of these function calls at the time of writing are indicated in parentheses.&lt;br /&gt;
&lt;br /&gt;
== Functions to migrate ==&lt;br /&gt;
=== button_to_popup_window (0) ===&lt;br /&gt;
Old code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
button_to_popup_window($url, $name, $linkname, $height, $width, $title, $options, $return, $id, $class);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$form = new html_form();&lt;br /&gt;
$form-&amp;gt;button-&amp;gt;text = $linkname;&lt;br /&gt;
$form-&amp;gt;button-&amp;gt;title = $title;&lt;br /&gt;
$form-&amp;gt;button-&amp;gt;id = $id;&lt;br /&gt;
$form-&amp;gt;url = $url;&lt;br /&gt;
$form-&amp;gt;add_class($class);&lt;br /&gt;
$form-&amp;gt;button-&amp;gt;add_action(new popup_action(&amp;#039;click&amp;#039;, $url, $name, $options));&lt;br /&gt;
echo $OUTPUT-&amp;gt;button($form);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Note: popup parameters ($options) &amp;#039;&amp;#039;&amp;#039;must&amp;#039;&amp;#039;&amp;#039; be prepared as an associative array, not a string as previously. Simply reusing the $options param previously passed to button_to_popup_window() will not work. The $height and $width params are also part of the popup params. See lib/deprecatedlib.php for an example of how the legacy function call is handled.&lt;br /&gt;
&lt;br /&gt;
=== choose_from_menu (1) ===&lt;br /&gt;
Old code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
choose_from_menu($options, $name, $selected, $nothing, $script, $nothingvalue, $return, $disabled, $tabindex, $id, $listbox, $multiple, $class);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$select = moodle_select::make($options, $name, $selected); // Required&lt;br /&gt;
$select-&amp;gt;nothinglabel = $nothing;&lt;br /&gt;
$select-&amp;gt;nothingvalue = $nothingvalue;&lt;br /&gt;
$select-&amp;gt;disabled = $disabled;&lt;br /&gt;
$select-&amp;gt;tabindex = $tabindex;&lt;br /&gt;
$select-&amp;gt;id = $id;&lt;br /&gt;
$select-&amp;gt;listbox = $listbox;&lt;br /&gt;
$select-&amp;gt;multiple = $multiple;&lt;br /&gt;
$select-&amp;gt;add_classes($class);&lt;br /&gt;
&lt;br /&gt;
echo $OUTPUT-&amp;gt;select($select);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== choose_from_menu_nested (0) ===&lt;br /&gt;
Old code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
choose_from_menu_nested($options, $name, $selected, $nothing, $script, $nothingvalue, $return, $disabled, $tabindex);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$select = moodle_select::make($options, $name, $selected);&lt;br /&gt;
$select-&amp;gt;tabindex = $tabindex;&lt;br /&gt;
$select-&amp;gt;disabled = $disabled;&lt;br /&gt;
$select-&amp;gt;nothingvalue = $nothingvalue;&lt;br /&gt;
$select-&amp;gt;nested = true;&lt;br /&gt;
&lt;br /&gt;
echo $OUTPUT-&amp;gt;select($select);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Notes: &lt;br /&gt;
#The lang string &amp;quot;choose&amp;quot; is no longer used, in favour of &amp;quot;choosedots&amp;quot;.&lt;br /&gt;
#The $script param is no longer supported. Please use component::add_action() instead.&lt;br /&gt;
&lt;br /&gt;
=== choose_from_menu_yesno (0) ===&lt;br /&gt;
Old code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
choose_from_menu_yesno($name, $selected, $script, $return, $disabled, $tabindex);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$select = moodle_select::make_yes_no($name, $selected);&lt;br /&gt;
$select-&amp;gt;disabled = $disabled;&lt;br /&gt;
$select-&amp;gt;tabindex = $tabindex;&lt;br /&gt;
echo $OUTPUT-&amp;gt;select($select);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Note: The $script param has been dropped, you need to use component::add_action() instead.&lt;br /&gt;
&lt;br /&gt;
=== choose_from_radio (0) ===&lt;br /&gt;
&lt;br /&gt;
=== close_window_button (0) ===&lt;br /&gt;
Old code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
close_window_button($name, $return, $reloadopener);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
echo $OUTPUT-&amp;gt;close_window_button(get_string($name));&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Note: You must pass a language string already processed by get_string().&lt;br /&gt;
&lt;br /&gt;
=== print_continue (0) ===&lt;br /&gt;
Old code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
print_continue($link, $return);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
echo $OUTPUT-&amp;gt;continue_button($link);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== doc_link (0) ===&lt;br /&gt;
Old code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
doc_link($path, $text, $iconpath);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
echo $OUTPUT-&amp;gt;doc_link($path, $text, $iconpath);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Note: This is not for general use, do not confuse with help_icon()&lt;br /&gt;
&lt;br /&gt;
=== formerr (0) ===&lt;br /&gt;
Old code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
formerr($string);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
echo $OUTPUT-&amp;gt;error_text($error);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== helpbutton (0) ===&lt;br /&gt;
Old code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
helpbutton($page, $title, $module, $image, $linktext, $text, $return, $imagetext);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$helpicon = new help_icon();&lt;br /&gt;
$helpicon-&amp;gt;page = $page; // required&lt;br /&gt;
$helpicon-&amp;gt;text = $title; // required&lt;br /&gt;
$helpicon-&amp;gt;module = $module; // defaults to &amp;#039;moodle&amp;#039;&lt;br /&gt;
$helpicon-&amp;gt;linktext = $linktext;&lt;br /&gt;
&lt;br /&gt;
echo $OUTPUT-&amp;gt;help_icon($helpicon);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== link_to_popup_window (0) ===&lt;br /&gt;
Old code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
link_to_popup_window($url, $name, $linkname, $height, $width, $title, $options, $return);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$link = html_link::make($url, $linkname);&lt;br /&gt;
$link-&amp;gt;title = $title; // optional&lt;br /&gt;
$options[&amp;#039;height&amp;#039;] = $height; // optional&lt;br /&gt;
$options[&amp;#039;width&amp;#039;] = $width; // optional&lt;br /&gt;
$link-&amp;gt;add_action(new popup_action(&amp;#039;click&amp;#039;, $url, $name, $options));&lt;br /&gt;
echo $OUTPUT-&amp;gt;link($link);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Note: popup parameters ($options) &amp;#039;&amp;#039;&amp;#039;must&amp;#039;&amp;#039;&amp;#039; be prepared as an associative array, not a string as previously. Simply reusing the $options param previously passed to link_to_popup_window() will not work. See lib/deprecatedlib.php for an example of how the legacy function call is handled.&lt;br /&gt;
&lt;br /&gt;
=== notice_yesno (0) ===&lt;br /&gt;
Old code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
notice_yesno($message, $linkyes, $linkno, $optionsyes, $optionsno, $methodyes, $methodno);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code (simplest form):&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
echo $OUTPUT-&amp;gt;confirm($message, $linkyes, $linkno);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
New code (with options in arrays):&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
echo $OUTPUT-&amp;gt;confirm($message, new moodle_url($linkyes, $optionsyes), new moodle_url($linkno, $optionsno));&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
New code (if the &amp;quot;get&amp;quot; method is required):&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$formcontinue = html_form::make_button($linkyes, $optionsyes, get_string(&amp;#039;yes&amp;#039;), $methodyes);&lt;br /&gt;
$formcancel = html_form::make_button($linkno, $optionsno, get_string(&amp;#039;no&amp;#039;), $methodno);&lt;br /&gt;
echo $OUTPUT-&amp;gt;confirm($message, $formcontinue, $formcancel);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== notify (0) ===&lt;br /&gt;
Old code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
notify($message, $classes, $align, $return);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
echo $OUTPUT-&amp;gt;notification($message, $classes=&amp;#039;&amp;#039;);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Note: Use a CSS rule for alignment.&lt;br /&gt;
&lt;br /&gt;
=== popup_form (0) ===&lt;br /&gt;
Old code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
popup_form($baseurl, $options, $formid, $selected, $nothing, $help, $helptext, $return, $targetwindow, $selectlabel, $optionsextra, $submitvalue, $disabled, $showbutton);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
// if $baseurl == &amp;#039;http://domain.com/index.php?var1=1&amp;amp;amp;var2=&amp;#039;&lt;br /&gt;
$select = html_select::make_popup_form(&amp;#039;http://domain.com/index.php?var1=1&amp;#039;, &amp;#039;var2&amp;#039;, $options, $formid, $selected);&lt;br /&gt;
$select-&amp;gt;disabled = $disabled; // optional&lt;br /&gt;
$select-&amp;gt;set_label($selectlabel, $select-&amp;gt;id); // optional, set to false if no &amp;quot;nothing&amp;quot; option is desired (when $selectlabel == &amp;#039;&amp;#039; in original call)&lt;br /&gt;
$select-&amp;gt;set_help_icon($help, $helptext); // optional&lt;br /&gt;
$select-&amp;gt;form-&amp;gt;button-&amp;gt;text = $submitvalue; // optional&lt;br /&gt;
&lt;br /&gt;
echo $OUTPUT-&amp;gt;select($select);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Notes: &lt;br /&gt;
*The $optionsextra param is not supported. If your code uses it, you should find another way to add extra params to your &amp;lt;option&amp;gt; tags without using this horrible hack which usually includes inline JS or CSS.&lt;br /&gt;
&lt;br /&gt;
=== print_arrow (15) ===&lt;br /&gt;
=== print_box* (0) ===&lt;br /&gt;
Old code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
print_box($message, $classes, $ids, $return);&lt;br /&gt;
print_box_start($classes, $ids, $return);&lt;br /&gt;
print_box_end();&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
echo $OUTPUT-&amp;gt;box($message, $classes, $ids);&lt;br /&gt;
echo $OUTPUT-&amp;gt;box_start($classes, $ids);&lt;br /&gt;
echo $OUTPUT-&amp;gt;box_end();&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== print_checkbox (10) ===&lt;br /&gt;
Old code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
print_checkbox($name, $value, $checked, $label, $alt, $script, $return);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$checkbox = new html_select_option();&lt;br /&gt;
$checkbox-&amp;gt;value = $value; // Required&lt;br /&gt;
$checkbox-&amp;gt;selected = $checked;&lt;br /&gt;
$checkbox-&amp;gt;text = $label;&lt;br /&gt;
$checkbox-&amp;gt;label-&amp;gt;text = $label;&lt;br /&gt;
$checkbox-&amp;gt;alt = $alt;&lt;br /&gt;
                                               &lt;br /&gt;
echo $OUTPUT-&amp;gt;checkbox($checkbox, $name);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Note: html_select_option is a component that can be rendered as a select &amp;lt;option&amp;gt;, a radio button or a checkbox. It holds sufficient information to render all these elements, except the $name variable which is attached to a moodle_select component. This is why we pass the $name string to $OUTPUT-&amp;gt;checkbox().&lt;br /&gt;
&lt;br /&gt;
=== print_container (0) ===&lt;br /&gt;
Old code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
print_container($message, $clearfix, $classes, $idbase, $return);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
if ($clearfix) {&lt;br /&gt;
    $classes .= &amp;#039; clearfix&amp;#039;;&lt;br /&gt;
}&lt;br /&gt;
echo $OUTPUT-&amp;gt;container($message, $classes, $idbase);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== print_date_selector (0) ===&lt;br /&gt;
&lt;br /&gt;
=== print_footer (0) ===&lt;br /&gt;
Old code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
print_footer($course, $usercourse, $return);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
echo $OUTPUT-&amp;gt;footer();&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Notes: No parameters are required.&lt;br /&gt;
&lt;br /&gt;
=== print_header (501) ===&lt;br /&gt;
Old code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
print_header($title, $heading, $navigation, $focus, $meta, $cache, $button, $menu, $usexml, $bodytags, $return);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$PAGE-&amp;gt;set_heading($heading); // Required&lt;br /&gt;
$PAGE-&amp;gt;set_title($title);&lt;br /&gt;
$PAGE-&amp;gt;set_cacheable($cache);&lt;br /&gt;
$PAGE-&amp;gt;set_focuscontrol($focus);&lt;br /&gt;
$PAGE-&amp;gt;set_button($button);&lt;br /&gt;
$PAGE-&amp;gt;navbar-&amp;gt;add($nav_entry[0]);&lt;br /&gt;
$PAGE-&amp;gt;navbar-&amp;gt;add($nav_entry[1]);&lt;br /&gt;
&lt;br /&gt;
echo $OUTPUT-&amp;gt;header();&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Note: Navigation code is being rewritten, this doc will then be updated with the new usage.&lt;br /&gt;
&lt;br /&gt;
=== print_heading_with_help (0) ===&lt;br /&gt;
&lt;br /&gt;
=== print_heading (0) ===&lt;br /&gt;
Old code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
print_heading($text, $align, $size, $class, $return, $id);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
echo $OUTPUT-&amp;gt;heading($text, $size, $class, $id);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Note: Use a CSS class rule to control alignment.&lt;br /&gt;
&lt;br /&gt;
=== print_heading_block (0) ===&lt;br /&gt;
&lt;br /&gt;
=== print_headline (0) ===&lt;br /&gt;
Old code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
print_headline($text, $size);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
echo $OUTPUT-&amp;gt;heading($text, $size);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== print_paging_bar (2) ===&lt;br /&gt;
&lt;br /&gt;
Old code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
print_paging_bar($totalcount, $page, $perpage, $baseurl, $pagevar, $nocurr, $return);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$pagingbar = new moodle_paging_bar();&lt;br /&gt;
$pagingbar-&amp;gt;totalcount = $totalcount; // Required&lt;br /&gt;
$pagingbar-&amp;gt;page = $page; // Required&lt;br /&gt;
$pagingbar-&amp;gt;perpage = $perpage; // Required&lt;br /&gt;
$pagingbar-&amp;gt;baseurl = $baseurl; // Required&lt;br /&gt;
$pagingbar-&amp;gt;pagevar = $pagevar;&lt;br /&gt;
echo $OUTPUT-&amp;gt;paging_bar($pagingbar);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Note: The last two instances of print_paging_bar are found in the old tablelib, which will soon be deprecated.&lt;br /&gt;
&lt;br /&gt;
Note: $nocurr has been dropped. Current page number is never displayed as a link&lt;br /&gt;
&lt;br /&gt;
=== print_scale_menu_helpbutton (0) ===&lt;br /&gt;
Old code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
print_scale_menu_helpbutton($courseid, $scale);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
echo $OUTPUT-&amp;gt;help_button(help_button::make_scale_menu($courseid, $scale));&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== print_side_block (4) ===&lt;br /&gt;
=== print_single_button (0) ===&lt;br /&gt;
Old code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
print_single_button($link, $options, $label, $method, $notusedanymore, $return, $tooltip, $disabled, $jsconfirmmessage, $formid)&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$form = new html_form();&lt;br /&gt;
$form-&amp;gt;url = new moodle_url($link, $options); // Required&lt;br /&gt;
$form-&amp;gt;button = new html_button();&lt;br /&gt;
$form-&amp;gt;button-&amp;gt;text = $label; // Required&lt;br /&gt;
$form-&amp;gt;button-&amp;gt;disabled = $disabled;&lt;br /&gt;
$form-&amp;gt;button-&amp;gt;title = $tooltip;&lt;br /&gt;
$form-&amp;gt;method = $method;&lt;br /&gt;
$form-&amp;gt;id = $formid;&lt;br /&gt;
&lt;br /&gt;
if ($jsconfirmmessage) {&lt;br /&gt;
    $confirmaction = new component_action(&amp;#039;click&amp;#039;, &amp;#039;confirm_dialog&amp;#039;, array(&amp;#039;message&amp;#039; =&amp;gt; $jsconfirmmessage));&lt;br /&gt;
    $form-&amp;gt;button-&amp;gt;add_action($confirmaction);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
$output = $OUTPUT-&amp;gt;button($form);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== print_spacer (0) ===&lt;br /&gt;
Old code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
print_spacer($height, $width, $br, $return);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$spacer = new html_image();&lt;br /&gt;
$spacer-&amp;gt;height = $height;&lt;br /&gt;
$spacer-&amp;gt;width = $width;&lt;br /&gt;
echo $OUTPUT-&amp;gt;spacer($spacer);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Note: The $br attribute has been dropped. You can simply add a line break manually if you need one.&lt;br /&gt;
&lt;br /&gt;
=== print_table (0) ===&lt;br /&gt;
Old code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$table = new stdClass();&lt;br /&gt;
$table-&amp;gt;class = &amp;#039;mytable&amp;#039;;&lt;br /&gt;
$table-&amp;gt;head  = array(&amp;#039;Firstname&amp;#039;, &amp;#039;Lastname&amp;#039;);&lt;br /&gt;
$table-&amp;gt;rowclasses = array();&lt;br /&gt;
// (other table properties here)&lt;br /&gt;
$table-&amp;gt;data = array(array(...),array(...),array(...));&lt;br /&gt;
print_table($table, $return);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$table = new html_table();&lt;br /&gt;
$table-&amp;gt;set_classes(&amp;#039;mytable&amp;#039;); // note the new style of setting CSS class&lt;br /&gt;
$table-&amp;gt;head = array(&amp;#039;First name&amp;#039;, &amp;#039;Last name&amp;#039;);&lt;br /&gt;
$table-&amp;gt;colclasses = array(&amp;#039;name fname&amp;#039;,&amp;#039;name lname&amp;#039;);&lt;br /&gt;
$table-&amp;gt;rowclasses = array();&lt;br /&gt;
// (other table properties here)&lt;br /&gt;
$table-&amp;gt;data = array(array(...),array(...),array(...));&lt;br /&gt;
echo $OUTPUT-&amp;gt;table($newtable);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Notes: The new html_table object has the same member variables as the one originally used by print_table(), but has additional, required methods. You must map the old $table object to the new html_table object, as demonstrated above and in lib/deprecatedlib.php (see old print_table function).&lt;br /&gt;
&lt;br /&gt;
=== print_textarea (55) ===&lt;br /&gt;
=== print_textfield (0) ===&lt;br /&gt;
&lt;br /&gt;
=== print_time_selector (0) ===&lt;br /&gt;
&lt;br /&gt;
=== print_user_picture (0) ===&lt;br /&gt;
&lt;br /&gt;
Old code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
print_user_picture($user, $courseid, $picture, $size, $return, $link, $target, $alttext);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code (simple):&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$userpic = new moodle_user_picture();&lt;br /&gt;
$userpic-&amp;gt;user = $user;&lt;br /&gt;
$userpic-&amp;gt;courseid = $courseid;&lt;br /&gt;
echo $OUTPUT-&amp;gt;user_picture($userpic);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code (complex: alternate text, size, different image and popup action):&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$userpic = new user_picture();&lt;br /&gt;
$userpic-&amp;gt;user = $user;&lt;br /&gt;
$userpic-&amp;gt;courseid = $courseid;&lt;br /&gt;
$userpic-&amp;gt;size = $size;&lt;br /&gt;
$userpic-&amp;gt;link = $link;&lt;br /&gt;
$userpic-&amp;gt;alttext = $alttext;&lt;br /&gt;
$userpic-&amp;gt;image-&amp;gt;src = $picture;&lt;br /&gt;
$userpic-&amp;gt;add_action(new popup_action(&amp;#039;click&amp;#039;, new moodle_url($target)));&lt;br /&gt;
&lt;br /&gt;
echo $OUTPUT-&amp;gt;user_picture($userpic);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== update_course_button (0) ===&lt;br /&gt;
&lt;br /&gt;
=== update_module_button (94) ===&lt;br /&gt;
Old code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$button = update_module_button($cm-&amp;gt;id, $course-&amp;gt;id, get_string(&amp;#039;modulename&amp;#039;, &amp;#039;workshop&amp;#039;)); // passed to print_header_simple()&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
New code:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$PAGE-&amp;gt;set_button($OUTPUT-&amp;gt;update_module_button($cm-&amp;gt;id, &amp;#039;workshop&amp;#039;));&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Note: $courseid param has been dropped.&lt;br /&gt;
&lt;br /&gt;
=== update_tag_button (0) ===&lt;br /&gt;
&lt;br /&gt;
== Non-supported functions ==&lt;br /&gt;
These functions have been completely dropped in 2.0, most likely because they were used very little or not at all. All calls to these functions in core should have been replaced.&lt;br /&gt;
=== blocks_print_group ===&lt;br /&gt;
=== print_file_picture ===&lt;br /&gt;
=== print_png ===&lt;br /&gt;
=== print_scale_menu ===&lt;br /&gt;
=== print_side_block_end ===&lt;br /&gt;
=== print_side_block_start ===&lt;br /&gt;
=== print_timer_selector ===&lt;br /&gt;
=== print_user ===&lt;br /&gt;
=== update_categories_search_button ===&lt;br /&gt;
=== update_mymoodle_icon ===&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[Developement:How_Moodle_outputs_HTML]]&lt;br /&gt;
* [[Development:Migrating your code to the 2.0 rendering_API]]&lt;br /&gt;
&lt;br /&gt;
{{CategoryDeveloper}}&lt;/div&gt;</summary>
		<author><name>1&gt;Tbannister</name></author>
	</entry>
</feed>