<?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=Course_display</id>
	<title>Course display - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Course_display"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Course_display&amp;action=history"/>
	<updated>2026-05-07T11:09:00Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Course_display&amp;diff=8359&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Course_display&amp;diff=8359&amp;oldid=prev"/>
		<updated>2024-10-18T06:53:26Z</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;Версия от 06:53, 18 октября 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=Course_display&amp;diff=8358&amp;oldid=prev</id>
		<title>1&gt;Nadavkav: New page: an old way to get roles of users in a course.   (as far as i can understand the code, it is deprecated)  and as suggested by Tim Hunt:  mdl_course_display is wrong. You need role_assignmen...</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Course_display&amp;diff=8358&amp;oldid=prev"/>
		<updated>2010-09-22T11:54:14Z</updated>

		<summary type="html">&lt;p&gt;New page: an old way to get roles of users in a course.   (as far as i can understand the code, it is deprecated)  and as suggested by Tim Hunt:  mdl_course_display is wrong. You need role_assignmen...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;an old way to get roles of users in a course. &lt;br /&gt;
&lt;br /&gt;
(as far as i can understand the code, it is deprecated)&lt;br /&gt;
&lt;br /&gt;
and as suggested by Tim Hunt:&lt;br /&gt;
&lt;br /&gt;
mdl_course_display is wrong. You need role_assignments, which means you also need contexts. Something like&lt;br /&gt;
&lt;br /&gt;
 SELECT * FROM mdl_user u&lt;br /&gt;
 JOIN mdl_role_assignments ra ON ra.userid = u.id&lt;br /&gt;
 JOIN mdl_role r ON ra.roleid = r.id&lt;br /&gt;
 JOIN mdl_context con ON ra.contextid = con.id&lt;br /&gt;
 JOIN mdl_course c ON c.id = con.instanceid AND con.contextlevel = 50&lt;br /&gt;
 WHERE r.shortname = &amp;#039;student&amp;#039; AND c.id = XXX&lt;br /&gt;
&lt;br /&gt;
will get you all the students in a course. mdl_context.instanceid points to different things depending on mdl_context.contextlevel. 50 means course, the other levels can be looked up in the accesslib.php code [http://cvs.moodle.org/moodle/lib/accesslib.php?annotate=1.514#l136 here], For example, mdl_context.contextlevel 70 is modules, then instanceid points to the mdl_course_modules table.&lt;br /&gt;
&lt;br /&gt;
If you really want to understand this, you need to read the [[Development:Roles]] documentation.&lt;/div&gt;</summary>
		<author><name>1&gt;Nadavkav</name></author>
	</entry>
</feed>