<?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%3AMigrating_to_2.0_checklist</id>
	<title>Development:Migrating to 2.0 checklist - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Development%3AMigrating_to_2.0_checklist"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:Migrating_to_2.0_checklist&amp;action=history"/>
	<updated>2026-05-06T23:01:14Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Development:Migrating_to_2.0_checklist&amp;diff=11368&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:Migrating_to_2.0_checklist&amp;diff=11368&amp;oldid=prev"/>
		<updated>2024-10-21T08:51:28Z</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:Migrating_to_2.0_checklist&amp;diff=11367&amp;oldid=prev</id>
		<title>1&gt;Jfruitet: /* Database */</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:Migrating_to_2.0_checklist&amp;diff=11367&amp;oldid=prev"/>
		<updated>2011-05-04T13:13:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Database&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Moodle 2.0}}&lt;br /&gt;
&lt;br /&gt;
These are things that OU developers have found so far to check/do in code we&amp;#039;re migrating from Moodle 1.9 to 2.0.  All information on the detail of this checklist can be found elsewhere in Moodle Docs, and particularly from the [[Development:Migrating_contrib_code_to_2.0]]&lt;br /&gt;
&lt;br /&gt;
Not all these things are essential for a rush job, but if you did all of them, then that&amp;#039;d be great.  We should really mark each one with a priority of some sort!&lt;br /&gt;
&lt;br /&gt;
Please add/edit this list!&lt;br /&gt;
&lt;br /&gt;
==Database==&lt;br /&gt;
&lt;br /&gt;
* 	Leave empty db/update.php file&lt;br /&gt;
* 	New $DB global objects with functions replace old db functions&lt;br /&gt;
* 	$DB parameters swapped to ? &lt;br /&gt;
* 	Add and strip slashes no longer required&lt;br /&gt;
* 	Remove use of ENUM and ENUMVALUES in install.xml file&lt;br /&gt;
*       Remove STATEMENTS section in install.xml file, use db/install.php or db/log.php instead.&lt;br /&gt;
* 	check use of sql_substr() &lt;br /&gt;
* 	Get_records() etc now always returning arrays, empty array in case of no records found. &lt;br /&gt;
* 	Db functions throw errors not return false on error&lt;br /&gt;
* 	DB functions offer strictness parameters e.g MUST_EXIST&lt;br /&gt;
* 	Update version.php numbers (esp required)&lt;br /&gt;
*       In version.php add $module-&amp;gt;requires = 2010080300;  // Requires this Moodle version&lt;br /&gt;
&lt;br /&gt;
==Page display==&lt;br /&gt;
&lt;br /&gt;
* 	New $OUTPUT header and footer functions&lt;br /&gt;
* Navigation links need to use $PAGE-&amp;gt;navbar&lt;br /&gt;
* 	Make sure that you instantiate the moodle form before any call to $OUTPUT-&amp;gt;header()&lt;br /&gt;
* 	Create a renderer&lt;br /&gt;
*       Change the way image urls are displayed (not $CFG-&amp;gt;pixpath any more)&lt;br /&gt;
*       CSS changes&lt;br /&gt;
**      Change styles.php to styles.css&lt;br /&gt;
**      Change page id to new structure e.g. course-format-studyplan to page-course-view-studyplan&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Roles and Permissions:==&lt;br /&gt;
&lt;br /&gt;
* 	array name to $capabilities in access.php&lt;br /&gt;
* 	Remove references to admin in access.php&lt;br /&gt;
* 	Rename legacy to archetypes in access.php&lt;br /&gt;
* 	Add manager archetype in access.php&lt;br /&gt;
* 	Ensure require_login as well as require_capability checks&lt;br /&gt;
*       isguest() is depreicated, use !isloggedin() || isguestuser() instead&lt;br /&gt;
&lt;br /&gt;
==Language strings==&lt;br /&gt;
&lt;br /&gt;
* 	Rename language folder&lt;br /&gt;
* 	Change $a to {$a} in language files&lt;br /&gt;
* 	Change popup help files to _help lang strings and shorten&lt;br /&gt;
* 	Add $string[‘pluginname’] to lang file&lt;br /&gt;
* 	Add $string[‘pluginadministration’] to lang file&lt;br /&gt;
&lt;br /&gt;
==Forms==&lt;br /&gt;
&lt;br /&gt;
* 	Param_clean parameter type removed&lt;br /&gt;
* 	type required parameter for optional_and required_param&lt;br /&gt;
* 	Replace file form elements with new filepicker&lt;br /&gt;
* 	Replace htmleditor with editor form field type&lt;br /&gt;
*       Change setHelpButton to addHelpButton. (You need to change the arguments, but the new ones are simpler.)&lt;br /&gt;
&lt;br /&gt;
==General==&lt;br /&gt;
&lt;br /&gt;
* 	Swap config_ files to edit and settings php files&lt;br /&gt;
* 	Fix whitespace &amp;amp; coding style&lt;br /&gt;
* 	rs_fetch_next_record($rs) is deprecated, in favour of the simple foreach($rs as $var). Calls to rs_close() must be replaced by $rs-&amp;gt;close();&lt;br /&gt;
* 	Check functions deprecated list: [[Development:Deprecated_functions_in_2.0]]&lt;br /&gt;
* 	Use print_error() or throw new moodle_exception not error()&lt;br /&gt;
* 	Replace all url strings e.g. in redirect() calls with moodle_url instances&lt;br /&gt;
* Move install/uninstall functions from lib to db/install.php, lib/uninstall.php&lt;br /&gt;
* Move images into pix folder (especially icon.gif), get path by calling $OUTPUT-&amp;gt;pix_url(&amp;#039;icon&amp;#039;, &amp;#039;local_whatever&amp;#039;);&lt;br /&gt;
* Add &amp;#039;supports&amp;#039; function in lib (modname_supports()) for modules (and blocks?).&lt;br /&gt;
* New Backup and Restore process - [[Development:Backup_2.0_for_developers]], [[Development:Restore_2.0_for_developers]].&lt;br /&gt;
* Add db/log.php file if you have log calls (see any of the core modules for examples).&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Development:Migrating contrib code to 2.0]]&lt;br /&gt;
* [[User:Frank Ralf/Experience of converting a module to Moodle 2]] by Sam Marshall&lt;br /&gt;
&lt;br /&gt;
[[Category:Developer]]&lt;/div&gt;</summary>
		<author><name>1&gt;Jfruitet</name></author>
	</entry>
</feed>