<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.moodle.org/22/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mits</id>
	<title>MoodleDocs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/22/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mits"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/Special:Contributions/Mits"/>
	<updated>2026-04-17T13:17:47Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Administration_via_command_line&amp;diff=98230</id>
		<title>Administration via command line</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Administration_via_command_line&amp;diff=98230"/>
		<updated>2012-06-17T16:27:41Z</updated>

		<summary type="html">&lt;p&gt;Mits: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you have shell access to your web server, you may find various CLI (command line interface) scripts useful during Moodle administration. All command line tools are located in &amp;lt;code&amp;gt;admin/cli/*&amp;lt;/code&amp;gt; directory. To avoid problems with access control, you should run them as the owner of the web server process. It is especially important for CLI installation and upgrade as they create new files in moodledata directory and the web server has to have write access to them. In Linux distributions, the user that runs the web server is usually apache or wwrun or httpd or something similar. As a root, you will probably want to execute Moodle CLI scripts like this:&lt;br /&gt;
&lt;br /&gt;
    $ cd /path/to/your/moodle/dir&lt;br /&gt;
    $ sudo -u apache /usr/bin/php admin/cli/somescript.php --params&lt;br /&gt;
&lt;br /&gt;
Most of the scripts accept common --help (or -h) parameter to display the full usage information, for example:&lt;br /&gt;
&lt;br /&gt;
    $ sudo -u apache /usr/bin/php admin/cli/install.php --help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation via command line ==&lt;br /&gt;
&lt;br /&gt;
Since version 2.0, Moodle can be installed from the command line. There are two modes of installation. In interactive mode, the install script asks you for all data needed to properly set up new Moodle site. In non-interactive mode, you must provide all required data as the script parameters and then the new site is installed silently. The parameters can be passed in the interactive mode, too. The provided values are then used as the default values during the interactive session.&lt;br /&gt;
&lt;br /&gt;
    $ sudo -u apache /usr/bin/php admin/cli/install.php --lang=cs&lt;br /&gt;
&lt;br /&gt;
== Maintenance mode ==&lt;br /&gt;
&lt;br /&gt;
To switch your site into the maintenance mode via CLI, you can use&lt;br /&gt;
&lt;br /&gt;
    $ sudo -u apache /usr/bin/php admin/cli/maintenance.php --enable&lt;br /&gt;
&lt;br /&gt;
To turn the maintenance mode off, just execute the same script with --disable parameter.&lt;br /&gt;
&lt;br /&gt;
== Offline mode ==&lt;br /&gt;
&lt;br /&gt;
In some situations, you may want to switch your Moodle site into offline mode so that it is not accessible via the web but you can not stop the web server completely (typically because there are other web pages and applications running there). If a file called &amp;lt;code&amp;gt;climaintenance.html&amp;lt;/code&amp;gt; exists in the root folder of moodledata directory, Moodle will automatically display the contents of that file instead of any other page.&lt;br /&gt;
&lt;br /&gt;
    $ cd /var/www/sites/moodle/moodledata/&lt;br /&gt;
    $ echo &#039;&amp;amp;lt;h1&amp;amp;gt;Sorry, maintenance in progress&amp;amp;lt;/h1&amp;amp;gt;&#039; &amp;amp;gt; climaintenance.html&lt;br /&gt;
&lt;br /&gt;
You can prepare a nice formatted HTML page to inform your users about the server being down and keep in the moodledata directory under a name like &amp;lt;code&amp;gt;climaintenance.off&amp;lt;/code&amp;gt; and rename it to the &amp;lt;code&amp;gt;climaintenance.html&amp;lt;/code&amp;gt; if needed.&lt;br /&gt;
&lt;br /&gt;
== Upgrading via command line ==&lt;br /&gt;
&lt;br /&gt;
Moodle can be upgraded from the command line. As with the installation script, there is either interactive or non-interactive mode of the upgrade. The script itself does not put the site into the maintenance mode, you have to do it on your own. Also, the script does not backup any data (if you read this page, you probably have some own scripts to backup your moodledata and the database, right?)&lt;br /&gt;
&lt;br /&gt;
    $ sudo -u apache /usr/bin/php admin/cli/upgrade.php --non-interactive&lt;br /&gt;
&lt;br /&gt;
Upgrading via command line is a very comfortable way of Moodle upgrade if you use [[CVS]] or [[Git|git]] checkout of the Moodle source code. See the following procedure how to upgrade your site within several seconds to the most recent version while preserving your eventual local customizations tracked in git repository:&lt;br /&gt;
&lt;br /&gt;
    $ cd /var/www/sites/moodle/htdocs/&lt;br /&gt;
    $ git fetch&lt;br /&gt;
    $ sudo -u apache /usr/bin/php admin/cli/maintenance.php --enable&lt;br /&gt;
    $ git merge origin/cvshead&lt;br /&gt;
    $ sudo -u apache /usr/bin/php admin/cli/upgrade.php&lt;br /&gt;
    $ sudo -u apache /usr/bin/php admin/cli/maintenance.php --disable&lt;br /&gt;
&lt;br /&gt;
===Issues with Upgrading via Command Line===&lt;br /&gt;
&lt;br /&gt;
if your config.php contains information about several moodle instances (distinct moodle websites and databases sharing the same codebase), then this script will silently fail&lt;br /&gt;
&lt;br /&gt;
The solution is to temporarily eliminate from config.php all but the one instance you want to upgrade &lt;br /&gt;
&lt;br /&gt;
If this is a problem for the other instances (production sites), then modify the cli script to point to a copy of config.php  (which will be the one edited to contain only one moodle instance at a time)&lt;br /&gt;
&lt;br /&gt;
== Custom site defaults ==&lt;br /&gt;
&lt;br /&gt;
During the install and upgrade via CLI, Moodle sets the administration variables to the default values. You can use different defaults. See MDL-17850 for details. Shortly, all you need to do is to add a file &amp;lt;code&amp;gt;local/defaults.php&amp;lt;/code&amp;gt; into your Moodle installation. The format of the file is like&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$defaults[&#039;pluginname&#039;][&#039;settingname&#039;] = &#039;settingvalue&#039;; // for plugins&lt;br /&gt;
$defaults[&#039;moodle&#039;][&#039;settingname&#039;] = &#039;settingvalue&#039;;     // for core settings&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These defaults are used during install, upgrade and are also displayed as defaults at the Site administration pages.&lt;br /&gt;
&lt;br /&gt;
== Reset user password ==&lt;br /&gt;
&lt;br /&gt;
If you happen to forget your admin password (or you want to set a password for any other user of your Moodle system), you can use reset_password.php script. The script sets the correctly salted password for the given user.&lt;br /&gt;
&lt;br /&gt;
    $ sudo -u apache /usr/bin/php admin/cli/reset_password.php&lt;br /&gt;
&lt;br /&gt;
== MySQL storage engine conversion ==&lt;br /&gt;
&lt;br /&gt;
If you run your Moodle site with MySQL database backend and use the default MyISAM as the storage engine for your tables, you may want to convert them to use some more reliable engine like InnoDB (actually, you should want to switch to PostgreSQL ;-) anyway).&lt;br /&gt;
&lt;br /&gt;
    $ sudo -u apache /usr/bin/php admin/cli/mysql_engine.php --engine=InnoDB&lt;br /&gt;
&lt;br /&gt;
== Running cron via command line ==&lt;br /&gt;
&lt;br /&gt;
In versions 1.x, you could execute admin/cron.php either from command line or via the web. Since Moodle 2.0, only admin/cli/cron.php script can be run via command line.&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Administration en ligne de commande]]&lt;br /&gt;
[[ja:コマンドライン経由の管理]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Lesson_module&amp;diff=98198</id>
		<title>Lesson module</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Lesson_module&amp;diff=98198"/>
		<updated>2012-06-14T15:43:17Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Activities}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Lesson icon.gif]] The lesson module presents a series of HTML pages to the student who is usually asked to make some sort of choice underneath the content area. The choice will send them to a specific page in the Lesson. In a Lesson page&#039;s simplest form, the student can select a continue button at the bottom of the page, which will send them to the next page in the Lesson. &lt;br /&gt;
&lt;br /&gt;
[[Image:Lessonexample.png]]&lt;br /&gt;
&lt;br /&gt;
* [[Lesson settings]]&lt;br /&gt;
* [[Building Lesson]]&lt;br /&gt;
* [[Using Lesson]]&lt;br /&gt;
* [[Lesson FAQ]] &lt;br /&gt;
&lt;br /&gt;
There are 2 basic Lesson page types that the student will see: question pages and content pages.  There are also several advanced navigational pages which can meet more specialized needs of the Teacher. The Lesson module was designed to be adaptive and to use a student&#039;s choices to create a self directed lesson.   &lt;br /&gt;
&lt;br /&gt;
The main difference between a Lesson and other activity modules available in Moodle comes from its adaptive ability. With this tool, each choice the students makes can show a different teacher response/comment and send the student to a different page in the lesson. Thus with planning, the Lesson module can customize the presentation of content and questions to each student with no further action required by the teacher.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Lesson]]&lt;br /&gt;
[[es:Lecciones]]&lt;br /&gt;
[[eu:Ikasgaiak]]&lt;br /&gt;
[[fr:Leçon]]&lt;br /&gt;
[[de:Lektion]]&lt;br /&gt;
[[ja:レッスンモジュール]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Verify_Database_Schema&amp;diff=98125</id>
		<title>Verify Database Schema</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Verify_Database_Schema&amp;diff=98125"/>
		<updated>2012-06-11T16:28:11Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Installing Moodle}}&lt;br /&gt;
If you have been upgrading your Moodle site over several versions, it is possible (likely even) that some differences may have crept in between the database table definitions (the &amp;quot;schema&amp;quot;) in your database and the version you would get creating a new empty site. This happens because of small errors or oversights in the upgrade scripts. Most of these differences are not harmful, but some may cause strange or unexpected errors. For example, if a default value has been added to a field and this was not reflected in an upgrade script code that assumes the presence of the default may fail to work as expected. &lt;br /&gt;
&lt;br /&gt;
The solution is after doing an upgrade (or, if your problem is that the upgrade fails, before) to compare the database schema of the &amp;quot;production&amp;quot; site to that of a newly created site (where no upgrades have been performed) using &#039;&#039;&#039;exactly&#039;&#039;&#039; the same code base. There are a number of ways of doing this, but this article outlines a simple way using the Unix command line.&lt;br /&gt;
&lt;br /&gt;
* Complete the upgrade&lt;br /&gt;
* Generate the database schema from your recently upgraded site using the following command:&lt;br /&gt;
    mysqldump -d -u root -p &#039;&#039;myproductiondb&#039;&#039; &amp;gt;production.schema&lt;br /&gt;
* Copy the code  of your production database to a new (web accessible) location (this is important, it *must* be the same version)&lt;br /&gt;
* Create a new, empty database and moodledata area for the new site as per the [[Installation]] instructions&lt;br /&gt;
* Edit the config.php file to point at the new database and locations, or delete it and use the install script&lt;br /&gt;
* Run the install script to generate the (if applicable) config.php file and the database (admin and site values are not important)&lt;br /&gt;
* Generate the database schema from your new site using the following command:&lt;br /&gt;
    mysqldump -d -u root -p &#039;&#039;mycleandb&#039;&#039; &amp;gt;clean.schema&lt;br /&gt;
* Run the following command to detect the differences&lt;br /&gt;
    diff -u production.schema clean.schema &amp;gt;db.diff&lt;br /&gt;
&lt;br /&gt;
You can now look at &#039;&#039;db.diff&#039;&#039; with your favorite editor to see the differences.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; The above obviously applies to MySQL databases. Other databases are likely to have a similar function to dump only the schema. For example PostgreSQL has the &#039;&#039;&#039;pg_dump&#039;&#039;&#039; command. The remainder of the discussion still applies. &lt;br /&gt;
&lt;br /&gt;
==Interpreting the diff file==&lt;br /&gt;
&lt;br /&gt;
Firstly here&#039;s a (real) example:&lt;br /&gt;
&lt;br /&gt;
     --&lt;br /&gt;
     -- Table structure for table `mdl_backup_config`&lt;br /&gt;
        @@ -129,11 +93,11 @@&lt;br /&gt;
         DROP TABLE IF EXISTS `mdl_backup_config`;&lt;br /&gt;
         CREATE TABLE `mdl_backup_config` (&lt;br /&gt;
    -  `id` int(10) unsigned NOT NULL auto_increment,&lt;br /&gt;
    +  `id` bigint(10) unsigned NOT NULL auto_increment,&lt;br /&gt;
       `name` varchar(255) NOT NULL default &#039;&#039;,&lt;br /&gt;
       `value` varchar(255) NOT NULL default &#039;&#039;,&lt;br /&gt;
        PRIMARY KEY  (`id`),&lt;br /&gt;
    -  UNIQUE KEY `name` (`name`)&lt;br /&gt;
    +  UNIQUE KEY `mdl_backconf_nam_uix` (`name`)&lt;br /&gt;
         ) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT=&#039;To store backup configuration variables&#039;;&lt;br /&gt;
&lt;br /&gt;
The file may have lots of blocks of changes. The - lines show lines to be taken out and the + lines the ones to replace them (from the production to the clean). So here, the int has been replaced with a bigint and the key name changed. Both of these, technically, should have been changed at some point by upgrade scripts but have been missed. In this case they are unlikely to affect the operation of Moodle. &lt;br /&gt;
&lt;br /&gt;
===Too many changes to track manually?===&lt;br /&gt;
&lt;br /&gt;
You can also use database management programs to synchronize old and new Moodle databases.&lt;br /&gt;
&lt;br /&gt;
For example [http://wb.mysql.com/ MySQL Workbrench] for MySQL databases.&lt;br /&gt;
&lt;br /&gt;
This is very useful, if You have a lot of changes.&lt;br /&gt;
&lt;br /&gt;
If you can work a Unix/Linux command line the Python script [http://schemasync.org/ Schema Sync] provides a quick and simple way to generate all the commands to update your database.&lt;br /&gt;
&lt;br /&gt;
==Should I worry?==&lt;br /&gt;
&lt;br /&gt;
Changes in field types (as long as they are compatible) and key name changes seem to be the common issues but &#039;&#039;&#039;should&#039;&#039;&#039; not cause problems. Things to look out for would be along the lines of missing fields and changes to default values.&lt;br /&gt;
&lt;br /&gt;
If you are about to upgrade to Moodle 2.0 you should be more concerned. In order for the upgrade to proceed smoothly it is a very good idea to correct these problems.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* The missing indexes report in &#039;&#039;SiteAdmin-&amp;gt;Misc-&amp;gt;XMLDB editor-&amp;gt;Check Indexes&#039;&#039;&lt;br /&gt;
* [http://moodle.org/mod/forum/view.php?id=45 Moodle Databases Forum]&lt;br /&gt;
&lt;br /&gt;
[[de:Datenbank-Schema prüfen]]&lt;br /&gt;
[[fr:Vérification du schéma de la base de données]]&lt;br /&gt;
[[ja:データベーススキーマの確認]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Upgrading_to_Moodle_2.2&amp;diff=97744</id>
		<title>Upgrading to Moodle 2.2</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Upgrading_to_Moodle_2.2&amp;diff=97744"/>
		<updated>2012-05-15T15:31:55Z</updated>

		<summary type="html">&lt;p&gt;Mits: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Installing Moodle}}&lt;br /&gt;
You can upgrade to Moodle 2.2 from Moodle 2.1, 2.0 or 1.9. If you are upgrading from 2.0, please also read [https://docs.moodle.org/21/en/Upgrading_to_Moodle_2.1 Upgrading to Moodle 2.1] . If upgrading from 1.9, please also read that and [https://docs.moodle.org/20/en/Upgrading_to_Moodle_2.0 Upgrading to Moodle 2.0]. After reading this you can upgrade directly to 2.2. &lt;br /&gt;
&lt;br /&gt;
If you are using an earlier version of Moodle, you must upgrade to the latest Moodle 1.9.x first.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We advise that you test the upgrade first on a COPY of your production site, to make sure it works as you expect.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==System requirements==&lt;br /&gt;
&lt;br /&gt;
* PHP must be &#039;&#039;&#039;5.3.2&#039;&#039;&#039; or later&lt;br /&gt;
** Required PHP extensions: iconv, curl, ctype, zip, simplexml, spl, pcre, dom, xml, json&lt;br /&gt;
** Required PHP memory_limit at least 40MB (64MB or more recommended if you have a choice)&lt;br /&gt;
* Databases should be one of the following:&lt;br /&gt;
** MySQL 5.0.25 or later  (InnoDB storage engine highly recommended)&lt;br /&gt;
** PostgreSQL 8.3 or later&lt;br /&gt;
** Oracle 10.2 or later&lt;br /&gt;
** MS SQL 2005 or later&lt;br /&gt;
* Any standards-supporting browser from the past few years, for example:&lt;br /&gt;
** Firefox 3 or later &lt;br /&gt;
** Safari 3 or later &lt;br /&gt;
** Google Chrome 4 or later&lt;br /&gt;
** Opera 9 or later&lt;br /&gt;
** MS Internet Explorer 7 or later&lt;br /&gt;
&lt;br /&gt;
Note: The above system requirements are unchanged from Moodle 2.1.&lt;br /&gt;
&lt;br /&gt;
==Before upgrading please... ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039;: The upgrade process will irreversibly modify the contents of your database &#039;&#039;&#039;and&#039;&#039;&#039; your moodledata file storage area. If something goes wrong you &#039;&#039;&#039;cannot&#039;&#039;&#039; go back. It is vital that you take good backups of both moodledata and the database in case you have problems with the upgrade. If you are not sure how see [[Site backup]] or ask in the moodle.org forums (explaining what your operating system is).  &lt;br /&gt;
&lt;br /&gt;
* Read the [[:dev:Moodle 2.2 release notes|Moodle 2.2 release notes]]  and check the [[:Category:New features|list of new features]]&lt;br /&gt;
* Check your site to make sure it meets all system requirements for 2.2 in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Server &amp;gt; [[Environment]]&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Do a full database backup!&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Do a full moodledata backup&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Check your backups carefully&#039;&#039;&#039;&lt;br /&gt;
* Remember to purge PHP cache if using any PHP accelerator&lt;br /&gt;
&lt;br /&gt;
==Possible issues that may affect you==&lt;br /&gt;
&lt;br /&gt;
* If you have custom reports, there have been changes that may require (simple) changes to be made to their code. See the developer documentation [[:dev:General report plugins]] for details.&lt;br /&gt;
* Global search has been removed from core as it was broken.  (A new global search is being written for 2.3.)&lt;br /&gt;
* Some web service functions have been deprecated.  They still work, but check any web service connections you may have to your Moodle for the future.&lt;br /&gt;
&lt;br /&gt;
==Checking database schema - old sites==&lt;br /&gt;
&lt;br /&gt;
If your Moodle site has been upgraded through many prior versions it is possible that there will be some problems with the database schema (compared to a fresh 2.0 installation). This may cause the upgrade to fail. If your site started life prior to Moodle 2.0 it is a very good idea to check and correct the database schema before upgrading. See [[Verify Database Schema]]. You should also run the database integrity checks in the XMLDB editor, see the &#039;See also&#039; for a link to extra scripts to check for other discrepancies.&lt;br /&gt;
&lt;br /&gt;
==Now upgrade==&lt;br /&gt;
&lt;br /&gt;
Once you have satisfied the requirements for Moodle 2.2, follow the instructions on the [[Upgrading|upgrading]] page.&lt;br /&gt;
&lt;br /&gt;
On Linux servers, Moodle 2.2 supports running the [[CLI|upgrade from the command line]], rather than through a web browser. This is likely to be more reliable, particularly for large sites.&lt;br /&gt;
&lt;br /&gt;
==After upgrade==&lt;br /&gt;
&lt;br /&gt;
The config.php file from your 2.0 installation should work fine but if you take a look at config-dist.php that came with Moodle 2.0 there are more/different options available (e.g. database drivers and settings). It&#039;s a good idea to map your old config.php settings to a new one based on the 2.2 config-dist.php.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[dev:Moodle 2.2 release notes|Moodle 2.2 release notes]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Mise à jour à Moodle 2.2]]&lt;br /&gt;
[[ja:Moodle2.2へのアップグレード]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=External_database_enrolment&amp;diff=97059</id>
		<title>External database enrolment</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=External_database_enrolment&amp;diff=97059"/>
		<updated>2012-04-19T15:26:34Z</updated>

		<summary type="html">&lt;p&gt;Mits: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Enrolment}}&lt;br /&gt;
Location: External database edit settings link in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Enrolments &amp;gt; Manage enrol plugins&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You may use a external database (of nearly any kind) to control your enrolments. It is assumed your external database contains a field containing a course ID, a field containing a user ID, and optionally a field containing a role. These are compared against fields that you choose in the local course, user tables, and role tables.&lt;br /&gt;
&lt;br /&gt;
The following are the supported data sources, but note that you will need to have to compiled PHP with the appropriate options or through [[ODBC]].&lt;br /&gt;
&lt;br /&gt;
*access&lt;br /&gt;
*ado&lt;br /&gt;
*mssql&lt;br /&gt;
*borland_ibase&lt;br /&gt;
*csv&lt;br /&gt;
*db2&lt;br /&gt;
*fbsql&lt;br /&gt;
*firebird&lt;br /&gt;
*ibase&lt;br /&gt;
*informix72&lt;br /&gt;
*informix&lt;br /&gt;
*mysql&lt;br /&gt;
*mysqlt&lt;br /&gt;
*oci805&lt;br /&gt;
*oci8&lt;br /&gt;
*oci8po&lt;br /&gt;
*odbc&lt;br /&gt;
*odbc_mssql&lt;br /&gt;
*odbc_oracle&lt;br /&gt;
*oracle&lt;br /&gt;
*postgres64&lt;br /&gt;
*postgres7&lt;br /&gt;
*postgres&lt;br /&gt;
*proxy&lt;br /&gt;
*sqlanywhere&lt;br /&gt;
*sybase&lt;br /&gt;
*vfp&lt;br /&gt;
&lt;br /&gt;
== Enrolment &amp;amp; Unenrolment ==&lt;br /&gt;
&lt;br /&gt;
External database enrolment happens at the moment when a user logs into Moodle. The plugin will attempt to automatically enrol the student in all their courses according to the data in the external database and, optionally, create empty courses where they do not already exist. To check if it is working, you can log in as a student and then check that their list of courses is as you would expect. &lt;br /&gt;
&lt;br /&gt;
The process also unenrols users from courses if they are no longer in the database. User records are marked according to their original enrolment method. Therefore the external database plugin can only unenrol users who were enroled by the plugin in the first place.&lt;br /&gt;
&lt;br /&gt;
== Hidden Courses ==&lt;br /&gt;
&lt;br /&gt;
Courses that are set to &amp;quot;Course is not available to students&amp;quot; can be ignored for enrolment purposes by setting the &amp;quot;enrol_db_ignorehiddencourse&amp;quot; to &#039;&#039;&#039;yes&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Enrolment &amp;amp; Roles ==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;enrol_db_defaultcourseroleid&amp;quot; setting in the plugin settings page specifies the role that the user will take when they are added to the course. The default setting will set them to the course default setting (initially &amp;quot;student&amp;quot;). However, you can specify a field in the external table (specified in the &amp;quot;enrol_db_remoterolefield&amp;quot; setting) that contains the short name for the user&#039;s role. This could, for example, be used to enrol both students and teachers into courses using a suitably configured database. &lt;br /&gt;
&lt;br /&gt;
== Creating Courses ==&lt;br /&gt;
&lt;br /&gt;
Optionally courses that do not exist in the Moodle site can be created. Switch the &amp;quot;enrol_db_autocreate&amp;quot; option to &amp;quot;yes&amp;quot; in the plugin settings. You can additionally specify the Category into which the new course will be placed and may also specify a &amp;quot;template&amp;quot; course from which the new course will be copied. &lt;br /&gt;
&lt;br /&gt;
== Synchronization Script ==&lt;br /&gt;
&lt;br /&gt;
A script is provided that can synchronize all your user enrollments at once - both adding and removing user enrolments (and creating courses if specified). The script is called enrol_database_sync.php and is found in the enrol/database folder.&lt;br /&gt;
&lt;br /&gt;
This script is meant to be called from a system cronjob to sync moodle enrolments with enrolments in the external database. You need to make sure all the users present in the external enrolments are already created in moodle. If you are using external authentication plugins (db, ldap, etc.) you can use the scripts provided by those plugins to synchronize your users before running this script.&lt;br /&gt;
&lt;br /&gt;
Example cron entry for Moodle 2.0&lt;br /&gt;
    # 5 minutes past 4am&lt;br /&gt;
    5 4 * * * /usr/bin/php -c /path/to/php.ini /path/to/moodle/enrol/database/cli/sync.php&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* If you have a large number of enrolments, you may want to raise the memory limits by passing -d memory_limit=256M&lt;br /&gt;
* For debugging &amp;amp; better logging, you are encouraged to use in the command line: -d log_errors=1 -d error_reporting=E_ALL -d display_errors=0 -d html_errors=0&lt;br /&gt;
* This only works for users that already exist in your Moodle site (see comment above)&lt;br /&gt;
&lt;br /&gt;
== Setting It Up (How to) ==&lt;br /&gt;
&lt;br /&gt;
You will need to perform (as a minimum) the following steps to enable external database enrolment - only a single table is required in the database which contains a record for every user/course combination. If the table is large it is a good idea to make sure appropriate indexes have been created:&lt;br /&gt;
&lt;br /&gt;
* Use an existing database or create a new one. Use an existing or create a new table with the following minimum fields:&lt;br /&gt;
** course identifier (to match unique course identifier in Moodle)&lt;br /&gt;
** user identifier (to match unique user identifier in Moodle)&lt;br /&gt;
** (optional) role identifier (to match unique role identifier in Moodle)&lt;br /&gt;
* Populate the database table. Each user/course combination to have a record in the table&lt;br /&gt;
* In Moodle, go to Site Administration =&amp;gt; Courses =&amp;gt; Enrolments, find External Database in the list and click Settings&lt;br /&gt;
* In the top panel, select the database type (make sure you have the necessary configuration in PHP for that type) and then supply the information to connect to the database.&lt;br /&gt;
* The middle panel creates the mapping between Moodle and the external database. The first three settings are for the local (Moodle) field names and the last three for the remote (external database) settings. They are in the same order.&lt;br /&gt;
** enrol_localcoursefield / enrol_remotecoursefield - in Moodle the name of the field in the course settings the uniquely identifies the course (e.g., idnumber). In the external database the name of the matching field.&lt;br /&gt;
** enrol_localuserfield / enrol_remoteuserfield - in Moodle the name of the field in the user profile that uniquely identified the user (e.g., idnumber). In the external database the name of the matching field.&lt;br /&gt;
** enrol_db_localrolefield / enrol_db_remoterolefield - (optional) in Moodle the name of the field in the role edit page the uniquely identifies the role (e.g., shortname). In the external database the name of the matching field.&lt;br /&gt;
* The Roles panel specifies the role that the user will get in the course if their role is not specified in the external database.&lt;br /&gt;
* The final panel enables auto creation of courses.&lt;br /&gt;
* Save changes, and then tick the box to enable external database enrolment.&lt;br /&gt;
&lt;br /&gt;
== Database enrolment does not appear in the course enrolment drop down menu. Why? ==&lt;br /&gt;
&lt;br /&gt;
The course enrolment drop down menu only lists [[Enrolment_plugins#Interactive_enrolment|&#039;&#039;&#039;interactive&#039;&#039;&#039; enrolment plugins]]. External database enrolment is not such a plugin, so it doesn&#039;t appear in the list. Similarly, the &amp;quot;Course Enrollable&amp;quot; setting (in the Course Settings) page also only applies to interactive enrolment plugins and has no effect on external database enrollment. &lt;br /&gt;
&lt;br /&gt;
As of this writing, the only interactive enrolment plugins are &#039;&#039;manual&#039;&#039; (also know as &#039;&#039;internal&#039;&#039;), &#039;&#039;paypal&#039;&#039; and &#039;&#039;authorize.net&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Field Mapping Example: ==&lt;br /&gt;
Choose your fields from the Moodle database:&lt;br /&gt;
&lt;br /&gt;
*enrol_localcoursefield:  A course identifier from mdl_course, e.g. &amp;quot;idnumber&amp;quot;&lt;br /&gt;
*enrol_localuserfield: A user identifier from mdl_user, e.g. &amp;quot;idnumber&amp;quot;&lt;br /&gt;
*enrol_localrolefield: (optional) A role identifier from mdl_role, e.g. &amp;quot;shortname&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Create a view in your external database which matches the chosen field values from Moodle:&lt;br /&gt;
&lt;br /&gt;
*enrol_remotecoursefield: A matching course identifier from your external database table, e.g. &amp;quot;course_number&amp;quot;&lt;br /&gt;
*enrol_remoteuserfield: A matching user identifier from your external database table, e.g. &amp;quot;userid&amp;quot;&lt;br /&gt;
*enrol_remoterolefield: (optional) A matching role identifier from your external database table, e.g. &amp;quot;role_name&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Potential Gotchas ==&lt;br /&gt;
&lt;br /&gt;
* It almost goes without saying that the integrity of the external database is important. If data is missing from the database then there is a potential for users being unenrolled from some or all of their courses. The unenrollment process will remove them from any group assignments and also poll each module type to give the module the option of removing that user&#039;s data if appropriate (for example, however, forum posts are never deleted). It is therefore prudent that you take the utmost care to ensure that the data in the external bass is correct at all times.&lt;br /&gt;
* &#039;&#039;&#039;Minor Security Issue&#039;&#039;&#039; Consider that if the ID field you use to identify your students is editable by the students (in their profile), then there is a potential for them changing this to the id of another valid student and gaining access to resources that they should not. However, they will still appear as themselves, they cannot impersonate the other user or otherwise gain access to their resources.&lt;br /&gt;
&lt;br /&gt;
==Errors and Diagnostics==&lt;br /&gt;
&lt;br /&gt;
The plugin produces a number of diagnostic messages and/or errors which are recorded to the PHP error log (as defined in the php.ini file). In addition messages about courses that are in the database for the user but that do not exist in the Moodle site will only be produced if debugging is set to ALL or DEVELOPER.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=49475 MySQL enrolment plugin doesn&#039;t seem to work] forum discussion&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=74133 Someone explain external database enrolment, please??] forum discussion&lt;br /&gt;
*Example Setup [https://docs.moodle.org/en/Talk:External_database_enrolment#Example_External_Enrollment] Example Database Enrollment Setup&lt;br /&gt;
&lt;br /&gt;
[[es:Matriculación Base de Datos Externa]]&lt;br /&gt;
[[fr:Base de données externe]]&lt;br /&gt;
[[de:Einschreibung über externe Datenbank]]&lt;br /&gt;
[[ja:外部データベース登録]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Manual_enrolment&amp;diff=96366</id>
		<title>Manual enrolment</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Manual_enrolment&amp;diff=96366"/>
		<updated>2012-03-09T16:09:14Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Enrolment}}&lt;br /&gt;
The manual enrolments plugin allows users to be enrolled manually via a link in the course administration settings. The plugin has to be enabled by the site administrator (see [[Enrolment plugins]]) and should normally be enabled as certain other enrolment plugins, such as self enrolment, require it.&lt;br /&gt;
&lt;br /&gt;
==Course settings==&lt;br /&gt;
===Checking you have manual enrolment in your course===&lt;br /&gt;
*In a course, go to &#039;&#039;Settings &amp;gt; Course administration &amp;gt; Uusers &amp;gt; Enrolment methods&#039;&#039;&lt;br /&gt;
*Make sure Manual enrolments has its &amp;quot;eye&amp;quot; opened:&lt;br /&gt;
&lt;br /&gt;
[[File:Manualenrolments.png]]&lt;br /&gt;
&lt;br /&gt;
===Editing the manual enrolment method===&lt;br /&gt;
&lt;br /&gt;
Managers (and any other users with the capability [[Capabilities/enrol/manual:config|enrol/manual:config]]) can edit the manual enrolment method in the course and set the default enrolment period and default role in &#039;&#039;Settings &amp;gt; Course administration &amp;gt; Users &amp;gt; Enrolment methods&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:Defaultenrolmentperiod.png]]&lt;br /&gt;
&lt;br /&gt;
==Admin settings==&lt;br /&gt;
*Default settings for manual enrolment in courses may be specified in &#039;&#039;Settings&amp;gt;Site administration&amp;gt;plugins&amp;gt;enrolments&amp;gt;Manual enrolments&#039;&#039;. These are:&lt;br /&gt;
**Add instance to new courses- if this is enabled, then whenever a new course is created, manual enrolments will automatically be enabled&lt;br /&gt;
**Enable manual enrolments - this makes this plugin available throughout Moodle and it is advisable to do this.&lt;br /&gt;
**Default enrolment period - this sets the default length of enrolment (in seconds) and may be altered by a teacher in a course.&lt;br /&gt;
**Default role - this sets the default role, which is normally student but may be altered by a teacher in a course.&lt;br /&gt;
&lt;br /&gt;
==Manual enrolment capabilities==&lt;br /&gt;
&lt;br /&gt;
*[[Capabilities/enrol/manual:config|Configure manual enrol instances]]&lt;br /&gt;
*[[Capabilities/enrol/manual:enrol|Enrol users]]&lt;br /&gt;
*[[Capabilities/enrol/manual:manage|Manage user enrolments]]&lt;br /&gt;
*[[Capabilities/enrol/manual:unenrol|Unenrol users from the course]]&lt;br /&gt;
*[[Capabilities/enrol/manual:unenrolself|Unenrol self from the course]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[Enrolled users]] including option to manually enrol a user in the course&lt;br /&gt;
&lt;br /&gt;
[[de:Manuelle Einschreibung]]&lt;br /&gt;
[[ja:手動登録]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Capabilities/enrol/manual:config&amp;diff=96309</id>
		<title>Capabilities/enrol/manual:config</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Capabilities/enrol/manual:config&amp;diff=96309"/>
		<updated>2012-03-06T15:13:44Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Capabilities}}&lt;br /&gt;
*This allows a user to edit the [[Manual enrolment]] method and set the default enrolment period and default role in &#039;&#039;Settings &amp;gt; Course administration &amp;gt; Users &amp;gt; Enrolment methods&lt;br /&gt;
*This capability is allowed for the default role of manager only&lt;br /&gt;
&lt;br /&gt;
[[File:Defaultenrolmentperiod.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Capabilities|Enrol]]&lt;br /&gt;
[[Category:Enrolment]]&lt;br /&gt;
&lt;br /&gt;
[[ja:ケイパビリティ/enrol/manual:config]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Category_enrolments&amp;diff=96087</id>
		<title>Category enrolments</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Category_enrolments&amp;diff=96087"/>
		<updated>2012-02-24T17:56:48Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Enrolment}}&lt;br /&gt;
&lt;br /&gt;
The category enrolments plugin allows users to be enrolled in a category as opposed to individual courses. The plugin has to be enabled by the site administrator (see [[Enrolment plugins]]). &lt;br /&gt;
&lt;br /&gt;
Note: It is recommended that [[Cohort sync]] is used in preference to category enrolments.&lt;br /&gt;
&lt;br /&gt;
==Settings for category enrolment==&lt;br /&gt;
&lt;br /&gt;
*Go to the category into which you wish to enrol users. &#039;&#039;&#039;Note:&#039;&#039;&#039; You need to have category rights (manager or administrator)&lt;br /&gt;
&lt;br /&gt;
*In the &#039;&#039;Settings&#039;&#039; box,click &#039;&#039;Assign roles&#039;&#039;. The list of possible roles you can assign will appear:&lt;br /&gt;
[[File:Categoryassign.png]]&lt;br /&gt;
&lt;br /&gt;
== Admin settings for category enrolment==&lt;br /&gt;
&lt;br /&gt;
The category enrolment plugin may be enabled or disabled throughout the site in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Enrolments&amp;gt; Manage enrol plugins.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Assigning teachers or students to a category===&lt;br /&gt;
&lt;br /&gt;
*By default, only managers and course creators can be assigned category-wide. If you want to add teachers or students then the site administrator needs to tick the &amp;quot;category&amp;quot; box in their role in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;.&lt;br /&gt;
*To ensure they will be automatically assigned as teachers/students in any new courses you make, the administrator needs to set to &amp;quot;allow&amp;quot; the capability  &#039;&#039;enrol/category:synchronised&#039;&#039; for the role in question in &#039;&#039;Settings &amp;gt; Site Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Enrolcategorysync.png]]&lt;br /&gt;
&lt;br /&gt;
[[ja:カテゴリ登録]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Cohort_sync&amp;diff=95879</id>
		<title>Cohort sync</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Cohort_sync&amp;diff=95879"/>
		<updated>2012-02-15T15:30:11Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Enrolment}}&lt;br /&gt;
Cohorts, or site-wide groups, enable all members of a cohort to be enrolled in a course in one action, either manually or synchronised automatically.&lt;br /&gt;
&lt;br /&gt;
==Enrolling a cohort in a course==&lt;br /&gt;
&lt;br /&gt;
In order to actually enrol users from a Cohort into courses the &#039;&#039;Cohort-Sync&#039;&#039; Enrollment plugin needs to be added to the enrollment methods for the course. The Administrator will first need to enable the &#039;&#039;Cohort-Sync&#039;&#039; enrolment plugin site wide (&#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Enrolments&#039;&#039;) and then add it to the required Course: (&#039;&#039;Settings &amp;gt; Course administration &amp;gt; Users &amp;gt; Enrolment Methods&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Cohortsync.png]]&lt;br /&gt;
&lt;br /&gt;
At this stage the &#039;&#039;Cohort-Sync&#039;&#039; instance for the course is edited and the appropriate Cohort selected. The role to which the Cohort users are assigned is also selected at this point (typically Student).&lt;br /&gt;
&lt;br /&gt;
Visiting the &#039;&#039;Settings &amp;gt; Course administration &amp;gt; Users &amp;gt; Enrolled Users&#039;&#039; page will show users enrolled via the &#039;&#039;Cohort-Sync&#039;&#039; plugin. &lt;br /&gt;
&lt;br /&gt;
Note that, by default, a teacher cannot add this plugin to their course. It needs to be configured by an Administrator or a user with the Manager role.&lt;br /&gt;
&lt;br /&gt;
The required capabilities for setting up a cohort sync are:&lt;br /&gt;
* moodle/course:enrolconfig in the course context&lt;br /&gt;
* moodle/cohort:config in the course context&lt;br /&gt;
* moodle/cohort:view in the same context as category&lt;br /&gt;
&lt;br /&gt;
The required capabilities for manually enrolling cohort members are:&lt;br /&gt;
* the same as cohort sync (note: this is a bug MDL-28431)&lt;br /&gt;
* enrol/manual:enrol in course context&lt;br /&gt;
* moodle/course:enrolreview in course context&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[Cohorts]] for information on how to create a cohort&lt;br /&gt;
&lt;br /&gt;
[[de:Einschreibung über globale Gruppen]]&lt;br /&gt;
[[ja:コーホート同期]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Cohorts&amp;diff=95860</id>
		<title>Cohorts</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Cohorts&amp;diff=95860"/>
		<updated>2012-02-14T15:20:08Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grouping users}}&lt;br /&gt;
Cohorts, or site-wide groups, enable all members of a cohort to be enrolled in a course in one action, either manually or synchronised automatically.&lt;br /&gt;
 &lt;br /&gt;
==Creating a cohort==&lt;br /&gt;
&lt;br /&gt;
Cohorts can be created by site administrators and other users with appropriate permissions.&lt;br /&gt;
&lt;br /&gt;
* Access &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Cohorts&#039;&#039;&lt;br /&gt;
[[File:Createcohort.png]]&lt;br /&gt;
* Click the Add button&lt;br /&gt;
*&#039;&#039;&#039;NOTE&#039;&#039;&#039; In the dropdown you can choose between making your cohort available throughout the site &amp;quot;system&amp;quot; or in a named category.&lt;br /&gt;
*Complete the details and save the changes.&lt;br /&gt;
* Follow the assign link opposite the cohort name in the list of available cohorts.&lt;br /&gt;
[[File:Assigncohort.png]]&lt;br /&gt;
* Select potential users from the list then click the Add button.&lt;br /&gt;
&lt;br /&gt;
To synchronise cohort members with course participants, the [[Cohort sync]] enrolment plugin should be enabled in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Enrolments &amp;gt; Manage enrol plugins&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Adding users to a cohort in bulk==&lt;br /&gt;
&lt;br /&gt;
{{New features}}#Access &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Bulk user actions&#039;&#039;&lt;br /&gt;
#Find users by setting an appropriate filter&lt;br /&gt;
#Add users from the available list to the selected list&lt;br /&gt;
#Choose &#039;Add to cohort&#039; with selected users&lt;br /&gt;
&lt;br /&gt;
==Uploading users to a cohort==&lt;br /&gt;
&lt;br /&gt;
{{New features}}An administrator can upload users via CSV file to existing cohorts as follows:&lt;br /&gt;
#Access &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Upload users&#039;&#039;&lt;br /&gt;
#Upload a text file with the following format:&lt;br /&gt;
&lt;br /&gt;
 username,password,firstname,lastname,email, cohort1&lt;br /&gt;
 tomjones,Pass1234*,Tom,Jones,tomjones@example.com, year3&lt;br /&gt;
 marysmith,Pass1234*,Mary,Smith,marysmith@example.com, year4&lt;br /&gt;
&lt;br /&gt;
where year3 and year4 are the &#039;&#039;&#039;cohort ids&#039;&#039;&#039; of existing cohorts (i.e. &#039;&#039;not their names&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[http://www.youtube.com/watch?v=FMWZW_n0eVI A three minute Cohort in Moodle 2.0 video]&lt;br /&gt;
*[http://www.youtube.com/watch?v=dMqaeOGXuHQ Cohorts in Moodle 2.0 video]&lt;br /&gt;
*[http://www.somerandomthoughts.com/blog/2011/11/22/using-cohorts-with-moodle-2-2/ Using cohorts with Moodle 2.2] blog entry by Gavin Henrick&lt;br /&gt;
&lt;br /&gt;
[[Category:Site administration]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Cohortes]]&lt;br /&gt;
[[de:Globale Gruppen]]&lt;br /&gt;
[[ja:コーホート]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=HTTP&amp;diff=95379</id>
		<title>HTTP</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=HTTP&amp;diff=95379"/>
		<updated>2012-01-23T16:09:44Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server settings}}&lt;br /&gt;
An administrator can change the following settings in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Server &amp;gt; HTTP&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Use slash arguments==&lt;br /&gt;
&lt;br /&gt;
You will need to change this setting only if you are having trouble viewing files or images. Most of the time, Moodle will display files and pictures with no problem using the slash arguments. If you get errors when you try to view pictures or files from within Moodle, your PHP server doesn&#039;t allow the slash argument method and you will need to disable this setting.&lt;br /&gt;
&lt;br /&gt;
==Proxyhost and proxyport==&lt;br /&gt;
&lt;br /&gt;
Your Moodle server may need to access the Internet through a proxy server, depending on your network configuration. If you&#039;re not sure about whether you need a proxy server, contact your network administrator or ISP.&lt;br /&gt;
&lt;br /&gt;
[[ja:HTTP]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Cleanup&amp;diff=95307</id>
		<title>Cleanup</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Cleanup&amp;diff=95307"/>
		<updated>2012-01-19T15:56:30Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server settings}}&lt;br /&gt;
An administrator can limit the size of certain tables in the database by setting appropriate options in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Server &amp;gt; Cleanup&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Delete unconfirmed users after==&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using [[Email-based self-registration]] users must confirm their account within a certain time-frame. Once the time set here has passed, any account that hasn&#039;t been confirmed will be deleted. 7 days is a good setting.&lt;br /&gt;
&lt;br /&gt;
==Delete incomplete users after==&lt;br /&gt;
&lt;br /&gt;
The period after which old not-fully-set-up accounts are deleted may be set (from 1 day to never).&lt;br /&gt;
&lt;br /&gt;
(What is the definition of a &amp;quot;not-fully-set-up account&amp;quot;? What criteria needs to be met for an account to be fully-set-up?)&lt;br /&gt;
&lt;br /&gt;
==Keep logs for==&lt;br /&gt;
&lt;br /&gt;
Moodle keeps extensive logs of user activity. Eventually, however, the logs will become so large that they begin to clog your server. Limiting the length of time logs are kept for will reduce database table size. Generally, a year is enough time to keep logs for.&lt;br /&gt;
&lt;br /&gt;
==Disable grade history==&lt;br /&gt;
&lt;br /&gt;
History tracking of changes in grades-related tables may be disabled by checking the &#039;&#039;disablegradehistory&#039;&#039; box.&lt;br /&gt;
&lt;br /&gt;
==Grade history lifetime==&lt;br /&gt;
&lt;br /&gt;
The length of time that the history of changes in grade-related tables is kept may be set (from 30 days to never).&lt;br /&gt;
&lt;br /&gt;
==Unsubscribe users from courses after==&lt;br /&gt;
&lt;br /&gt;
Note for users who have upgraded to Moodle 2.0 from 1.9: The setting &#039;Unsubscribe users from courses after&#039; in Cleanup has been replaced by &#039;Unenrol inactive after&#039; in [[Self enrolment]].&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=87795 How do I prune mdl_log table?] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[eu:Garbiketa]]&lt;br /&gt;
[[fr:Nettoyage]]&lt;br /&gt;
[[ja:クリーンアップ]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Session_handling&amp;diff=95163</id>
		<title>Session handling</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Session_handling&amp;diff=95163"/>
		<updated>2012-01-13T16:03:37Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server settings}}&lt;br /&gt;
An administrator can change the following settings in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Server &amp;gt; Session Handling&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Timeout==&lt;br /&gt;
&lt;br /&gt;
Once someone logs in to your Moodle server, the server starts a session. The session data allows the server to track users as they access different pages. If users don&#039;t load a new page during the amount of time set here, Moodle will end their session and log them out.&lt;br /&gt;
&lt;br /&gt;
Be sure this time frame is long enough to cover the longest test your teachers may offer. If a student is logged out while they are taking a test, their responses to the test questions may be lost.&lt;br /&gt;
&lt;br /&gt;
==Cookie prefix==&lt;br /&gt;
&lt;br /&gt;
Most of the time, you can leave this blank, unless you are running more than one Moodle site on the same server. In this case, you will want to customize the name of the cookie each Moodle site uses to track the session. This enables you to be logged into more than one Moodle site at the same time.&lt;br /&gt;
&lt;br /&gt;
Note: If you change &amp;quot;Cookie prefix&amp;quot; or &amp;quot;Cookie path&amp;quot; you will need to login again as the changes take effect immediately.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[Sessions FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[cs:admin/setting/sessionhandling]]&lt;br /&gt;
[[ja:セッションハンドリング]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=System_paths&amp;diff=94983</id>
		<title>System paths</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=System_paths&amp;diff=94983"/>
		<updated>2012-01-07T15:29:59Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server settings}}&lt;br /&gt;
An administrator can set the following system paths in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Server &amp;gt; System Paths&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==GD version==&lt;br /&gt;
&lt;br /&gt;
GD is a graphics library that manipulates graphics. It&#039;s used to create thumbnail images from uploaded files and other graphics on the fly. If you don&#039;t know what version is installed, leave this on the original setting.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: When setting the system paths on Windows systems, use of the 8.3 notation for the path and filename is preferred. So instead of entering &#039;&#039;c:\program files\path to aspell\aspell.exe&#039;&#039;, enter &#039;&#039;c:\progra~1\path~1\aspell.exe&#039;&#039;. Check the exact 8.3 path using the &#039;&#039;dir /x&#039;&#039; command at the prompt.&lt;br /&gt;
&lt;br /&gt;
==Path to aspell==&lt;br /&gt;
&lt;br /&gt;
If PSpellSpell is selected as the spell engine for TinyMCE in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Text editors &amp;gt; TinyMCE HTML editor&#039;&#039; then you must specify the correct path to access the aspell binary.&lt;br /&gt;
&lt;br /&gt;
In addition, you MUST have aspell 0.50 or later installed on your server. On Unix/Linux systems use the which program to determine the path:&lt;br /&gt;
&lt;br /&gt;
 [root@moodle ~]# which aspell&lt;br /&gt;
 /usr/bin/aspell&lt;br /&gt;
&lt;br /&gt;
In this example the path to enter is &#039;&#039;/usr/bin/aspell&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
On a Windows system, download and install [http://aspell.net/win32 GNU aspell] together with at least one dictionary and then use the search facility in Explorer to find the aspell.exe file. The path should look like:&lt;br /&gt;
&lt;br /&gt;
 c:\program files\aspell\bin\aspell.exe&lt;br /&gt;
&lt;br /&gt;
It can be best to install aspell in c:\aspell or use the 8.3 notation if you are installing in &#039;&#039;c:\program files&#039;&#039; so that the path looks like &lt;br /&gt;
&lt;br /&gt;
 c:\progra~1\aspell\bin\aspell.exe&lt;br /&gt;
&lt;br /&gt;
==Path to dot==&lt;br /&gt;
&lt;br /&gt;
Path to dot is for enabling image generation in profiling. The generated graphs are really useful to see what each request does. To have profiling visible (and working), the xhprof extension must be installed in PHP.&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
&lt;br /&gt;
*[http://aspell.sourceforge.net/ GNU Aspell]&lt;br /&gt;
*[http://aspell.net/win32/ GNU Aspell (Win32 version)]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=125912 HowTo: Installing aspell in Ubuntu (with dictionary)] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[cs:admin/setting/systempaths]]&lt;br /&gt;
[[hu:Rendszerútvonalak]]&lt;br /&gt;
[[ja:システムパス]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Book_module&amp;diff=92521</id>
		<title>Book module</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Book_module&amp;diff=92521"/>
		<updated>2011-10-22T15:12:30Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Book}}&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;Book module&#039;&#039;&#039; makes it easy to create multi-page resources with a book-like format.  It is contributed by [http://moodle.org/user/view.php?id=12863&amp;amp;course=5 Petr Škoda].  This module can be used to build complete book-like websites inside of your Moodle course.&lt;br /&gt;
&lt;br /&gt;
Previously created websites can be imported directly into the Book module.  Books can be printed entirely or by chapter.&lt;br /&gt;
&lt;br /&gt;
The book module allows you to have main chapters and sub chapters, but it goes no deeper. In other words, sub chapters cannot have their own sub chapters. This was an intentional decision by the creator of the book module. He intended this to be a simple resource for teachers and students.&lt;br /&gt;
&lt;br /&gt;
The book module is not interactive. You can, however, link to [[Choice module|choices]], [[Forum module|forums]] etc., from within a book. And you can include multimedia objects like [[Flash]] movies in your book.&lt;br /&gt;
&lt;br /&gt;
==Books and Moodle 2.0==&lt;br /&gt;
The latest code is here: https://github.com/skodak/moodle-mod_book&lt;br /&gt;
&lt;br /&gt;
===Can I duplicate a book within a course?===&lt;br /&gt;
Use the Sharing Cart.  See [http://moodle.org/mod/forum/discuss.php?d=167624 Discussion:Duplicating a book within a course]&lt;br /&gt;
&lt;br /&gt;
===Can I shift Books from one Moodle 2 server to another Moodle 2 server?===&lt;br /&gt;
Not using the backup and restore.  This is not written yet.  (as of 19th February 2011)&lt;br /&gt;
&lt;br /&gt;
It is possible to export as an IMS package and make a couple of tweaks and then import.  https://docs.moodle.org/en/IMS_content_package&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
* Select the correct version of the &amp;quot;book.zip&amp;quot; module for your Moodle installation &lt;br /&gt;
* Unpack the zip file into the mod folder of your Moodle site&lt;br /&gt;
* Login to the Moodle site as administrator and &lt;br /&gt;
* In site administration block click on notifications &lt;br /&gt;
* Moodle will install the Book module.&lt;br /&gt;
* [[Creating_a_book|Add a book as an activity]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=319 Book Module] is a Modules and plugins database page for downloads and more information.&lt;br /&gt;
*Discussions: please create or find a discussion topic in the [http://moodle.org/mod/forum/view.php?id=2633 Book module forum]&lt;br /&gt;
*Examples: The manuals at [http://moodle.tokem.fi tokem.fi] are a series of book modules.  Each book is designed for a different level of Moodle user.&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=76092 Using a Lesson to simulate a Book] forum discussion&lt;br /&gt;
* [http://tracker.moodle.org/secure/attachment/23370/Moodle+Procedure+Set+up+a+Moodle+Book+and+copy+it.pdf Procedure for setting up a Book] pdf from Frances Hill&lt;br /&gt;
&lt;br /&gt;
[[Category:Contributed code]]&lt;br /&gt;
&lt;br /&gt;
[[es:Book]]&lt;br /&gt;
[[eu:Liburua]]&lt;br /&gt;
[[ja:ブックモジュール]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Course_files&amp;diff=92363</id>
		<title>Course files</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Course_files&amp;diff=92363"/>
		<updated>2011-10-19T16:26:25Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Working with files and folders}}&lt;br /&gt;
This page explains the legacy &amp;quot;Course files&amp;quot; area in Moodle 2, and related topics.&lt;br /&gt;
&lt;br /&gt;
It&#039;s useful for any teacher who wants to know how to add files to a Moodle 2.0 course (especially if you previously used Moodle 1.9 or earlier).&lt;br /&gt;
&lt;br /&gt;
==Files in Moodle 1.9==&lt;br /&gt;
&lt;br /&gt;
In versions of Moodle before 2.0 all the files uploaded into Moodle were stored in a physical directory on disk known as the &amp;quot;Course files&amp;quot; area.  &lt;br /&gt;
&lt;br /&gt;
This is where a teacher might upload files to be part of the course content, but this area also included everything students uploaded, such as assignments and forum attachments.  These &amp;quot;activity files&amp;quot; were stored in a special folder called &#039;&#039;moddata&#039;&#039; in a certain structure that helped modules keep track of their own files.&lt;br /&gt;
&lt;br /&gt;
===Typical Moodle 1.x workflows===&lt;br /&gt;
&lt;br /&gt;
The course files area was accessed in two ways through the Moodle interface by teachers.&lt;br /&gt;
&lt;br /&gt;
# Through the &amp;quot;Files&amp;quot; link in the Course Administration block, or&lt;br /&gt;
# When a file was required in other places, such as a resource, or attachment.&lt;br /&gt;
&lt;br /&gt;
When publishing a file as a resource, say a PDF file, a teacher might:&lt;br /&gt;
&lt;br /&gt;
# Upload it to their course files area along with all the other files they intend to use in the course&lt;br /&gt;
# Add a resource to the course&lt;br /&gt;
# Select the PDF from the course files&lt;br /&gt;
&lt;br /&gt;
Students did not have direct access to read the course files area. All they could do was upload files from their desktop computer straight into activities.&lt;br /&gt;
&lt;br /&gt;
===A less typical workflow===&lt;br /&gt;
&lt;br /&gt;
# Use [[wikipedia:FTP|FTP]] to push files straight into the course files area&lt;br /&gt;
# Add resources to the course by selecting these files&lt;br /&gt;
# Update the resources later by updating the files directly via FTP&lt;br /&gt;
&lt;br /&gt;
This meant expert users could update course content with files or HTML mini-sites without having to change anything in Moodle.&lt;br /&gt;
&lt;br /&gt;
===Problems with the Moodle 1.x model===&lt;br /&gt;
&lt;br /&gt;
* If the original file was deleted from course files area, or renamed, it would result in broken links everywhere where it was previously used&lt;br /&gt;
* Storing files on disk meant file names were restricted (eg file names in Japanese would break on some operating systems)&lt;br /&gt;
* All course files had to be readable by students (if they knew the URL) because Moodle had no way of telling what context you were viewing a file in (eg the same file might be in a HTML text in a forum and also in a resource).  This meant that files stored in the course files area were not as secret as teachers thought they were.&lt;br /&gt;
* Files could not be reused in several courses - that had to be uploaded to each course files area&lt;br /&gt;
* Backups had to include ALL course files, just in case they were required, even if the backup only contained one activity&lt;br /&gt;
* Images and other media might look fine for teachers, but others would not see it (eg in course descriptions)&lt;br /&gt;
* When importing activities from one course to another, ALL course files were imported, as it was impossible to tell which files were needed&lt;br /&gt;
&lt;br /&gt;
==Files in Moodle 2.0==&lt;br /&gt;
&lt;br /&gt;
In Moodle 2.0 the files work a lot more like Web 2.0 systems, such as Facebook and Google Docs.&lt;br /&gt;
&lt;br /&gt;
Each activity and each text has its own file area, and files are associated directly with the place it is used.  For example, a file attached to a forum post is stored &amp;quot;with&amp;quot; the forum post, and becomes subject to exactly the same access restrictions.&lt;br /&gt;
&lt;br /&gt;
The Files system is intimately connected with the Repository system, and a file picker which makes it easy to browse external and internal repositories for files, and then copy them into Moodle.  Certain repositories also allow you to link directly to their media files.  Repositories in general are the way of the future for content - most Web 2.0 systems are really repositories of data with various management interfaces.&lt;br /&gt;
&lt;br /&gt;
A private files area is provided for each user to store a collection of files for their own use.  This is useful for students as well as teachers, and makes it easy to re-use media across the Moodle site.  Only you can access your own private files.&lt;br /&gt;
&lt;br /&gt;
The course files area in Moodle 2.0 is [[wikipedia:Deprecation|deprecated]] and is not available by default due to the problems described above. When a site is upgraded from 1.9, all course files are migrated into new file areas and the old course files area is hidden from view.&lt;br /&gt;
&lt;br /&gt;
Internally, files are stored in a &amp;quot;file pool&amp;quot; of blobs on disk with numbers for names.  All the actual names and metadata are stored in a database.&lt;br /&gt;
&lt;br /&gt;
===Typical Moodle 2.0 workflow===&lt;br /&gt;
&lt;br /&gt;
# Edit a text or activity &lt;br /&gt;
# Use the filepicker to easily select the file from any local or remote repository&lt;br /&gt;
&lt;br /&gt;
The file is then copied to Moodle and stored securely with the text or activity.&lt;br /&gt;
&lt;br /&gt;
===More advanced Moodle 2.0 workflow===&lt;br /&gt;
&lt;br /&gt;
# Edit a text or url resource&lt;br /&gt;
# Use the filepicker to easily select the file from any local or remote repository and select &amp;quot;link&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The file URL is then embedded into the text and when viewed, the media comes directly from the open repository.&lt;br /&gt;
&lt;br /&gt;
===Why is it better?===&lt;br /&gt;
&lt;br /&gt;
====Integrity====&lt;br /&gt;
&lt;br /&gt;
If a forum post with attached files (eg images) is imported into another course, then the files move with it.  Anyone in the new course will also see the files.   This makes activities more portable and re-usable.&lt;br /&gt;
&lt;br /&gt;
If two activities use the same file and one is deleted, then the other one is not affected.&lt;br /&gt;
&lt;br /&gt;
There should be less problems with everything looking fine for teachers and not appearing for students.&lt;br /&gt;
&lt;br /&gt;
====Security====&lt;br /&gt;
&lt;br /&gt;
Access to files is governed the same way as the items that they attached to, which is what people expect.  All files are now controlled by the settings in the Moodle interface, including roles and permissions.&lt;br /&gt;
&lt;br /&gt;
====Re-usability====&lt;br /&gt;
&lt;br /&gt;
It is now fast and easy to re-use files across Moodle.  Using the file picker, a recently-used file may easily be chosen, or a file from any course a user has access to.&lt;br /&gt;
&lt;br /&gt;
====Backups====&lt;br /&gt;
&lt;br /&gt;
Backups of activities are small and accurate, because Moodle knows exactly what files to include.  This is important for things like [[Community hubs]], where sharing of courses and parts of courses will become more common, and sharing every file in a course may be unacceptable.&lt;br /&gt;
&lt;br /&gt;
====Internationalization====&lt;br /&gt;
&lt;br /&gt;
There are no restrictions on file names - even files with names in Japanese may be used.&lt;br /&gt;
&lt;br /&gt;
====Repositories====&lt;br /&gt;
&lt;br /&gt;
The world is turning towards better management of files and less &amp;quot;dumping&amp;quot; of files into disks.  There are many repository solutions out there that focus on better management of files, with versioning, workflow, metadata and other features.&lt;br /&gt;
&lt;br /&gt;
===How to duplicate Moodle 1.x functionality in 2.0===&lt;br /&gt;
&lt;br /&gt;
If you really want to mimic older workflows in 2.0 then there are some solutions, although none of them are exactly the same.&lt;br /&gt;
&lt;br /&gt;
====FTP files into Moodle====&lt;br /&gt;
&lt;br /&gt;
# One way to do this is via the [[admin/repository/filesystem|File system repository]].  This allows you to turn a directory on the server into a repository of files within the Moodle file picker.  You can then use any server technology to access that directory from a desktop, such as FTP, [[wikipedia:Samba (software)|Samba]], [[wikipedia:AppleShare|Appleshare]] or [[wikipedia:WebDAV|WebDAV]].&lt;br /&gt;
# See the direct WebDAV plans below.&lt;br /&gt;
&lt;br /&gt;
====Change a file once, have it update in many places====&lt;br /&gt;
&lt;br /&gt;
# If you use an external repository that supports linking (such as Alfresco) then you get this behaviour for free.  Files in the repository can not have exactly the same access control as Moodle, but they can implement their own access control, especially if you use some sort of single sign-on.&lt;br /&gt;
# If you enable the [[Legacy course files]] feature in Moodle 2.0 then you can also link directly to files there using the Course files repository in the file picker.  Even HTML mini-sites work.  The caveat is that it only works in places where you can &#039;&#039;&#039;link&#039;&#039;&#039; to files.  So, for example, it won&#039;t work for a forum attachment or the &#039;resource&#039; module.  But it will work for the url module (new in 2.0) and any media embedded in HTML via the editor.&lt;br /&gt;
&lt;br /&gt;
==Roadmap for future improvements==&lt;br /&gt;
&lt;br /&gt;
Based on recent feedback, there are plans to improve the model in 2.0 with new features.&lt;br /&gt;
&lt;br /&gt;
===File synchronization===&lt;br /&gt;
&lt;br /&gt;
Instead of having to choose between linking to a course file or copying it to the current file area, we could add the option to &#039;Always use the latest version&#039; of the file.  This would re-copy the file to the destination whenever the source file changed.  Initially this would be implemented just for the internal repositories but could also be used later for some external repositories as well (those not requiring the Moodle site to authenticate as the user).&lt;br /&gt;
&lt;br /&gt;
This feature has the potential to maintain all the benefits of the 1.0 model without compromising the 2.0 model.&lt;br /&gt;
&lt;br /&gt;
However this feature is complex to implement because:&lt;br /&gt;
&lt;br /&gt;
* We need to cope with changing permissions in source and destination. &lt;br /&gt;
* We need to cope with cases like Assignment submissions (students shouldn&#039;t be able to update files after the due date, for example)&lt;br /&gt;
* We need some GUI solution to synchronize whole folders at once, such as a HTML mini-site.&lt;br /&gt;
* We need some in-GUI solution to report what the source file is for any given destination file.&lt;br /&gt;
&lt;br /&gt;
===Linking ability to File system repository===&lt;br /&gt;
&lt;br /&gt;
The File system repository currently does not allow linking to files.  This is because the files are in a directory inside moodledata and are not exposed by any direct URL from the web.&lt;br /&gt;
&lt;br /&gt;
To serve them to the web we&#039;d have to have some script like &#039;&#039;/repository/filesystem/file.php&#039;&#039; to serve them as links, which would allow relative links like HTML mini-sites to work.  &lt;br /&gt;
&lt;br /&gt;
The problem with this is that we are back to the same issues as 1.9 course files (or even worse), with no access control on the files at all.  Some people may not care about this, but the solution needs to make this very clear to users.&lt;br /&gt;
&lt;br /&gt;
===WebDAV support for course files and user files===&lt;br /&gt;
&lt;br /&gt;
This would effectively replace direct FTP access to the file system with WebDAV access to the &amp;quot;virtual&amp;quot; file system inside these file areas in Moodle.  It would allow people to update files without going near the web GUI.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* MDL-23306 META: Improve usability of new files structure&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=167471 Where is the Moodle 2.0 Course Backup Filearea] Using Moodle forum dicussion&lt;br /&gt;
* [[Legacy course files]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Fichiers de cours]]&lt;br /&gt;
[[ja:コースファイル]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Git_for_Administrators&amp;diff=91410</id>
		<title>Git for Administrators</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Git_for_Administrators&amp;diff=91410"/>
		<updated>2011-10-09T16:52:22Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An alternative way to maintaining your Moodle server via [[CVS for Administrators|CVS]] is using Git. This page describes how to maintain a copy of Moodle on your production server which can easily be upgraded using Git. If you have customisations of Moodle core code, you are advised to follow the instructions in the [[Development:Quick Git start guide for Moodle development|Quick Git start guide for Moodle development]].&lt;br /&gt;
&lt;br /&gt;
== Obtaining the code from Git ==&lt;br /&gt;
&lt;br /&gt;
You can find the official Moodle git repository at git://git.moodle.org/moodle.git (with an official clone at git://github.com/moodle/moodle.git). To initialize your local checkout, use&lt;br /&gt;
&lt;br /&gt;
    git clone git://git.moodle.org/moodle.git                       (1)&lt;br /&gt;
    cd moodle&lt;br /&gt;
    git branch -a                                                   (2)&lt;br /&gt;
    git branch --track local_19_STABLE origin/MOODLE_19_STABLE      (3)&lt;br /&gt;
    git checkout local_19_STABLE                                    (4)&lt;br /&gt;
&lt;br /&gt;
The command (1) initializes the new local repository as a clone of the upstream moodle.git repository. By default, this upstream repository will be known as &#039;origin&#039; remote repository. The command (2) lists all available branches. Use the command (3) to create a new local branch called local_19_STABLE and set it to track the branch MOODLE_19_STABLE from the upstream repository. The command (4) actually switches to the newly created local branch. Note that the last two lines can be replaced with&lt;br /&gt;
&lt;br /&gt;
    git checkout -b local_19_STABLE origin/MOODLE_19_STABLE         (3 + 4)&lt;br /&gt;
&lt;br /&gt;
that creates a new local tracking branches and switches to it immediately.&lt;br /&gt;
&lt;br /&gt;
== Updating your installation ==&lt;br /&gt;
&lt;br /&gt;
The Moodle development team performs integration and testing of fixed bugs every Monday and Tuesday. On Wednesday you can install all patches by updating your code. Check the [http://git.moodle.org/gw?p=moodle.git;a=summary shortlog] to see if the official repository has been already updated or not.&lt;br /&gt;
&lt;br /&gt;
    cd /path/to/your/moodle/checkout&lt;br /&gt;
    git fetch                                                       (1)&lt;br /&gt;
    git status                                                      (2)&lt;br /&gt;
    git merge                                                       (3)&lt;br /&gt;
&lt;br /&gt;
The command (1) downloads new updates from the remote repository without touching your local checkout. The command (2) displays the information about the eventual drift between you local version and the upstream one. The command (3) actually modifies your local files with the updates. The git-fetch + git-merge couple can be replaced with a single command&lt;br /&gt;
&lt;br /&gt;
    git pull                                                        (1 + 3)&lt;br /&gt;
&lt;br /&gt;
== Installing a contributed extension from its Git repository ==&lt;br /&gt;
&lt;br /&gt;
For example, let us say we want to install the [[Book module]] form its Git repository into our Moodle 2.0.&lt;br /&gt;
&lt;br /&gt;
    cd /path/to/your/moodle/checkout&lt;br /&gt;
    cd mod                                                          (1)&lt;br /&gt;
    git clone git://github.com/skodak/moodle-mod_book.git book      (2)&lt;br /&gt;
    cd book&lt;br /&gt;
    git checkout -b MOODLE_20_STABLE origin/MOODLE_20_STABLE        (3)&lt;br /&gt;
    git branch -d master                                            (4)&lt;br /&gt;
&lt;br /&gt;
The command (1) changes the current directory into the &#039;&#039;mod&#039;&#039; folder of your local Moodle clone. The command (2) creates a new subdirectory &#039;&#039;book&#039;&#039; and makes a local clone of Petr Škoda&#039;s vanilla Book repository. The command (3) creates a new local branch that will track the remote branch with a Book version for Moodle 2.0. The command (4) deletes the &#039;&#039;master&#039;&#039; that was created automatically by git-clone in (2) as we do not want it in this production checkout.&lt;br /&gt;
&lt;br /&gt;
Now it is wise to put the new directory mod/book/ to the list of ignored files of the main Moodle clone.&lt;br /&gt;
&lt;br /&gt;
    cd /path/to/your/moodle/checkout&lt;br /&gt;
    echo /mod/book/ &amp;gt;&amp;gt; .git/info/exclude&lt;br /&gt;
&lt;br /&gt;
To update your Moodle installation now, you must visit both Git repositories and pull changes from upstream.&lt;br /&gt;
&lt;br /&gt;
    cd /path/to/your/moodle/checkout&lt;br /&gt;
    git pull&lt;br /&gt;
    cd /path/to/your/moodle/checkout/mod/book&lt;br /&gt;
    git pull&lt;br /&gt;
&lt;br /&gt;
Writing a shell script with these lines in the root of Moodle installation is a very good idea. Otherwise it is easy to forget what Git repositories are there within the main Moodle repository.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
; Moodle Docs&lt;br /&gt;
* [[CVS for Administrators]]&lt;br /&gt;
* [[Moodle versions]]&lt;br /&gt;
* For some screenshots see [[User:Frank_Ralf/Git]] (still work in progress)&lt;br /&gt;
&lt;br /&gt;
; Moodle forum discussions&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=168094 GIT help needed]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=165236 Best way to manage CONTRIB code with GIT]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=167063 Handy Git tip for tracking 3rd-party modules and plugins]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=167730 Moodle Git repositories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=183693 Git and CVS]&lt;br /&gt;
&lt;br /&gt;
; External resources &lt;br /&gt;
* [http://www.kernel.org/pub/software/scm/git/docs/everyday.html Everyday GIT With 20 Commands Or So]&lt;br /&gt;
* [http://gitref.org/ Git Reference]&lt;br /&gt;
* [http://progit.org/book/ Pro Git book]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Git]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
[[ja:管理者用Git]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Upgrading&amp;diff=89365</id>
		<title>Upgrading</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Upgrading&amp;diff=89365"/>
		<updated>2011-09-09T02:18:27Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Moodle is designed to upgrade itself from one version to the next. The procedure is&lt;br /&gt;
# [[Site backup|Back up everything]].&lt;br /&gt;
# Replace the old version of the code with the new one.&lt;br /&gt;
# Visit the [[Site_administration_block#Notifications|administrator notifications]] link, which triggers Moodle to self-update.&lt;br /&gt;
These steps are explained in more detail below.&lt;br /&gt;
&lt;br /&gt;
Sometimes there are specific considerations when upgrading to a particular version.  See the [[dev:Releases|Releases page]] for more information on this.  You also have to be more careful if you have installed additional plug-ins or customised the code.&lt;br /&gt;
&lt;br /&gt;
See this tutorial if you are [http://ic.eflclasses.org/tutorials/howtoupgrademoodlewithcpanel.swf upgrading Moodle on cpanel]. It is a bit rough around the edges and is a little dated, but you should get the idea.&lt;br /&gt;
&lt;br /&gt;
There is also a separate page about [[Ubuntu_Debian_Upgrades|upgrading Moodle if you installed it using the Ubuntu/Kubuntu/Debian package manager]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
When upgrading a Moodle installation you should follow these steps:&lt;br /&gt;
&lt;br /&gt;
==Before you upgrade your site for real==&lt;br /&gt;
&lt;br /&gt;
You are strongly advised to make a copy of your entire Moodle site onto another computer (see [[Moodle migration]]) and run the upgrade there to verify it will work.&lt;br /&gt;
&lt;br /&gt;
==Check the requirements==&lt;br /&gt;
Spend some time re-reading the [[Installing Moodle | installation documentation]] and documentation for the new version. Check the system requirements for the target version you want to upgrade-to in &#039;&#039;Administration &amp;gt; Server &amp;gt; [[Environment]]&#039;&#039;.&lt;br /&gt;
==Put your Site into Maintenance Mode==&lt;br /&gt;
Before you begin upgrading your site, you should put it into [[Maintenance_mode | Maintenance Mode]] to stop any non-admin users from logging in.&lt;br /&gt;
&lt;br /&gt;
== Backup important data ==&lt;br /&gt;
See [[Site backup]] for more specific information.&lt;br /&gt;
&lt;br /&gt;
There are three areas that should be backed up before any upgrade:&lt;br /&gt;
#Moodle software (For example, everything in server/htdocs/moodle)&lt;br /&gt;
#Moodle uploaded files (For example, server/moodledata)&lt;br /&gt;
#Moodle database (For example, the SQL or Postgres database)&lt;br /&gt;
&lt;br /&gt;
Experienced site administrators know that it is a best practice (a very good idea) to make a backup of any production system before a major upgrade. In fact, it is a good idea to automate your server to backup your Moodle installation daily.  Most upgrades on sites that have used the standard Moodle packages (no contributed code and no little tweaks to the php files), will not have any major issues with the upgrade process.  &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;TIP:&#039;&#039; One more time, &amp;quot;do not risk what you can not afford to lose&amp;quot;: do regular backups, make sure it is really backed up and know how to restore a backup!&lt;br /&gt;
&lt;br /&gt;
== Install the new Moodle software ==&lt;br /&gt;
Upgrading can be a simple process or a more complicated process.  Sites that have not used contributed code and are migrating from say Moodle 1.x.1 to 1.x.3 &#039;&#039;&#039;should&#039;&#039;&#039; not have a problem.  However, we still recommend that with any production server that you have made a successful backup of the MySQL database, the moodledata directory and the moodle program folders and files.  &lt;br /&gt;
&lt;br /&gt;
*Do not overwrite an old installation unless you know what you are doing ... sometimes old files can cause problems in new installations. Review the backup section above.&lt;br /&gt;
&lt;br /&gt;
=== Standard install package ===&lt;br /&gt;
Having read the cautions about backups, download a copy of the standard install package. Here is a set of simple instructions for an average site.&lt;br /&gt;
*It is probably a good idea to use the [[Site administration block]]&amp;gt;Server&amp;gt;Maintenance mode to prevent user activity as the site upgrades. &lt;br /&gt;
*Having moved your old Moodle software program files to another location, unzip or unpack the upgrade file so that all new the Moodle software program files are in the location the old files used to be in on the server.  Moodle will adjust SQL and [[Moodledata directory|moodledata]] if it needs to in the upgrade.&lt;br /&gt;
*Copy your old [[Configuration file|config.php file]] back to the new Moodle directory.&lt;br /&gt;
*If you had added any custom plugins or themes into your Moodle you can add them to the new code. It is important to check that you get the correct version for your new version of Moodle. You should check in the optional plugins database. Be particularly careful that you do not overwrite any code in the new version of Moodle. If you are upgrading to Moodle 2.0 or newer, note that all optional plugins and themes required a significant rewrite and most do not have 2.0 versions (yet). &lt;br /&gt;
*Use the notification link in the site administration to start the upgrade process. You will see a series of lines or screens indicating progress.  &lt;br /&gt;
*After a successful upgrade, turn off the maintenance mode, so your users can get into the site.&lt;br /&gt;
&lt;br /&gt;
=== Using a downloaded archive ===&lt;br /&gt;
In some installs, the site administrator may overwrite the Moodle code with a backup copy.  Or create a new clean install copy of Moodle, then restore an archive (via a compressed file or parts of a saved set of Moodle code files and folders). &lt;br /&gt;
&lt;br /&gt;
*Do not overwrite an old installation unless you know what you are doing ... sometimes old files can cause problems in new or &amp;quot;cleaned&amp;quot; installations. The best way is to rename the current Moodle code directory (for example rename &amp;quot;moodle&amp;quot; to &amp;quot;moodleold&amp;quot;), then unpack the new Moodle archive into the old location (for example, a new directory called &amp;quot;moodle&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
====Linux====&lt;br /&gt;
 mv moodle moodle.backup&lt;br /&gt;
 tar xvzf moodle-1.1.tgz&lt;br /&gt;
&lt;br /&gt;
Next, copy across your config.php, any other plugins such as custom themes, and your .htaccess file if you created one (&#039;&#039;&#039;check that optional/custom plugins are the correct version for your new Moodle first&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
 cp moodle.backup/config.php moodle&lt;br /&gt;
 cp -pr moodle.backup/theme/mytheme moodle/theme/mytheme&lt;br /&gt;
 cp -pr moodle.backup/mod/mymod moodle/mod/mymod&lt;br /&gt;
&lt;br /&gt;
Don&#039;t forget to &lt;br /&gt;
&lt;br /&gt;
 sudo chown www-data moodle/config.php&lt;br /&gt;
&lt;br /&gt;
if necessary.&lt;br /&gt;
&lt;br /&gt;
where www-data is whatever user the Apache user is on your system. This is often &#039;apache&#039; or &#039;www&#039;.&lt;br /&gt;
You can find out by doing &#039;ls -l&#039; in your /var/www/moodle folder (or wherever your moodle site is)&lt;br /&gt;
and then looking at the owner and group.&lt;br /&gt;
&lt;br /&gt;
so you may see something like&lt;br /&gt;
&lt;br /&gt;
 ls -l&lt;br /&gt;
 ...lots of lines...&lt;br /&gt;
 -rw-r--r--   1 apache system     784 Jun 28  2007 config.php &lt;br /&gt;
 ...lots more lines...&lt;br /&gt;
&lt;br /&gt;
so the owner is apache and the group is system. &lt;br /&gt;
&lt;br /&gt;
To replicate this on your new system you can do  &#039;chown apache:system config.php&#039; &lt;br /&gt;
&lt;br /&gt;
or to do a whole group do&lt;br /&gt;
&lt;br /&gt;
 chown apache:system ./*&lt;br /&gt;
&lt;br /&gt;
and recursively&lt;br /&gt;
&lt;br /&gt;
 chown -R apache:system ./*&lt;br /&gt;
&lt;br /&gt;
=== Using CVS ===&lt;br /&gt;
&lt;br /&gt;
You can use CVS for updating or upgrading your Moodle.&lt;br /&gt;
First you need to do a CVS checkout in your (empty) Moodle root directory.&lt;br /&gt;
&lt;br /&gt;
You can use any of our [[CVS_for_Administrators#CVS_Servers|CVS Mirror servers]]. Just replace &#039;&#039;&#039;SERVER.cvs.moodle.org&#039;&#039;&#039; in the instructions below with the name of the mirror server you chose!.&lt;br /&gt;
&lt;br /&gt;
====For Linux servers====&lt;br /&gt;
&lt;br /&gt;
To do a CVS checkout of Moodle, you first have to logon to the Moodle CVS server.&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;cvs -d:pserver:anonymous@SERVER.cvs.moodle.org:/cvsroot/moodle login&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  No password for anonymous, so just hit the Enter button.&lt;br /&gt;
&lt;br /&gt;
Go to the directory where you want the Moodle root to come and type&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;cvs -z3 -d:pserver:anonymous@SERVER.cvs.moodle.org:/cvsroot/moodle co -r MOODLE_18_STABLE moodle&amp;lt;/nowiki&amp;gt; &lt;br /&gt;
  (where MOODLE_18_STABLE is the desired version)&lt;br /&gt;
&lt;br /&gt;
To update, just go into the Moodle root directory and update to the new files:&lt;br /&gt;
&lt;br /&gt;
  cvs update -dP&lt;br /&gt;
To update to a new version type in the following and change 18 to whatever newest version upgrade number is&lt;br /&gt;
  cvs -Q update -dP -r MOODLE_18_STABLE&lt;br /&gt;
&lt;br /&gt;
Make sure you use the &amp;quot;d&amp;quot; parameter to create new directories if necessary, and the &amp;quot;P&amp;quot; parameter to prune empty directories.&lt;br /&gt;
&lt;br /&gt;
====For Windows servers====&lt;br /&gt;
&lt;br /&gt;
You can use Tortoise CVS to do the initial checkout and the updates.&lt;br /&gt;
&lt;br /&gt;
If you have been editing Moodle files, watch the messages very closely for possible conflicts. All your customised themes and non-standard plugins will be untouched.&lt;br /&gt;
&lt;br /&gt;
Do not forget to trigger the install process in the site administration block (see below).&lt;br /&gt;
&lt;br /&gt;
=== Using Git ===&lt;br /&gt;
&lt;br /&gt;
You can use [[Git]] for updating or upgrading your Moodle.&lt;br /&gt;
First you need to do a Git checkout in your (empty) Moodle root directory.&lt;br /&gt;
&lt;br /&gt;
See [[Git for Administrators]] for further details.&lt;br /&gt;
&lt;br /&gt;
== Finishing the upgrade ==&lt;br /&gt;
&lt;br /&gt;
The last step is to trigger the upgrade processes within Moodle. &lt;br /&gt;
&lt;br /&gt;
To do this just visit the [[Site administration block]] admin page (or &#039;&#039;&amp;lt;nowiki&amp;gt;http://example.com/moodle/admin&amp;lt;/nowiki&amp;gt;&#039;&#039;) and the &amp;quot;Notifications&amp;quot; link.&lt;br /&gt;
&lt;br /&gt;
Moodle will automatically detect the new version and perform all the SQL database or file system upgrades that are necessary. If there is anything it can&#039;t do itself (very rare) then you will see messages telling you what you need to do.&lt;br /&gt;
&lt;br /&gt;
Assuming all goes well (no error messages) then you can start using your new version of Moodle and enjoy the new features!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;TIP:&#039;&#039; Use the site administration block&amp;gt;Server&amp;gt;Maintenance mode to prevent users from changing data during the upgrade.&lt;br /&gt;
:&#039;&#039;TIP:&#039;&#039; If you are running a large scale Moodle site (e.g. have more tha 10,000+ courses and 40,000+ users), make sure that you do your own performance profiling testing.  Post a thread or check the [http://moodle.org/mod/forum/view.php?id=28 Installation problems forum] and check [[Tracker]] for potential issues.&lt;br /&gt;
&lt;br /&gt;
== Verify the upgrade (optional) ==&lt;br /&gt;
&lt;br /&gt;
If you wish to confirm that the database definitions in the upgraded database match the definitions of a new, clean install (which they should) you might like to look at [[Verify Database Schema]].&lt;br /&gt;
&lt;br /&gt;
==Upgrading more than one version==&lt;br /&gt;
&lt;br /&gt;
In general, it is recommended to upgrade via the newest of each major version of Moodle, for example 1.7 -&amp;gt; 1.9. An exception to this is when upgrading from 1.5 or 1.6, when it is recommended that 1.7 and 1.8 are skipped, in other words upgrade 1.5 -&amp;gt; 1.6 -&amp;gt; 1.9. (The main reason for this recommendation is that the default roles settings obtained when upgrading to 1.7 are not ideal for 1.8 onwards, 1.8 has problems with groups, etc.)&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[Installing Moodle]]&lt;br /&gt;
*[[Installation FAQ]]&lt;br /&gt;
*[[Upgrading to Moodle 1.6]]&lt;br /&gt;
*[[Upgrading to Moodle 1.8]]&lt;br /&gt;
*[[Upgrading to Moodle 1.9]]&lt;br /&gt;
*[[Upgrading to Moodle 2.0]]&lt;br /&gt;
*[[Environment]]&lt;br /&gt;
*[[Git]] Version control and upgrading&lt;br /&gt;
*Moodle.org [http://moodle.org/mod/forum/view.php?id=28 Installation problems forum] &lt;br /&gt;
*[http://ic.eflclasses.org/tutorials/howtoupgrademoodlewithcpanel.swf How to upgrade Moodle with cpanel tutorial] - screencasts of older Moodle/Cpanel install but useful (also, a very large file that will take some time to load).&lt;br /&gt;
&lt;br /&gt;
Using Moodle.org forum discussions:&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=26731&amp;amp;parent=125858 Using cvs]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=56915 Upgrading from 1.5.2 to 1.7]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=56991 Upgrade nightmares.... any help appreciated]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=62463 After upgrading i get &amp;quot;Your site may not be secure.&amp;quot; msg]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=104887 Best practices for QA]&lt;br /&gt;
*[[Beginning_Moodle_2.0_Administration|Beginning Moodle 2.0 Administration]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[es:Actualización de moodle]]&lt;br /&gt;
[[fr:Mise à jour]]&lt;br /&gt;
[[ja:Moodleをアップグレードする]]&lt;br /&gt;
[[nl:Upgraden]]&lt;br /&gt;
[[zh:升级]]&lt;br /&gt;
[[pl:Aktualizacja]]&lt;br /&gt;
[[de:Aktualisierung von Moodle]]&lt;br /&gt;
[[ru:Обновление]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Dropbox_repository&amp;diff=89259</id>
		<title>Dropbox repository</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Dropbox_repository&amp;diff=89259"/>
		<updated>2011-09-07T02:40:03Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Repositories}}&lt;br /&gt;
A Dropbox repository can be enabled by a site administrator in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Modules &amp;gt; Repositories &amp;gt; Manage repositories&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Sign up app keys at dropbox==&lt;br /&gt;
&lt;br /&gt;
# Go to https://www.dropbox.com/developers/apps&lt;br /&gt;
# Create an app, you must change app status to Production. This feature is only availble for new API developers, but not for Moodle repository users. See MDL-26949&lt;br /&gt;
# Copy the app keys (scroll if necessary)&lt;br /&gt;
&lt;br /&gt;
NOTE: The only way to get App stats for Production approved is to use an acceptable App name. The App name should be something like &amp;quot;Moodle With Dropbox&amp;quot; - with dropbox is the key part of the name (can&#039;t just use dropbox). Otherwise, you&#039;ll receive an email that says &amp;quot;Your app name does not follow Dropbox branding guidelines (found here: https://www.dropbox.com/developers/branding ). Please choose a new name and submit a request to change your app name to api-program@dropbox.com.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
Once enabled by the administrator a Dropbox API Key and Secret will need to be added to the Dropbox settings in order for it to work.  This will be &#039;&#039;the&#039;&#039; Dropbox available to all users throughout the site (and each will need the correct Dropbox login credentials to access it from their courses).  To gather the Dropbox API Key and Secret click the &amp;quot;Dropbox Developers&amp;quot; link on the Dropbox repository settings page.  On the next page you&#039;ll be prompted to login with your Dropbox username and password and to create a Dropbox app.  &lt;br /&gt;
&lt;br /&gt;
Once the App has been created at Dropbox.com you&#039;ll have the API Secret and Key available at the bottom of the App page.  Entering those on the Dropbox settings page (and clicking Save) back in Moodle will finish the configuration.  Dropbox is now available to the entire site.  &lt;br /&gt;
&lt;br /&gt;
To access it editing teachers need only &amp;quot;Add...&amp;quot; a new file while editing or creating a resource to see Dropbox as a new option.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [http://www.youtube.com/watch?v=V221JLCywWs Import files from Dropbox into Moodle 2.0 video]&lt;br /&gt;
* MDL-19168&lt;br /&gt;
* MDL-26949 - Can&#039;t change the Dropbox API key and secret to production status&lt;br /&gt;
&lt;br /&gt;
[[Category:Site administration]]&lt;br /&gt;
[[de:Dropbox]]&lt;br /&gt;
[[ja:Dropbox]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Legacy_course_files&amp;diff=88887</id>
		<title>Legacy course files</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Legacy_course_files&amp;diff=88887"/>
		<updated>2011-08-30T00:31:00Z</updated>

		<summary type="html">&lt;p&gt;Mits: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Note: This page only applies to sites which have been upgraded from Moodle 1.9.&amp;lt;/p&amp;gt;&lt;br /&gt;
{{Working with files and folders}}&lt;br /&gt;
&lt;br /&gt;
In Moodle 2.0 onwards, files are stored in separate areas, rather than together in the course files area. See [[Course files]] for a detailed explanation. When a site is upgraded from 1.9, the course files area is renamed &#039;Legacy course files&#039;. By default, this area is not available in new courses.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;It is recommended that teachers make use of the new [[Repositories|repositories]] in Moodle 2.0 for storing course files, rather than saving them in the legacy course files area&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Enabling legacy course files areas==&lt;br /&gt;
&lt;br /&gt;
To enable a legacy course files area in a new course&lt;br /&gt;
&lt;br /&gt;
# Enable the legacy course files repository plugin in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Repositories &amp;gt; [[Manage repositories]]&#039;&#039;.&lt;br /&gt;
# Check the legacyfilesinnewcourses box in the Manage repositories common settings then click the &#039;Save changes&#039; button.&lt;br /&gt;
# Set &#039;Legacy course files&#039; to Yes in the course settings.&lt;br /&gt;
&lt;br /&gt;
A legacy course files link will then appear in the &#039;&#039;Settings &amp;gt; Course administration&#039;&#039; area.&lt;br /&gt;
&lt;br /&gt;
[[Category:Repositories]]&lt;br /&gt;
[[Category:Site administration]]&lt;br /&gt;
&lt;br /&gt;
[[ja: レガシーコースファイル]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Legacy_course_files&amp;diff=88886</id>
		<title>Legacy course files</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Legacy_course_files&amp;diff=88886"/>
		<updated>2011-08-30T00:30:48Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Note: This page only applies to sites which have been upgraded from Moodle 1.9.&amp;lt;/p&amp;gt;&lt;br /&gt;
{{Working with files and folders}}&lt;br /&gt;
&lt;br /&gt;
In Moodle 2.0 onwards, files are stored in separate areas, rather than together in the course files area. See [[Course files]] for a detailed explanation. When a site is upgraded from 1.9, the course files area is renamed &#039;Legacy course files&#039;. By default, this area is not available in new courses.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;It is recommended that teachers make use of the new [[Repositories|repositories]] in Moodle 2.0 for storing course files, rather than saving them in the legacy course files area&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Enabling legacy course files areas==&lt;br /&gt;
&lt;br /&gt;
To enable a legacy course files area in a new course&lt;br /&gt;
&lt;br /&gt;
# Enable the legacy course files repository plugin in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Repositories &amp;gt; [[Manage repositories]]&#039;&#039;.&lt;br /&gt;
# Check the legacyfilesinnewcourses box in the Manage repositories common settings then click the &#039;Save changes&#039; button.&lt;br /&gt;
# Set &#039;Legacy course files&#039; to Yes in the course settings.&lt;br /&gt;
&lt;br /&gt;
A legacy course files link will then appear in the &#039;&#039;Settings &amp;gt; Course administration&#039;&#039; area.&lt;br /&gt;
&lt;br /&gt;
[[Category:Repositories]]&lt;br /&gt;
[[Category:Site administration]]&lt;br /&gt;
&lt;br /&gt;
[[en: レガシーコースファイル]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Private_files&amp;diff=88213</id>
		<title>Private files</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Private_files&amp;diff=88213"/>
		<updated>2011-08-21T20:40:20Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Working with files and folders}}&lt;br /&gt;
{{Repositories}}&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&#039;&#039;&#039;Please refer to [[Page_notes#Private files|these notes]] before editing this page.&#039;&#039;&#039;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Moodle 2.0 onwards, each user has a private files area for uploading and managing a set of files.&lt;br /&gt;
&lt;br /&gt;
The private files area is accessible via &#039;&#039;Navigation &amp;gt; My home &amp;gt; My profile &amp;gt; My private files&#039;&#039; or the [[My private files block]]. It is available as a source within the filepicker when selecting files to use in a course.&lt;br /&gt;
&lt;br /&gt;
==Private files management==&lt;br /&gt;
&lt;br /&gt;
To add a file to your private files area&lt;br /&gt;
# On the Navigation menu, click My profile &amp;gt; My private files&lt;br /&gt;
# Click &amp;quot;Manage my private files&amp;quot; button&lt;br /&gt;
# The standard file picker Add-Create folder popup will appear.&lt;br /&gt;
# If desired, create or move to a folder,&lt;br /&gt;
#Click on the Add button &lt;br /&gt;
#Browse for and select a file&lt;br /&gt;
# Click the &#039;Save changes&#039; button&lt;br /&gt;
&lt;br /&gt;
[[Image:Files_standard_added_files_1.png|center|frame|Standard file add- create directory, showing 2 files]]&lt;br /&gt;
*Uploaded files may be downloaded, renamed, moved or deleted by clicking the icon next to the file. After making any changes, &#039;&#039;&#039;remember to click the &#039;Save changes&#039; button&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Category:Repositories]]&lt;br /&gt;
[[Category:Moodle 2.0]][[Category:Files]]&lt;br /&gt;
&lt;br /&gt;
[[eu:Fitxategi_pribatuak]]&lt;br /&gt;
[[fr:Fichiers personnels]]&lt;br /&gt;
[[ja:プライベートファイル]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Category:Files&amp;diff=87994</id>
		<title>Category:Files</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Category:Files&amp;diff=87994"/>
		<updated>2011-08-17T16:33:59Z</updated>

		<summary type="html">&lt;p&gt;Mits: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An index of pages about the [[Files | files]] option of the [[Course administration block | administration block]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course]]&lt;br /&gt;
&lt;br /&gt;
[[eu:Kategoria:Fitxategiak]]&lt;br /&gt;
[[fr:Catégorie:Fichiers]]&lt;br /&gt;
[[ja:Category:ファイル]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Category:Files&amp;diff=87993</id>
		<title>Category:Files</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Category:Files&amp;diff=87993"/>
		<updated>2011-08-17T16:33:10Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An index of pages about the [[Files | files]] option of the [[Course administration block | administration block]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course]]&lt;br /&gt;
&lt;br /&gt;
[[eu:Kategoria:Fitxategiak]]&lt;br /&gt;
[[fr:Catégorie:Fichiers]]&lt;br /&gt;
[[ja:ファイル]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=My_private_files_block&amp;diff=87872</id>
		<title>My private files block</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=My_private_files_block&amp;diff=87872"/>
		<updated>2011-08-16T16:37:34Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Moodle 2.0}}The My private files block, in Moodle 2.0 onwards, enables access to a user&#039;s [[Private files|private files]] area.&lt;br /&gt;
&lt;br /&gt;
[[Category:Block]]&lt;br /&gt;
&lt;br /&gt;
[[eu:Nire_fitxategi_pribatuak_blokea]]&lt;br /&gt;
[[de:Eigene Dateien (Block)]]&lt;br /&gt;
[[ja:プライベートファイルブロック]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Import_a_community_course&amp;diff=87808</id>
		<title>Import a community course</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Import_a_community_course&amp;diff=87808"/>
		<updated>2011-08-15T16:01:41Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Moodle 2.0}}&lt;br /&gt;
# in your [[Community block]], select&#039;&#039;&#039; &#039;Search&#039;&#039;&#039;&#039; operation&lt;br /&gt;
# select a hub (Mooch being Moodle.org hub)&lt;br /&gt;
# set search settings to&#039;&#039;&#039; &#039;courses I can download&#039;&#039;&#039;&#039; and select &#039;&#039;&#039;&#039;Search&#039;&#039;&#039;&#039; operation&lt;br /&gt;
# look at the result and click on Download. The course backup will be downloaded in your private files (see [https://docs.moodle.org/en/My_private_files_block private files block]) under a &#039;&#039;&#039;&#039;Downloaded backup&#039;&#039;&#039;&#039; folder.&lt;br /&gt;
# you have the choice to restore the course straight forward. Select&#039;&#039;&#039; &#039;Restore&#039;&#039;&#039;&#039; operation.&lt;br /&gt;
# follow the common restore procedure, the you should be redirected to a newly created course (if you selected this option).&lt;br /&gt;
==See also==&lt;br /&gt;
* [https://docs.moodle.org/en/Community_hub Community hub]&lt;br /&gt;
* [[Community block]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Hub]]&lt;br /&gt;
&lt;br /&gt;
[[ja: コミュニティコースをインポートする]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Context&amp;diff=86308</id>
		<title>Context</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Context&amp;diff=86308"/>
		<updated>2011-07-22T16:07:22Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Moodle site - basic structure}}&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&#039;&#039;&#039;Please refer to [[TOC_with_notes#Moodle site - basic structure|these notes]] before editing this page.&#039;&#039;&#039;&amp;lt;/p&amp;gt;&lt;br /&gt;
A context is a &amp;quot;space&amp;quot; in Moodle.  Together, they define the navigational structure of a Moodle site.  A course can be a context, so can an activity, resource or block.&lt;br /&gt;
&lt;br /&gt;
A course can have many contexts in its space.  These might include lesson, assignment, forum and quiz modules and blocks.  Or for example, [[Question bank]]&#039;s question categories are contexts.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Role  and contexts==&lt;br /&gt;
A context is combined with [[Role permissions]] to define a user&#039;s [[Roles and capabilities|capabilities]] on any page in Moodle.  Typically contexts have their own organization structure which allow a user&#039;s role to be passed along to the context &amp;quot;below&amp;quot; but not to the one above it.  &lt;br /&gt;
&lt;br /&gt;
It is possible to assign a user different permissions based upon a specific context. For example, a user might be given the role of &amp;quot;student&amp;quot; for a course but be given a teacher&#039;s role in the context of one specific forum.  Or a user can be a teacher of one course and a student in another course.  &lt;br /&gt;
&lt;br /&gt;
Many Moodle contexts have a place to grant exceptions to specific roles.&lt;br /&gt;
&lt;br /&gt;
== Graphic showing contexts within contexts ==&lt;br /&gt;
&lt;br /&gt;
The image below shows a few contexts and their relationships.  The &amp;quot;System&amp;quot; or Moodle site is the overall context.  The user is defined iniially in this context.   &lt;br /&gt;
*The System context has 2 contexts under it, with other context under them&lt;br /&gt;
**The Front page context has &lt;br /&gt;
*** An activity module context and &lt;br /&gt;
*** A block context within it&lt;br /&gt;
**The Course Cateory context has&lt;br /&gt;
***A Course context within it.  The course context has&lt;br /&gt;
**** An activity module context and &lt;br /&gt;
****A block context within it&lt;br /&gt;
&lt;br /&gt;
[[Image:Moodle-contexts-1.8.png]]&lt;br /&gt;
&lt;br /&gt;
(Source: [[Development:Roles#Context]])&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
Moodle Docs&lt;br /&gt;
* [[Beginning_Administration_FAQ | Beginning Administration FAQ]]&lt;br /&gt;
* [[Roles FAQ]]&lt;br /&gt;
* [[Development:Roles#Context]]&lt;br /&gt;
* [[Development:Roles and modules#Context]]&lt;br /&gt;
* [[Roles and capabilities]]&lt;br /&gt;
* [[Role permissions]]&lt;br /&gt;
&lt;br /&gt;
Forum discussions&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=60125 &amp;quot;Roles and contexts in Moodle 1.7&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
[[Category:Roles]]&lt;br /&gt;
&lt;br /&gt;
[[ja:コンテクスト]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Publishing_a_course&amp;diff=85515</id>
		<title>Publishing a course</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Publishing_a_course&amp;diff=85515"/>
		<updated>2011-06-28T16:02:31Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Moodle 2.0}}In Moodle 2.0 onwards, users with the capability [[Capabilities/moodle/course:publish|moodle/course:publish]] can publish courses to a hub.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Why publish a course?==&lt;br /&gt;
[[Image:Publication.png|thumb|Publish course page]]&lt;br /&gt;
Possible reasons for publishing a course include:&lt;br /&gt;
&lt;br /&gt;
* To share it with the world&lt;br /&gt;
* To sell your course design/methodology&lt;br /&gt;
* To attract more participants (students, teachers...)&lt;br /&gt;
&lt;br /&gt;
== Advertising a course for people to join==&lt;br /&gt;
You can display a link to your course on any hub your site is registered on. The hub will redirect users on your course. T&lt;br /&gt;
&lt;br /&gt;
# Click the button &#039;Advertise this course for people to join&#039;.&lt;br /&gt;
# Select the hub where you want to advertise your course.&lt;br /&gt;
# Enter information about the course.&lt;br /&gt;
# Click the &#039;Advertise this course&#039; button.&lt;br /&gt;
&lt;br /&gt;
The course will then need to be approved by the hub administrator before it appears in the course listing.&lt;br /&gt;
&lt;br /&gt;
The advert for the course may be updated or removed at any time by clicking an appropriate button in the actions column.&lt;br /&gt;
&lt;br /&gt;
:Tip! When you advertise a course try to make the course easy to see for people not registered on your site (allow [https://docs.moodle.org/en/Course_settings#Guest_access guest access in your course settings] / allow [https://docs.moodle.org/en/User_policies#Auto-login_guest Auto-login guests] / allow people to register themself).&lt;br /&gt;
&lt;br /&gt;
==Sharing a course for people to download==&lt;br /&gt;
[[Image:Backup_publication.png|thumb|First page of the backup process]]&lt;br /&gt;
&lt;br /&gt;
# Click the button &#039;Share this course for people to download&#039;.&lt;br /&gt;
# Select the hub where you want to share your course.&lt;br /&gt;
# Enter information about the course.&lt;br /&gt;
# Click the &#039;Upload this course&#039; button.&lt;br /&gt;
# Select the data to be included in the backup.&lt;br /&gt;
# Create the course backup.&lt;br /&gt;
&lt;br /&gt;
The course will then need to be approved by the hub administrator before it appears in the course listing.&lt;br /&gt;
&lt;br /&gt;
The course may be removed at any time by clicking the button in the actions column. To update the course, firstly remove it from the hub, then re-share it. You may also share different versions of the same course.&lt;br /&gt;
&lt;br /&gt;
== Hub listing ==&lt;br /&gt;
&lt;br /&gt;
To check whether a course is included in the hub listing, click the &#039;Check it now&#039; link. Your Moodle site will contact the hub and will update the status of all courses published on the hub.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Community hub]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Hub]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Publier un cours]]&lt;br /&gt;
[[ja:コースを公開する]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Site_registration&amp;diff=85275</id>
		<title>Site registration</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Site_registration&amp;diff=85275"/>
		<updated>2011-06-19T01:01:04Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Moodle 2.0}}Location: &#039;&#039;Site Administration &amp;gt; Registration&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Registration.png|thumb|Registration]]In Moodle 2.0 onwards, an administrator can register their site with the moodle.org open community hub, [http://hub.moodle.org/ MOOCH], and other community hubs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Moodle.org registration==&lt;br /&gt;
&lt;br /&gt;
When you register your site with moodle.org, you are added to a low-volume mailing list for important notifications such as security alerts and new releases of Moodle. Statistics about your site, such as the number of users and number of courses will be added to the statistics of the worldwide Moodle community http://moodle.org/stats/.&lt;br /&gt;
&lt;br /&gt;
If you wish, you can choose for your site to be listed in http://moodle.org/sites/.&lt;br /&gt;
&lt;br /&gt;
In addition, users with the capability [[Capabilities/moodle/course:publish|moodle/course:publish]] can publish courses on MOOCH.&lt;br /&gt;
&lt;br /&gt;
To register your site with moodle.org&lt;br /&gt;
&lt;br /&gt;
# Click the &#039;Register with moodle.org now&#039; button&lt;br /&gt;
# Review the registration information, amending as necessary&lt;br /&gt;
# Click the &#039;Update registration on moodle.org&#039; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
After registering, MOOCH will appear in the list of hubs you have registered with on the registration page.&lt;br /&gt;
&lt;br /&gt;
You may change the registration information at any time by updating your registration.&lt;br /&gt;
&lt;br /&gt;
Updated site statistics are sent to moodle.org automatically every 7 days.&lt;br /&gt;
&lt;br /&gt;
==Specific hub registration==&lt;br /&gt;
&lt;br /&gt;
You may register your site with a specific hub by selecting the hub from a list or by entering a private hub URL and password.&lt;br /&gt;
&lt;br /&gt;
== Unregistering from a hub==&lt;br /&gt;
&lt;br /&gt;
You may unregister from a hub at any time by clicking the unregister button. You will then be given the option to remove all courses currently being advertised on the hub and remove all courses that were uploaded to the hub.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Community hub]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Hub]]&lt;br /&gt;
&lt;br /&gt;
[[ja: サイト登録]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Capabilities/moodle/course:publish&amp;diff=85209</id>
		<title>Capabilities/moodle/course:publish</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Capabilities/moodle/course:publish&amp;diff=85209"/>
		<updated>2011-06-14T17:25:10Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*This allows a user to [[Publish a course|publish a course]] on a hub.&lt;br /&gt;
*This capability is available in Moodle 2.0 onwards. It is allowed for the default role of manager only.&lt;br /&gt;
&lt;br /&gt;
[[Category:Capabilities|Course]]&lt;br /&gt;
[[Category:Hub]]&lt;br /&gt;
&lt;br /&gt;
[[ja:ケイパビリティ/moodle/course:publish]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Web_services&amp;diff=85111</id>
		<title>Web services</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Web_services&amp;diff=85111"/>
		<updated>2011-06-13T16:02:48Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&#039;&#039;&#039;Please refer to [[Page_notes#Web services|these notes]] before editing this page.&#039;&#039;&#039;&amp;lt;/p&amp;gt;&lt;br /&gt;
Web services enable other systems to login to Moodle and perform operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Documentation for administrators ==&lt;br /&gt;
* [[How to enable web services for ordinary users]]&lt;br /&gt;
* [[How to enable web services for an external system]]&lt;br /&gt;
&lt;br /&gt;
== User documentation ==&lt;br /&gt;
* [[How to get a security key]]&lt;br /&gt;
&lt;br /&gt;
== Developer documentation==&lt;br /&gt;
* [[Development:Creating a web service and a web service function]]&lt;br /&gt;
* [[Development:Creating a web service client]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
Specification / core development:&lt;br /&gt;
* [[Development:Web services]]&lt;br /&gt;
* [[Development:External services security]]&lt;br /&gt;
* [[Development:External services description]]&lt;br /&gt;
&lt;br /&gt;
Other implementations:&lt;br /&gt;
* [[Web Services:OK Tech Web Services]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Web Services]]&lt;br /&gt;
&lt;br /&gt;
[[eu:Web-zerbitzuak]]&lt;br /&gt;
[[ja:ウェブサービス]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Hub_administration&amp;diff=84762</id>
		<title>Hub administration</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Hub_administration&amp;diff=84762"/>
		<updated>2011-06-09T17:02:55Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Moodle 2.0}}&lt;br /&gt;
==Deciding to run a Hub==&lt;br /&gt;
&lt;br /&gt;
Running a hub server is not something you should undertake lightly.  &lt;br /&gt;
&lt;br /&gt;
As the hub administrator you are responsible for the content in the hub, and you need to put in place processes to:&lt;br /&gt;
* verify all the course content is clean (of porn or malicious javascript)&lt;br /&gt;
* manage registered sites and their status &lt;br /&gt;
* maintain the quality of the listings through editing&lt;br /&gt;
&lt;br /&gt;
==How the hub software works==&lt;br /&gt;
&lt;br /&gt;
The hub software is implemented as a separate &amp;quot;local&amp;quot; plugin designed to be added to a standard install of Moodle 2.0 or later.  In this way the hub gets to use on all the features in the Moodle core API and benefits from maintenance of the core code.&lt;br /&gt;
&lt;br /&gt;
Once installed the whole site gets a new frontpage with a simple search box (see http://hub.moodle.org/ for example).&lt;br /&gt;
&lt;br /&gt;
Please don&#039;t add the hub capabilities to an existing Moodle site with real courses.  Although it may work, there are some opportunities for GUI confusion and some unknowns when it comes to security, so please just avoid it. Moodle is free, so it&#039;s trivial to install another clean copy to build your hub with.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==How to set up a Moodle Hub server==&lt;br /&gt;
&lt;br /&gt;
# Install Moodle 2.0 or later somewhere on a web server with a nice URL.&lt;br /&gt;
# Download the latest hub plugin from http://download.moodle.org/download.php/plugins/local/hub.zip&lt;br /&gt;
# Save the zip into the /local directory of Moodle and unzip, producing /local/hub&lt;br /&gt;
# Visit the &amp;quot;Notifications&amp;quot; page in Moodle (/admin) to complete the upgrade and install the hub software.&lt;br /&gt;
# Enable web services for the hub (&#039;&#039;&#039;Site Administration &amp;gt; Advanced features&#039;&#039;&#039;)&lt;br /&gt;
# Enable the XML-RPC protocol (&#039;&#039;&#039;Site Administration &amp;gt; Plugins &amp;gt; Web services &amp;gt; Manage protocols&#039;&#039;&#039;)&lt;br /&gt;
# Set up the SMTP (&#039;&#039;&#039;Site Administration &amp;gt; Server &amp;gt; Email&#039;&#039;&#039;)&lt;br /&gt;
#Set up the recaptcha (&#039;&#039;&#039;Site Administration &amp;gt; Plugins &amp;gt; Authentication &amp;gt; Manage authentication&#039;&#039;&#039;) &lt;br /&gt;
# Set up your hub (&#039;&#039;&#039;Site Administration &amp;gt; Hub &amp;gt; Settings&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
Congratulations!  You now have a working hub with no content!&lt;br /&gt;
&lt;br /&gt;
==Site registration==&lt;br /&gt;
&lt;br /&gt;
Only sites that are registered with the hub are allowed to publish content there.&lt;br /&gt;
&lt;br /&gt;
Sites register on the hub via &#039;&#039;&#039;Site Administration &amp;gt; Registration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Hub registration==  &lt;br /&gt;
&lt;br /&gt;
You can also register your hub with the Moodle hub Directory, a listing of many hubs from around the world, enabling people from all over the world to find your hub and search the courses within it.  You may want to wait until you have some content before you register.&lt;br /&gt;
&lt;br /&gt;
==Managing sites==&lt;br /&gt;
In &#039;&#039;&#039;Administration &amp;gt; Hub &amp;gt; Manage sites&#039;&#039;&#039;, you can:&lt;br /&gt;
* Prioritise a site: during a search, course from prioritised sites appear on top of the list. A prioritised site is always trusted.&lt;br /&gt;
* Trust a site: when a site is trusted, any published course is immediatly available&lt;br /&gt;
* Delete a site: delete a site from the database. A message will be sent to the site administrator.&lt;br /&gt;
* Settings: you can change some information as the name, the description, the language...&lt;br /&gt;
* Make a site visible: only site declared as visible appear on the the site list (currently the site list hasn&#039;t been implemented)&lt;br /&gt;
&lt;br /&gt;
==Managing courses==&lt;br /&gt;
In &#039;&#039;&#039;Administration &amp;gt; Hub &amp;gt; Manage course&#039;&#039;&#039;, you can:&lt;br /&gt;
* Delete a course: delete a course from the database.&lt;br /&gt;
* Settings: you can change some information as the name, the description, the language...&lt;br /&gt;
* Make a course visible: decide if the course is displayed on search result&lt;br /&gt;
&lt;br /&gt;
== Important things about roles, users and web services ==&lt;br /&gt;
A hub server uses intensively Moodle web service 2.0. For this reason it is important to understand the [https://docs.moodle.org/en/Web_Services web services administration], and what happens if you change some roles/users/services.&lt;br /&gt;
&lt;br /&gt;
=== Roles ===&lt;br /&gt;
The hub server creates on the fly some roles that you should &#039;&#039;&#039;never delete/modify&#039;&#039;&#039;:&lt;br /&gt;
* one role for the hub directory&lt;br /&gt;
* one role for registered sites&lt;br /&gt;
* one role for public sites&lt;br /&gt;
&lt;br /&gt;
=== Users ===&lt;br /&gt;
The hub server creates on the fly some users that you should &#039;&#039;&#039;never delete/modify&#039;&#039;&#039;:&lt;br /&gt;
* one user for the hub directory&lt;br /&gt;
* one user for public access&lt;br /&gt;
* as many users as registered sites&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
The hub creates during installation some web services that you should &#039;&#039;&#039;never delete/modify&#039;&#039;&#039;:&lt;br /&gt;
* one service for Hub directory&lt;br /&gt;
* one service for Registered sites&lt;br /&gt;
* one service for Public sites&lt;br /&gt;
&lt;br /&gt;
It also creates tokens on the fly. These tokens are not displayed on the token management list, so you cannot accidentally delete them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Hub]]&lt;br /&gt;
&lt;br /&gt;
[[ja:ハブ管理]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Student_FAQ&amp;diff=81154</id>
		<title>Student FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Student_FAQ&amp;diff=81154"/>
		<updated>2011-02-08T17:30:26Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article is intended to prepare teachers for the kinds of questions their [[Students|students]] may ask about their Moodle courses. The article could also be given to students (either printed, copied electronically or simply linked to) but the contents may need to be modified depending upon the age / ability of the students concerned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Access and Navigation==&lt;br /&gt;
&lt;br /&gt;
===Why can&#039;t I log in?===&lt;br /&gt;
There could be many reasons but the most probable is you have simply forgotton your password, are trying the wrong one or are entering it incorrectly. Some other things to think about include:&lt;br /&gt;
* Does your username or password contain a mixture of upper and lower case letters? It should be entered exactly&lt;br /&gt;
* Are cookies enabled on your browser&lt;br /&gt;
&lt;br /&gt;
===How do I gain access to a course?===&lt;br /&gt;
Locate or search for the desired course (you can click &#039;All courses...&#039; in the &#039;My courses&#039; block) and click on the course name. If your teacher has given you an enrollment key, enter it when prompted, and click &#039;&#039;&#039;Enroll me in this course&#039;&#039;&#039;. Once you are enrolled in a course, it will appear under &amp;quot;My courses&amp;quot; any time that your are logged into that Moodle site.&lt;br /&gt;
&lt;br /&gt;
===How do I jump between my courses?===&lt;br /&gt;
&lt;br /&gt;
* &#039;My Courses&#039; block if it has been added to the page you are on&lt;br /&gt;
* Go back to the homepage (see below) and then use the main course block (if it has been added!)&lt;br /&gt;
&lt;br /&gt;
===How do I get back to the homepage?===&lt;br /&gt;
&lt;br /&gt;
Use the [[Navigation bar|navigation bar]] at the top left of the page or the button at the very bottom of the course&lt;br /&gt;
&lt;br /&gt;
===How do I find course X?===&lt;br /&gt;
If you are not already enrolled in a course you can search for it by name and description.&lt;br /&gt;
&lt;br /&gt;
==Course content==&lt;br /&gt;
===Where have all of the weeks / topics gone?===&lt;br /&gt;
You have probably clicked on the [[Image:One.gif]] icon. To reveal all of the other weeks / topics you need to click on the [[Image:All.gif]] icon which you will see in the right margin of the week / topic.&lt;br /&gt;
You can also use the dropdown box underneath the displayed week / topic to jump to a hidden section&lt;br /&gt;
&lt;br /&gt;
==Emails and forums==&lt;br /&gt;
&lt;br /&gt;
===Why am I not getting any e-mails and others are?===&lt;br /&gt;
Chances are your email address in your profile is either wrong or disabled. It could also be that you are not subscribed to the forums that are generating emails. AOL users may also not receive e-mails if the administrator has banned the use of AOL email addresses.&lt;br /&gt;
&lt;br /&gt;
===How can I stop all of these e-mails?===&lt;br /&gt;
E-mails are an essential part of the way Moodle works. They are used to keep you up to date with what is going on. If you wish to reduce the amount of emails you get you could:&lt;br /&gt;
* Edit your profile and change your e-mail settings to digest&lt;br /&gt;
* Unsubscribe from non-essential forums (although they are there for a reason!)&lt;br /&gt;
* Disable your e-mail address in your profile although this is not recommended and may go against in house rules.&lt;br /&gt;
&lt;br /&gt;
==Assignments and grades==&lt;br /&gt;
&lt;br /&gt;
===Why is there no upload box?===&lt;br /&gt;
This is either because:&lt;br /&gt;
* The assignment has now closed&lt;br /&gt;
* The assignment is not yet open&lt;br /&gt;
* You already uploaded something and the settings prevent resubmissions&lt;br /&gt;
&lt;br /&gt;
===How can I see my recent assignment feedback?===&lt;br /&gt;
There are many ways you can access their feedback. &lt;br /&gt;
The most common method is by simply going to the same place where you uploaded the work. &lt;br /&gt;
Another common method is to follow the link in the recent activity block (if the teacher has included it on the course).&lt;br /&gt;
Another method would be to access the grade book and then follow the link for the required assignment.&lt;br /&gt;
Depending upon how the assignment was set up, you may receive an email when it has been marked with a direct link to the feedback.&lt;br /&gt;
&lt;br /&gt;
===Why is my course average so low?===&lt;br /&gt;
Don&#039;t panic! The Moodle gradebook takes into account unmarked and unsubmitted work. In other words, you start with zero and as you progress through the course and complete graded activities the percentage will steadily rise&lt;br /&gt;
&lt;br /&gt;
==Quizzes==&lt;br /&gt;
&lt;br /&gt;
===Which button do I press when I have finished a quiz?===&lt;br /&gt;
That depends upon what you want to do ....&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Why am I getting zero grade on my quiz?===&lt;br /&gt;
&lt;br /&gt;
You might exceed the quiz time limit.&lt;br /&gt;
&lt;br /&gt;
This should never happen, because the count-down timer should submit the quiz automatically when time expires, and then the Moodle server should process you submission promptly. However, if the server is overloaded and running slowly, your responses may not be processed until after to &#039;too late&#039; cut-off time, and so you will not receive marks for those questions.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Student documentation]]&lt;br /&gt;
*[[Student documentation examples]]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=43084 AOL - no friend of education!] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:Teacher]]&lt;br /&gt;
[[Category:Student]]&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ Estudiante]]&lt;br /&gt;
[[fr:FAQ d&#039;étudiant]]&lt;br /&gt;
[[de:Teilnehmer FAQ]]&lt;br /&gt;
[[ja:学生FAQ]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Using_%27Weighted_mean_of_grades%27&amp;diff=80232</id>
		<title>Using &#039;Weighted mean of grades&#039;</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Using_%27Weighted_mean_of_grades%27&amp;diff=80232"/>
		<updated>2011-01-12T21:02:19Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The first feature of the new grade book that some may want to be able to master is the ability to &#039;clump&#039; assignments into categories and then have each category be assigned a different weight in the overall final grade. (Note - The non-technical term &#039;clump&#039; is being used to avoid the term aggregate in the hopes of preventing confusion given the terminology used in the new grade book)&lt;br /&gt;
&lt;br /&gt;
Example (how some courses could be evaluated using categories)&lt;br /&gt;
&lt;br /&gt;
Attendance &amp;amp; Participation 40%, &lt;br /&gt;
Quizzes 20%, &lt;br /&gt;
Tests (Mid-term &amp;amp; Final) 20%, &lt;br /&gt;
Final Projects 20%, &lt;br /&gt;
&lt;br /&gt;
First, create the categories to be used.  This can be done after assignments have been created but we found it easier to create the categories first. For this short doc two categories were utilized (Reading and Writing).&lt;br /&gt;
&lt;br /&gt;
In order to be able to weight categories, select &amp;quot;Weighted Mean of Grades&amp;quot; as the Aggregation method. You can also select the weight the category will be given here.  In this case Reading is being weighted at 10% and Writing at 90%.  These figures can be adjusted after creating the categories by selecting Categories and Items from the pulldown window from within the Grader.&lt;br /&gt;
&lt;br /&gt;
Here are the details of the two categories created.&lt;br /&gt;
&lt;br /&gt;
[[Image:Reading_10Percent.jpg]]&lt;br /&gt;
[[Image:Writing_90Percent.jpg]]&lt;br /&gt;
&lt;br /&gt;
For this short doc four Assignments (offline activities) were created.  Assign each a category at the bottom of the page when creating the assignment.  (they can be assigned later as well from the grade book but since the categories have already been created it is just as easy to assign the category when creating the assignment)&lt;br /&gt;
&lt;br /&gt;
[[Image:Giving_Assignment_A_Category.jpg]]  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(Note - We noticed some irregular behavior with the ID Number when leaving it blank and letting Moodle generate it automatically so we decided it is better to assign an ID number here. 1234 was used for simplicity in this example.)&lt;br /&gt;
&lt;br /&gt;
So after creating the 4 assignments this is what it should look like (roughly) from the front page of your course.&lt;br /&gt;
&lt;br /&gt;
[[Image:Four_assignments.jpg]]&lt;br /&gt;
&lt;br /&gt;
After grading the assignments you should be able to view the grade book and see that the categories are being weighted as desired in the overall Aggregation Course Total.&lt;br /&gt;
&lt;br /&gt;
[[Image:WeightedMeanGradeReport2.jpg]]&lt;br /&gt;
&lt;br /&gt;
Explanation for the student at the top of the list - Reading is 10% thus the 100% score in the reading category results in a 10% contribution to the overall Aggregation Course Total and Writing is set at 90% thus the 10% score results in a 9% contribution to the overall Aggregation Course Total.&lt;br /&gt;
&lt;br /&gt;
[[Category:Grades]]&lt;br /&gt;
&lt;br /&gt;
[[ja:評点の加重値を使用する]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Grader_report&amp;diff=80140</id>
		<title>Grader report</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Grader_report&amp;diff=80140"/>
		<updated>2011-01-09T15:25:46Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grades}}The grader report page is the main teacher view of the new gradebook in Moodle 1.9. For versions prior to 1.9, look [[Grades_pre-1.9 | here]].&lt;br /&gt;
&lt;br /&gt;
The report can be seen in [[Course administration block|Course administration]]&amp;gt;Grades.&lt;br /&gt;
&lt;br /&gt;
=Basics=&lt;br /&gt;
The gradebook collects [[Grade_items|items]] that have been graded from the various parts of Moodle that are assessed, and allows you to view and change them as well as sort them out into [[Grade_categories|categories]] and calculate totals in various ways. When you add an assessed item in a Moodle course, the gradebook automatically creates space for the grades it will produce and also adds the grades themselves as they are generated, either by the system or by you.&lt;br /&gt;
&lt;br /&gt;
The [[Grades|grades]] displayed are initially displayed as the raw marks from the assessments themselves, so will depend on how you set those up e.g. an essay out of 36 will appear as however many raw marks that student got, not a percentage (although this can be changed later, see below).&lt;br /&gt;
&lt;br /&gt;
Note that various default options for the gradebook are set at system level by the administrator and can be marked as being overridable by you, or fixed. This means that the options will not always be set up the same way for every user when they see the grader report for the first time.&lt;br /&gt;
&lt;br /&gt;
=Display=&lt;br /&gt;
==Layout==&lt;br /&gt;
The layout has changed with different versions of 1.9.&lt;br /&gt;
[[Image:Grades grader report unsorted 1.png|center|thumb|600px|Grader report in 1.9.9, new course, no categories and unsorted]]&lt;br /&gt;
&lt;br /&gt;
[[Image:Grades grader report with categories 1.png|center|thumb|600px|Grader report in 1.9.9, new course, with categories and sorted]]&lt;br /&gt;
&lt;br /&gt;
Along the top of the grader report are several rows: first the course, then the category, then the columns for each graded activity (for example: Assignment, Quiz, Lesson). Any activities settings which were left &amp;quot;uncategorised&amp;quot; will appear in the general category which is named after the course by default (any category name can be changed).&lt;br /&gt;
&lt;br /&gt;
You can add a row showing the range of possible scores by going to [[Grade_preferences|My report preferences]] and selecting &#039;&#039;&#039;Show ranges&#039;&#039;&#039;.&lt;br /&gt;
[[Image:gradebook_normal_mode.png|right|thumb|center|Grader report in 1.9.5, with students]]&lt;br /&gt;
&lt;br /&gt;
There are three ways that the categories can be displayed (&lt;br /&gt;
&lt;br /&gt;
* Grades only - without the category totals column&lt;br /&gt;
* Collapsed - Category total column only&lt;br /&gt;
* Full view - grades and the aggregates (the totals column for the category) &lt;br /&gt;
&lt;br /&gt;
Each section has a small icon immediately to the right of its name. Clicking this will cycle through these display modes for that category. + goes to grades only view, o goes to full view and - goes to collapsed view.&lt;br /&gt;
&lt;br /&gt;
===Other layout options===&lt;br /&gt;
The defaults for these options can be set at site level by going to Administration-&amp;gt;Grades-&amp;gt;[[Gradebook_report_settings|Report settings]]-&amp;gt;Grader report.&lt;br /&gt;
&lt;br /&gt;
*You can add a row showing the range of possible scores by going to [[Grade_preferences|My report preferences]] and selecting &#039;&#039;&#039;Show ranges&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Highlighting rows and columns==&lt;br /&gt;
When your gradebook starts to grow, it can be hard to keep track of which student and which assignment a cell refers to. Highlighting solves that.&lt;br /&gt;
* Clicking on empty space in the cell that contains the students name will toggle the highlighting of that entire row&lt;br /&gt;
* Clicking on empty space in the cell at the top of each column will toggle highlighting of the entire column&lt;br /&gt;
(Note: this requires Javascript to be enabled in your browser.)&lt;br /&gt;
&lt;br /&gt;
==Sorting by columns==&lt;br /&gt;
&lt;br /&gt;
You can sort by any column.  Click the [[Image:Move.gif]] symbol near the top of a column to sort by that column.  This will change the symbol to a single downarrow.  Clicking again will sort lowest-to-highest, changing the symbol to an uparrow.  The arrows will toggle between these two states until you click on a different column.&lt;br /&gt;
&lt;br /&gt;
The student name columns do not have the [[Image:Move.gif]] symbol. Clicking on either the first or last name will cause the report to sort.&lt;br /&gt;
&lt;br /&gt;
*Examples&lt;br /&gt;
 &lt;br /&gt;
{| style=&amp;quot;width:75%; border=&amp;quot;0&amp;quot; align=&amp;quot;center&amp;quot; &lt;br /&gt;
|[[Image:Grade Report unsorted column1.png|frame|center|Unsorted]]&lt;br /&gt;
||[[Image:Grade Report sorted column2.png|frame|center|Sorted]]&lt;br /&gt;
||[[Image:Grade Report unsorted name1.png|frame|center|Unsorted]]&lt;br /&gt;
||[[Image:Grade Report sorted lastname3.png|frame|center|Sorted ]] &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Sorting columns==&lt;br /&gt;
*See below, [[Grader_report#Changing_the_order_of_graded_activities|Changing order of graded activities]].&lt;br /&gt;
&lt;br /&gt;
==Highlighting scores that are either adequate or unacceptable in red and green==&lt;br /&gt;
&lt;br /&gt;
Turn editing on and click on the edit icon in the controls cell at the top of the column. You can then (maybe need to click &#039;show advanced&#039;) see the option to enter a &#039;grade to pass&#039;. Once set, any grades falling above this will be highlighted in green and any below will be highlighted in red.&lt;br /&gt;
&lt;br /&gt;
Note that the highlighting will not show if the Grader report is viewed in the editing mode.&lt;br /&gt;
&lt;br /&gt;
==Categorising the grades==&lt;br /&gt;
The &#039;Choose an action...&#039; drop down on the upper left will let you switch to other views&lt;br /&gt;
* &#039;&#039;&#039;Edit categories and items&#039;&#039;&#039; will allow you to set up your assessments in different categories e.g. &#039;classwork&#039;, &#039;homework&#039; etc. &lt;br /&gt;
&lt;br /&gt;
Each category will then have its own &#039;&#039;&#039;Category total&#039;&#039;&#039; column.&lt;br /&gt;
&lt;br /&gt;
==Horizontal scrollbar==&lt;br /&gt;
[[Image:Gradebook horizontal scrollbar.png|thumb|Grader report with horizontal scrollbar]]&lt;br /&gt;
In Moodle 1.9.5 onwards, administrators may enable a static students column (in &#039;&#039;Administration &amp;gt; Grades &amp;gt; Report settings &amp;gt; [[Gradebook report settings|Grader report]]&#039;&#039;) for teachers to scroll grades in the grader report using a horizontal scrollbar. (Note that this feature is not available for IE6 users or for users who have have the screenreader setting in their profile set to Yes.)&lt;br /&gt;
&lt;br /&gt;
==Mouse-over tooltips==&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.9.5 onwards, each grade cell in the table has a tooltip indicating the user and grade item to which the grade belongs.&lt;br /&gt;
&lt;br /&gt;
=Editing=&lt;br /&gt;
[[Image:gradebook_edit_mode.png|right|thumb|Pre 1.9.5 Grader report in editing mode]]&lt;br /&gt;
Note: Editing anything in the gradebook refers to editing the grades &#039;&#039;&#039;only&#039;&#039;&#039; and none of the available operations bear any relationship to editing the main course page i.e. the appearance of your course page cannot be influenced by anything you do in the gradebook. The &amp;quot;Turn editing on&amp;quot; button functions separately from the main course one, so editing can be on in the gradebook, but simultaneously off when you switch back to course view. This is because editing grades and editing the course page are separate capabilities.   Roles such as &#039;non-editing teacher&#039; may only have one or the other.&lt;br /&gt;
&lt;br /&gt;
==Altering the grades==&lt;br /&gt;
You can click &amp;quot;Turn editing on&amp;quot;  at the top right to show an edit icon next to each grade. Clicking on the icon will bring up the editing screen for that grade which will allow you to set the grade, its written feedback and a number of other attributes.&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can click on &amp;quot;[[Grade_preferences|My report preferences]]&amp;quot;&#039; and choose &amp;quot;Quick grading&amp;quot; and &amp;quot;Quick feedback&amp;quot; to make the report appear with editable boxes containing each grade, so you can change many at once.  This capability can be a real time saver, but make sure to save at reasonable intervals lest a pageful of changes be lost.  You can lose unsaved changes by bringing up a new page in the browser, such as a Moodle manual page.  If you want a manual page or the like, be sure to bring it up in a new tab.&lt;br /&gt;
&lt;br /&gt;
Quick feedback is switched off by default, but you can easily switch it on or off using the &amp;quot;Show Quick Feedback&amp;quot; link above the grader report, when editing is on. Alternatively you can switch it on and off in the page &amp;quot;[[Grade_preferences|My report preferences]]&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==The significance of altering the grades in this screen==&lt;br /&gt;
If you make changes here, they&#039;re highlighted in this screen going forward.  The orange highlight represents a grade altered outside of its native assignment page.&lt;br /&gt;
&lt;br /&gt;
==Calculating totals==&lt;br /&gt;
Rather than a simple average or sum, Moodle can perform very complex calculations to produce the totals for each category and for the whole course. e.g. you want to take an average of 3 items from one category, double it, then add it to the average of another category.&lt;br /&gt;
&lt;br /&gt;
You can do this using calculations. Either turn on editing, then click &#039;&#039;&#039;Show calculations&#039;&#039;&#039;, or go to &#039;&#039;&#039;[[Grade_preferences|My report preferences]]&#039;&#039;&#039;, choose &#039;&#039;&#039;show calculations&#039;&#039;&#039;, then save and turn editing on. You will then see a small calculator icon next to each total column which, when you click on it, will take you to the page [[Edit grade calculation]] where there are instructions.&lt;br /&gt;
&lt;br /&gt;
To choose how the grades are aggregated for the totals within categories, you can turn editing on and click on the little editing icon for the category. You can then choose to have means, medians, modes etc.  You can also leave out empty grades and choose other settings.&lt;br /&gt;
&lt;br /&gt;
==Hiding columns or individual grades==&lt;br /&gt;
Turning on editing then clicking the &amp;quot;Show show/hide icons&amp;quot; link will give you the familiar show/hide eye icon next to each grade and at the top of each column. For more information, read about [[Grade_hiding|grade hiding]].&lt;br /&gt;
&lt;br /&gt;
==Recalculating==&lt;br /&gt;
If you change any part of an assessment e.g. alter the maximum grade for one of the questions in a quiz, you may find that the columns do not yet reflect the change you have made. Click &#039;&#039;&#039;Turn editing on&#039;&#039;&#039; twice to force the gradebook to re-check.&lt;br /&gt;
&lt;br /&gt;
==Changing the order of graded activities==&lt;br /&gt;
In 1.9.9, using the &amp;quot;Choose an action&amp;quot; pull down, the &amp;quot;Categories and items&amp;quot;  links are the places to arrange graded activities that appear on reports. By default all graded items are placed in the &amp;quot;Uncategorized&amp;quot; group. There is a move icon ([[Image:Move.gif]]) next to each item to move that item.  By creating categories, it is also possible to move groups of graded items from &amp;quot;Uncategorized&amp;quot; to a new category. Then if you wish, you may move items within that category.&lt;br /&gt;
*Note: in earlier versions many actions were put on tabs, instead of the &amp;quot;Choose an action&amp;quot; pulldown menu.  Functionality is similar.&lt;br /&gt;
&lt;br /&gt;
===Move an individual grade item===&lt;br /&gt;
On the &amp;quot;&amp;quot;categories and items&amp;quot; action view there is a series of icons under the &#039;Actions&#039; column one of which is a up/down arrow called &#039;move&#039;. Click on the [[Image:Move.gif]] and then click on one of the empty boxes to where you want to move the item to.&lt;br /&gt;
&lt;br /&gt;
[[Image:Grades categories-items move 1.png|center|thumb|150px|1.9.9, selected individual activity &amp;quot;Lesson 1&amp;quot; to move]]&lt;br /&gt;
&lt;br /&gt;
Next click on the box where you want the item to be positioned.  In the above example, the teacher has not created any categories in the course. However any time the move icon appears, it is possible to move a single item across categories.&lt;br /&gt;
&lt;br /&gt;
===Move a number of grade items simultaneously===&lt;br /&gt;
[[Image:Grades categories-items move 2.png|right|thumb|200px|Preparing to move Quizzes to &amp;quot;Exam&amp;quot; category in 1.9.9]] By selecting items and using the pull down menu, many graded activities can be moved at once into a category.&lt;br /&gt;
&lt;br /&gt;
Categories allow the teacher to visually organize grade activities in many ways.  &lt;br /&gt;
:For example, the teacher could create a category for each week or by type of activity.   In the screen shot, the teacher created a category called Exams.  The teacher selected the items to move by using the check boxes, then used the &amp;quot;Move selected items to&amp;quot; pull down menu to select the category Exams.   After the move of one or more selected items to a category, each item can be repositioned at any time.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Edit grade calculation]]&lt;br /&gt;
*[[Grade preferences]]&lt;br /&gt;
*[http://www.youtube.com/watch?v=EB58W3KePBc Video showing the basic gradebook setup and use]&lt;br /&gt;
*[http://www.youtube.com/watch?v=jWPUEqdhI4A Video showing how to change the display of grades in the gradebook]&lt;br /&gt;
*[http://www.youtube.com/watch?v=5hrLNbifiGQ Video explaining the different gradebook reports]&lt;br /&gt;
&lt;br /&gt;
Using Moodle forum discussions:&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=87844 What happens in the 1.9 gradebook when students are unenrolled from a course]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=125266 How to make the grader report narrower]&lt;br /&gt;
&lt;br /&gt;
[[ca:grade/report/grader/index]]&lt;br /&gt;
[[cs:Celkový přehled]]&lt;br /&gt;
[[es:Informe_calificador]]&lt;br /&gt;
[[eu:Kalifikatzailearen_txostena]]&lt;br /&gt;
[[fr:Rapport de l&#039;évaluateur]]&lt;br /&gt;
[[ja:評定者レポート]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Grades_FAQ&amp;diff=78653</id>
		<title>Grades FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Grades_FAQ&amp;diff=78653"/>
		<updated>2010-12-04T16:49:32Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grades}}&lt;br /&gt;
== General ==&lt;br /&gt;
&lt;br /&gt;
===How can I change how grades are displayed?===&lt;br /&gt;
&lt;br /&gt;
Grades may be displayed as as actual grades, as percentages (in reference to the minimum and maximum grades) or as letters.&lt;br /&gt;
&lt;br /&gt;
The default grade display type for the site is set by an administrator in &#039;&#039;Administration &amp;gt; Grades &amp;gt; [[Grade item settings]]&#039;&#039;. However, this may be changed at course level.&lt;br /&gt;
&lt;br /&gt;
To change how grades are displayed for particular [[Grade items|grade items]], or category and course summaries (called aggregations):&lt;br /&gt;
&lt;br /&gt;
# Follow the grades link in the course administration block.&lt;br /&gt;
# Select &amp;quot;Categories and items&amp;quot; from the gradebook dropdown menu.&lt;br /&gt;
# Click the edit icon for the grade item, category total or course total.&lt;br /&gt;
# From the Grade display type menu, select real (for actual grades), percentage or letter.&lt;br /&gt;
# Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page.&lt;br /&gt;
&lt;br /&gt;
Alternatively, to change how grades are displayed for the whole course:&lt;br /&gt;
&lt;br /&gt;
# Follow the grades link in the course administration block.&lt;br /&gt;
# Select &amp;quot;Course settings&amp;quot; from the gradebook dropdown menu.&lt;br /&gt;
# From the Grade display type menu, select real (for actual grades), percentage or letter.&lt;br /&gt;
# Click the &amp;quot;Save changes&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
===How can I hide entered grades until a specified date?===&lt;br /&gt;
&lt;br /&gt;
To set a &amp;quot;Hidden until&amp;quot; date:&lt;br /&gt;
&lt;br /&gt;
#Access the course gradebook via the grades link in the course administration block.&lt;br /&gt;
#Select &amp;quot;Categories and items&amp;quot; from the gradebook dropdown menu.&lt;br /&gt;
#Click on the edit icon opposite the activity for which a &amp;quot;Hidden until&amp;quot; date is to be set.&lt;br /&gt;
#On the edit grade item page, ensure that advanced settings are displayed. (Click the &amp;quot;Show advanced&amp;quot; button if not.)&lt;br /&gt;
#Enable the &amp;quot;Hidden until&amp;quot; setting by unchecking the disable checkbox, then set a date.&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
=== Is it possible to show the teachers/administrators&#039; grades in the grader report? ===&lt;br /&gt;
Yes, at the site level you can define which roles will appear in the grader report. This can be found in [[General_grade_settings#Graded_Roles|Administration &amp;gt; Grades &amp;gt; General settings]]. Also read [http://moodle.org/mod/forum/discuss.php?d=92612 this discussion] for some more ideas.&lt;br /&gt;
&lt;br /&gt;
===Why can&#039;t I change a grade within an assignment after changing it in the gradebook?===&lt;br /&gt;
&lt;br /&gt;
When you edit a grade directly in the gradebook, an &amp;quot;overridden&amp;quot; flag is set, meaning that the grade can no longer be changed from within the assignment.&lt;br /&gt;
&lt;br /&gt;
However, the flag can be removed by turning editing on in the [[Grader report|grader report]], then clicking the [[Grade editing|edit grade]] icon, unchecking the overridden box and saving the changes.&lt;br /&gt;
&lt;br /&gt;
===How do I get groups to show up in the grader report?===&lt;br /&gt;
&lt;br /&gt;
For groups to show up in the grader report, group mode should be set to visible or separate groups in the [[Course settings|course settings]]. This will result in a groups dropdown menu being displayed, enabling a teacher to view the grades of all participants, or only the grades for a selected group.&lt;br /&gt;
&lt;br /&gt;
===The quiz grades keep disappearing from the student view, even after I un-hide them!===&lt;br /&gt;
&lt;br /&gt;
Check your quiz settings. Under the &#039;&#039;&#039;Review options&#039;&#039;&#039; heading, in the &#039;&#039;&#039;Later, while the quiz is still open&#039;&#039;&#039; and/or the &#039;&#039;&#039;After the quiz is closed&#039;&#039;&#039; columns, you probably have Scores un-checked. Each time a student completes a quiz, these settings are consulted and the scores will be hidden from &#039;&#039;all&#039;&#039; students. If your students don&#039;t all take the quiz at the same time, it can look like quiz scores reset themselves to &#039;hidden&#039; randomly, even after you un-hide them.&lt;br /&gt;
&lt;br /&gt;
===How can I make the gradebook simpler for teachers?===&lt;br /&gt;
&lt;br /&gt;
See [[Simplifying the gradebook by changing permissions]].&lt;br /&gt;
&lt;br /&gt;
== Reports ==&lt;br /&gt;
=== How do I create my own custom gradebook reports? ===&lt;br /&gt;
Here is a [[Development:Gradebook_Report_Tutorial|tutorial]] explaining all the main steps involved.&lt;br /&gt;
===How can I sort or change the order of column headings?===&lt;br /&gt;
Go to Grades link, then select one of the &amp;quot;Category &amp;amp; items&amp;quot; actions from the pulldown on the top left.  Use the move icon to change the position of the graded item.   And/or you could create categories for the items and move them into a category so they will be grouped that way first.&lt;br /&gt;
&lt;br /&gt;
== Aggregation ==&lt;br /&gt;
=== I can&#039;t find where to change the aggregation type for my gradebook categories! ===&lt;br /&gt;
Each category has an aggregation type, which can be changed through that category&#039;s &amp;quot;edit&amp;quot; page. To access that page, you must use one of 2 ways:&lt;br /&gt;
&lt;br /&gt;
1. In the grader report, turn &amp;quot;Editing&amp;quot; on, then click the little &amp;quot;hand&amp;quot; icon next to the category whose aggregation you want to change&lt;br /&gt;
2. In the &amp;quot;Edit categories and Items&amp;quot; page (accessible through the &amp;quot;choose an action&amp;quot; menu, top left), you see a tree view of the categories and items in your gradebook. The top category is the course category. Each category also has a &amp;quot;hand&amp;quot; icon, which leads to the category edit page&lt;br /&gt;
&lt;br /&gt;
=== How can I grade some of my activities without the results affecting my students&#039; course total? ===&lt;br /&gt;
#Create two [[Grade categories]], one for your &amp;quot;activities still being graded,&amp;quot; and one for your &amp;quot;released&amp;quot; activities.&lt;br /&gt;
#Ensure that &amp;quot;Aggregate including subcategories&amp;quot; (an advanced option) is unchecked for your top level course grade category.&lt;br /&gt;
##Where is this?  In gradebook (grader report), in the upper right corner, click the &amp;quot;Turn Editing On&amp;quot; button.&lt;br /&gt;
##Click the edit icon next to the &amp;quot;course category&amp;quot; (usually your course name, just above the quiz names and below all the clickable links that were revealed when you turned editing on)&lt;br /&gt;
##Then make sure you have the &amp;quot;Show Advanced&amp;quot; option turned on.&lt;br /&gt;
#Edit the &amp;quot;activities still being graded&amp;quot; category&#039;s &amp;quot;course total&amp;quot; item. (This is one of the categories you created above.)&lt;br /&gt;
##Where is this?  Look for the edit icon under &amp;quot;category total&amp;quot; that is below this category&#039;s name&lt;br /&gt;
#Set the &amp;quot;grade type&amp;quot; to &amp;quot;none&amp;quot;.&lt;br /&gt;
#Tick the &amp;quot;Hidden&amp;quot; checkbox.&lt;br /&gt;
#Save your changes.&lt;br /&gt;
#Move all your activities being graded in the &amp;quot;activities still being graded&amp;quot;  category.&lt;br /&gt;
#Move all your activities already graded in the &amp;quot;released&amp;quot; category.&lt;br /&gt;
&lt;br /&gt;
Note: I rewrote this a bit, to help people find where things are.  However, this method didn&#039;t seem to work for me on Moodle 1.9.&lt;br /&gt;
&lt;br /&gt;
=== My student completed only one activity out of 5, but his course total shows 100%. How do I show a more &amp;quot;progressive&amp;quot; course total? ===&lt;br /&gt;
&lt;br /&gt;
==== Step-by-Step Explanation ====&lt;br /&gt;
# From the view menu in the gradeboook, select &amp;quot;Categories and items&amp;quot; [[image: https://docs.moodle.org/en/images_en/6/65/Gradebook_Tutorial_Categories_and_items_menu.gif]]&lt;br /&gt;
# At the top line there is a folder icon and an edit icon on the right, click the edit icon&lt;br /&gt;
# You&#039;ll then see the title &amp;quot;Grade category,&amp;quot; the 3rd item is &amp;quot;Aggregate only non-empty grades.&amp;quot;&lt;br /&gt;
# Uncheck this.&lt;br /&gt;
# Save.&lt;br /&gt;
&lt;br /&gt;
==== Another Explanation ====&lt;br /&gt;
By default, only non-empty grades are aggregated, the others are ignored. However, you can change this setting as well as others that affect the course total, by turning &amp;quot;Editing&amp;quot; on in the grader report, and clicking the &amp;quot;Edit&amp;quot; icon next to the course category (the very top row of the grader report).&lt;br /&gt;
&lt;br /&gt;
You can untick the box &amp;quot;Aggregate only non-empty grades&amp;quot; if you want to show a more &amp;quot;progressive&amp;quot; score for each student. Their empty grades will count as a 0 and will be counted in the course mean/total.&lt;br /&gt;
 &lt;br /&gt;
If you prefer to show a sum of points, rather than a percentage, you can change the course category&#039;s aggregation method to &amp;quot;Sum of grades&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== How can I display the average grade for my course categories (not grade categories)? ===&lt;br /&gt;
In Moodle 1.9 there is no way to aggregate course totals within each category. The gradebook is course-centered, and there is currently no User Interface for showing grades within an entire course category at once.&lt;br /&gt;
&lt;br /&gt;
=== How can I setup weighted assignments? ===&lt;br /&gt;
See [[Using &amp;quot;Weighted Mean of Grades&amp;quot; to weight categories containing assignments]].&lt;br /&gt;
&lt;br /&gt;
== Categories ==&lt;br /&gt;
=== How many depths of categories/subcategories can I create? ===&lt;br /&gt;
There is no programmatic limit, but there are practical limits. Very deeply nested structures are difficult to manage. 3 levels of categories should be sufficient for most situations. Note that there is always at least one level of categories, since the Course category always encompasses all other categories and grade items, can cannot be deleted.&lt;br /&gt;
&lt;br /&gt;
=== I can&#039;t find setting X in the grade category edit page! Where is it? ===&lt;br /&gt;
If a setting documented on the [[Grade categories]] page does not appear on your edit page, it may mean that it is set globally in your site. See [[Grade_category_settings#Forcing_settings|Forcing settings]] for more information.&lt;br /&gt;
&lt;br /&gt;
== Outcomes ==&lt;br /&gt;
=== I have just upgraded to Moodle 1.9, and I want to set up an outcome item for my course. What are the steps required? ===&lt;br /&gt;
# Administration &amp;gt; Grades &amp;gt; General settings &amp;gt; [[General_grade_settings#Enable_outcomes|Enable outcomes]]&lt;br /&gt;
#[[Scales#Creating_a_new_scale|Create a scale]]&lt;br /&gt;
#Create a course outcome (read the [[Outcomes| outcomes documentation]] for instructions). Assign to it the scale you just created.&lt;br /&gt;
#Assign the outcome to your course&lt;br /&gt;
#Enter the &amp;quot;Grades&amp;quot; section of your course, from the course administration block&lt;br /&gt;
#In the Actions menu (top left), select Edit -&amp;gt; Categories and Items&lt;br /&gt;
#Click &amp;quot;Add outcome item&amp;quot;&lt;br /&gt;
#Follow the instructions of the [[Outcome items|outcome items documentation]] to create the outcome item&lt;br /&gt;
&lt;br /&gt;
You can now give your students a rating on the outcome dimension you just created. If you created a standard outcome, you will be able to use it in other courses and follow your students&#039; performance across these courses.&lt;br /&gt;
&lt;br /&gt;
===How can I remove an outcome from an activity?===&lt;br /&gt;
&lt;br /&gt;
An outcome can be removed from an activity by deleting it on the gradebook edit categories and items page. This results in the outcomes being deselected on the update activity page.&lt;br /&gt;
&lt;br /&gt;
== Modules ==&lt;br /&gt;
=== The activity module (Module name) doesn&#039;t support grading. How can I give my students a grade anyway? ===&lt;br /&gt;
You can create a [[Grade_items#Manual_grade_items|grade item]] manually in the gradebook. You will have to grade your students through the [[Grader report]] interface (in editing mode).&lt;br /&gt;
&lt;br /&gt;
=== I just graded some of my students using the (Module name) interface, but the results aren&#039;t showing up in the grader report. What&#039;s going on? ===&lt;br /&gt;
Here are some of the possible reasons:&lt;br /&gt;
&lt;br /&gt;
#The corresponding [[Grade items|grade item]] is [[Grade_locking#In_grade_items|locked]], or its parent [[Grade categories|category]] is [[Grade_locking#In_grade_categories|locked]].&lt;br /&gt;
#The module code is not using the [[Development:Grades#API_for_communication_with_modules.2Fblocks|gradebook API]] correctly&lt;br /&gt;
&lt;br /&gt;
=== I just created a new assignment with the &amp;quot;Grade&amp;quot; setting set to &amp;quot;No grade&amp;quot;, but it still appears in the gradebook ===&lt;br /&gt;
The reason is that the gradebook is now the place where both numerical and textual types of feedback are recorded for all activity modules. The word &amp;quot;Grading&amp;quot; in assignment relates only to numerical grades, but the ability to give text feedback remains, and must be recorded in the gradebook. This is why a grade item is created for it. You can hide the grade item if you do not want it to appear in the user reports.&lt;br /&gt;
&lt;br /&gt;
==Weights and extra credits==&lt;br /&gt;
&lt;br /&gt;
===How do weighted grades influence the category or course total?===&lt;br /&gt;
A weight (also called coefficient) only has meaning in reference to other weights. If you only have one grade item, changing its weight will not have any effect. However, if you have two grade items, each with a different weight, the &amp;quot;heavier&amp;quot; item will have more influence on the total grade than the &amp;quot;lighter&amp;quot; one.&lt;br /&gt;
&lt;br /&gt;
You can set the weights to any positive numerical value you choose. Usually, at least one of the weights will be 1 and serve as the baseline for other weights. If another item has a weight of 2, its grades will be multiplied by 2 compared with the grades of the first grade item, before being averaged. The denominator used for averaging is the sum of all the weights.&lt;br /&gt;
&lt;br /&gt;
An example follows:&lt;br /&gt;
  item 1 weight: 1&lt;br /&gt;
  item 2 weight: 3&lt;br /&gt;
  item 3 weight: 0.5&lt;br /&gt;
  &lt;br /&gt;
  item 1 grade: 40/100&lt;br /&gt;
  item 2 grade: 60/100&lt;br /&gt;
  item 3 grade: 20/100&lt;br /&gt;
  &lt;br /&gt;
  Calculation: &lt;br /&gt;
  total = ((40 * 1) + (60 * 3) + (20 * 0.5)) / (1 + 3 + 0.5)&lt;br /&gt;
        = (40 + 180 + 10) / (4.5)&lt;br /&gt;
        = 230 / 4.5&lt;br /&gt;
        = 51.11&lt;br /&gt;
  &lt;br /&gt;
  The total for this category will then be 51.11 out of 100&lt;br /&gt;
&lt;br /&gt;
===Do I have to put a value in each &amp;quot;weight&amp;quot; input box?===&lt;br /&gt;
No. If you do not put a value, it will default to 1. If all items are set to 1 then they all have equal weight. If you set a weight to 0, the item&#039;s grades will not count at all in the category or course average.&lt;br /&gt;
&lt;br /&gt;
===Do all the weights have to add up to 100 or some similar value?===&lt;br /&gt;
No, the numbers you put as weights are completely arbitrary. They must be positive numbers, and can add up to anything you want. Note however that the following four sets of weights are identical in value:&lt;br /&gt;
&lt;br /&gt;
  (1 1.75 3)&lt;br /&gt;
  (4 7 12)&lt;br /&gt;
  (8 14 24)&lt;br /&gt;
  (400 700 1200)&lt;br /&gt;
&lt;br /&gt;
===What is the difference between Weight and Extra Credit?===&lt;br /&gt;
Weight is only available with &amp;quot;Weighted mean of grades&amp;quot;. For the &amp;quot;Simple weighted mean of grades&amp;quot;, the weight is taken from the grade item&#039;s maximum grade. A weight is used to give a grade item more or less importance in the computation of the category total or average, compared with the other items of the same category.&lt;br /&gt;
&lt;br /&gt;
Extra credit replaces grade item weight if the aggregation method is &amp;quot;Mean of grades (with extra credits)&amp;quot; or &amp;quot;Sum of grades&amp;quot;. The effect of extra credit is different for both methods, hence some confusion:&lt;br /&gt;
&lt;br /&gt;
*Mean of grades (with extra credits): A value of 0 does nothing. Any other value is used to multiply the grade and add it to the total after the computation of the mean. This grade is not used in the computation of the mean, however, only added afterwards. Additionally, this cannot bring the category total over its maximum grade unless grades over 100% are enabled by the site administrator (since 1.9.5). This grade item is not counted either in the denominator used to compute the category mean.&lt;br /&gt;
&lt;br /&gt;
*Sum of grades: Extra credit is a checkbox, not a number. Normally, with Sum of Grades, the category&#039;s maximum grade is the sum of the maximum grades of all its grade items. If one of them is set as &amp;quot;Extra Credit&amp;quot;, however, its maximum grade is not added to the category&#039;s maximum grade, but its grades will be. This way it is possible to achieve maximum grade (or grades over maximum if enabled by the site administrator) in the category without getting the maximum grade in all the grade items.&lt;br /&gt;
&lt;br /&gt;
===How do I create an assignment for which students can receive a grade higher than the maximum?===&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.9.5 onwards, a new unlimited grades setting in &#039;&#039;Administration &amp;gt; Grades &amp;gt; General settings&#039;&#039; enables administrators to allow teachers to enter grades over 100% directly in the gradebook.&lt;br /&gt;
&lt;br /&gt;
In earlier versions of 1.9, it is possible for a student to get less than the maximum grade in some grade items, while still getting the maximum grade in the category or course total. The Extra Credit feature is used for this purpose, as described above.&lt;br /&gt;
&lt;br /&gt;
==Formulas==&lt;br /&gt;
&lt;br /&gt;
===How do I give a fixed score for a successful quiz attempt===&lt;br /&gt;
&lt;br /&gt;
Suppose you want to give 5 points for a passing grade (say, 70) in a certain quiz. Possible scenario ([http://moodle.org/mod/forum/discuss.php?d=148576]): extra credit points to every student that gets a &amp;quot;passing grade&amp;quot; in a &amp;quot;practice test&amp;quot; at the end of each chapter covered in the course, to encourage them to practice after the homework quizzes and to get familiar with a &amp;quot;test type&amp;quot; situation before the actual test.&lt;br /&gt;
&lt;br /&gt;
The following formula should do the trick:&lt;br /&gt;
&lt;br /&gt;
 =round((||quiz||/70)-0.49,0)*5&lt;br /&gt;
&lt;br /&gt;
The formula may be added to a designated grade item or category. &lt;br /&gt;
&lt;br /&gt;
Sample calculations:&lt;br /&gt;
 Score 70:&lt;br /&gt;
 =round((70/70)-0.49,0)*5&lt;br /&gt;
 =round(1-0.49,0)*5&lt;br /&gt;
 =round(0.51,0)*5&lt;br /&gt;
 =1*5&lt;br /&gt;
 =5&lt;br /&gt;
&lt;br /&gt;
 Score 69:&lt;br /&gt;
 =round((69/70)-0.49,0)*5&lt;br /&gt;
 =round(0.98-0.49,0)*5&lt;br /&gt;
 =round(0.49,0)*5&lt;br /&gt;
 =0*5&lt;br /&gt;
 =0&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Gradebook 1.9 Tutorial]]&lt;br /&gt;
*Gradebook Scenarios/Use Cases [https://docs.moodle.org/en/experimental:_gb_tutoring]&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/view.php?id=2122 Gradebook forum]&lt;br /&gt;
&lt;br /&gt;
Using Moodle forum discussions:&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=102609 Can I aggregate only non hidden items?]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=123907 1.8.5 to 1.9.5 - gradebook faqs]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=123143 Excluding practice quizzes from gradebook]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[ca:PMF de les qualificacions]]&lt;br /&gt;
[[fr:FAQ des notes]]&lt;br /&gt;
[[ja:評定FAQ]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Gradebook_report_settings&amp;diff=78350</id>
		<title>Gradebook report settings</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Gradebook_report_settings&amp;diff=78350"/>
		<updated>2010-11-27T02:27:44Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grades}}The gradebook report settings determine the appearance of gradebook reports in each course site-wide. Report settings appear as default values prefixed with &amp;quot;Report default&amp;quot;  in a teacher&#039;s [[Grade preferences|&amp;quot;My report preferences&amp;quot;]] tab and &amp;quot;Default&amp;quot; in the [[Gradebook course settings|course settings]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Grader report settings==&lt;br /&gt;
[[Image:Grader report settings.png|thumb|Grader report settings]]Location: &#039;&#039;Administration &amp;gt; Grades &amp;gt; Report settings &amp;gt; Grader report&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Grader report settings include whether to show calculations, show/hide icons, column averages etc. Individual teachers may override certain settings for their own grader report view via their [[Grade preferences|&amp;quot;My report preferences&amp;quot;]] tab.&lt;br /&gt;
&lt;br /&gt;
===Quick grading and quick feedback===&lt;br /&gt;
&lt;br /&gt;
*Quick grading adds a text input element in each grade cell on the grader report, allowing you to edit the feedback for many grades at once. You can then click the Update button to perform all these changes at once, instead of one at a time.&lt;br /&gt;
*Quick feedback adds a text input element in each grade cell on the grader report, allowing you to edit many grades at once. You can then click the Update button to perform all these changes at once, instead of one at a time.&lt;br /&gt;
*By default, both quick grading and quick feedback are enabled. They can be disabled by de-selecting the appropriate checkbox(es).&lt;br /&gt;
[[Image:Gradebook horizontal scrollbar.png|thumb|Grader report with horizontal scrollbar]]&lt;br /&gt;
===Static students column===&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.9.5 onwards, a static students column may be enabled so that teachers can scroll grades in the [[Grader report|grader report]] using a horizontal scrollbar. (Note that this feature is not available for IE6 users or for users who have have the screenreader setting in their profile set to Yes.)&lt;br /&gt;
&lt;br /&gt;
==Overview report settings==&lt;br /&gt;
Location: &#039;&#039;Administration &amp;gt; Grades &amp;gt; Report settings &amp;gt; Overview report&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The overview report setting may be overridden for all overview reports in a course by a teacher in the [[Gradebook course settings|course settings]].&lt;br /&gt;
&lt;br /&gt;
===Show rank===&lt;br /&gt;
&lt;br /&gt;
If the show rank checkbox is ticked, the position of a grade item in relation to the rest of the class will be shown.&lt;br /&gt;
&lt;br /&gt;
==User report settings==&lt;br /&gt;
Location: &#039;&#039;Administration &amp;gt; Grades &amp;gt; Report settings &amp;gt; User report&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The user report settings may be overridden for all user reports in a course by a teacher in the [[Gradebook course settings|course settings]].&lt;br /&gt;
&lt;br /&gt;
===Show rank===&lt;br /&gt;
&lt;br /&gt;
If the show rank checkbox is ticked, the position of a grade item in relation to the rest of the class will be shown.&lt;br /&gt;
&lt;br /&gt;
===Show percentage===&lt;br /&gt;
&lt;br /&gt;
If the show percentage checkbox (in Moodle 1.9.3 onwards) is ticked, the percentage value of each grade item will be shown.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[Grade preferences]] - for teachers to set their personal preferences for how the grader report is displayed&lt;br /&gt;
*[[Gradebook course settings]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Grades]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[de:Einstellungen_für_die_Bewertungsübersicht]]&lt;br /&gt;
[[eu:Kalifikazio-liburuaren_txostenen_ezarpenak]]&lt;br /&gt;
[[fr:Réglages du rapport de l&#039;évaluateur]]&lt;br /&gt;
[[ja:評定表レポート設定]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Development:Gradebook_Report_Tutorial&amp;diff=77685</id>
		<title>Development:Gradebook Report Tutorial</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Development:Gradebook_Report_Tutorial&amp;diff=77685"/>
		<updated>2010-11-11T16:59:20Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
One of the great features of the new gradebook implementation in Moodle 1.9 is the support for plug-in reports. A few reports are already included in the release, but it is fast and easy to create new reports of any kind.&lt;br /&gt;
&lt;br /&gt;
This page is a small tutorial on how to create a new report for the Moodle gradebook. The first section highlights the basic setup steps, the bare minimum to get your plug-in detected and usable. The second section gives an example of a possible implementation, although you are free to develop outside of these suggestions.&lt;br /&gt;
&lt;br /&gt;
The simplest example report to look at while following this guide is &#039;&#039;&#039;grade/report/overview&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Bare minimum ==&lt;br /&gt;
&lt;br /&gt;
These steps all involve creating new files, but in all cases they can be copy-pasted from existing reports, to make your life easier.&lt;br /&gt;
&lt;br /&gt;
1. Create a new folder under grade/report &lt;br /&gt;
    grade/report/[newreport]&lt;br /&gt;
2. Create a /db sub-folder under the new report folder &lt;br /&gt;
    grade/report/[newreport]/db&lt;br /&gt;
3. Create an access.php file in the db folder with the following content. You should change the capabilities as needed.&lt;br /&gt;
    grade/report/[newreport]/db/access.php&lt;br /&gt;
  &lt;br /&gt;
    &amp;lt;?php&lt;br /&gt;
    $gradereport_[newreport]_capabilities = array(&lt;br /&gt;
        &#039;gradereport/[newreport]:view&#039; =&amp;gt; array(&lt;br /&gt;
            &#039;riskbitmask&#039; =&amp;gt; RISK_PERSONAL,&lt;br /&gt;
            &#039;captype&#039; =&amp;gt; &#039;read&#039;,&lt;br /&gt;
            &#039;contextlevel&#039; =&amp;gt; CONTEXT_COURSE,&lt;br /&gt;
            &#039;legacy&#039; =&amp;gt; array(&lt;br /&gt;
                &#039;student&#039; =&amp;gt; CAP_ALLOW,&lt;br /&gt;
                &#039;teacher&#039; =&amp;gt; CAP_ALLOW,&lt;br /&gt;
                &#039;editingteacher&#039; =&amp;gt; CAP_ALLOW,&lt;br /&gt;
                &#039;admin&#039; =&amp;gt; CAP_ALLOW&lt;br /&gt;
            )&lt;br /&gt;
        ),&lt;br /&gt;
    );&lt;br /&gt;
    ?&amp;gt;&lt;br /&gt;
4. Create a version.php file with the current dates:&lt;br /&gt;
    grade/report/[newreport]/version.php&lt;br /&gt;
    &amp;lt;?php&lt;br /&gt;
    $plugin-&amp;gt;version  = 2007081000;&lt;br /&gt;
    $plugin-&amp;gt;requires = 2007081000;&lt;br /&gt;
    ?&amp;gt;&lt;br /&gt;
5.Create an index.php&lt;br /&gt;
    grade/report/[newreport]/index.php&lt;br /&gt;
6.Create a language file for your report. Include at least the modulename, and optionally the strings for different capabilities. &lt;br /&gt;
    grade/report/[newreport]/lang/en_utf8/gradereport_[newreport].php&lt;br /&gt;
    &lt;br /&gt;
    Example from user report here:&lt;br /&gt;
    &lt;br /&gt;
    $string[&#039;modulename&#039;] = &#039;User report&#039;;&lt;br /&gt;
    $string[&#039;user:view&#039;] = &#039;View your own grade report&#039;;&lt;br /&gt;
&lt;br /&gt;
You do not need to create a new link to your report, it will be automatically detected and added to the gradebook plugin drop-down menu, if you&#039;ve followed all these steps!&lt;br /&gt;
&lt;br /&gt;
This is all you need to do to create a new report! Now, of course, you&#039;ll want the code to actually DO something, usually fetch and display some data. The next section discusses one easy approach using flexitable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Possible step 7 ==&lt;br /&gt;
&lt;br /&gt;
I also needed to include the &#039;&#039;&#039;settings.php&#039;&#039;&#039; file in my new &#039;&#039;grade\report\[directory name]&#039;&#039; directory.  If the file was not present, i received this error &#039;&#039;&#039;&amp;quot;Section Error!&amp;quot;&#039;&#039;&#039;.  Once i added the file to the grade\report\[directory name] directory, it corrected.  The settings.php file is empty.  I am using Moodle 1.9.&lt;br /&gt;
&lt;br /&gt;
== Possible step 8 ==&lt;br /&gt;
&lt;br /&gt;
If the report is made available to multiple users you may need to update the tables by going to the admin section of your Moodle installation, just like when you are upgrading. Then go the the define roles and make sure that your permissions are set correct. I&#039;m using Moodle 1.9&lt;br /&gt;
&lt;br /&gt;
== Extending the grade_report class == &lt;br /&gt;
 &lt;br /&gt;
You are free to develop that class any way you want, but by using the existing methods set up in grade_report, you can avoid tedious repetition of code. We use flexitable for simple reports, as you can see in the user report (grade_report_user class).    The rest of this tutorial will follow the path of flexitable.&lt;br /&gt;
&lt;br /&gt;
=== New file ===&lt;br /&gt;
#Create a lib.php file (or copy it from other report).&lt;br /&gt;
    grade/report/[newreport]/lib.php&lt;br /&gt;
&lt;br /&gt;
#The lib.php contains an extension of the grade_report class, and should be named&lt;br /&gt;
    grade_report_[newreport]&lt;br /&gt;
&lt;br /&gt;
=== Grade_report class variables ===&lt;br /&gt;
The grade_report class makes the following variables available to your new class, if you use its constructor in your child class&#039; constructor:&lt;br /&gt;
    &lt;br /&gt;
; courseid       : Required by constructor&lt;br /&gt;
; gpr            : Grade plugin return tracking object, required by constructor&lt;br /&gt;
; context        : Required by constructor&lt;br /&gt;
; gtree          : The grade_tree must be instantiated in child classes: not all reports need the whole tree&lt;br /&gt;
; prefs          : Array of user preferences related to this report. Methods are given to get and set these easily&lt;br /&gt;
; gradebookroles : The roles for this report, pulled out of $CFG-&amp;gt;gradebookroles&lt;br /&gt;
; baseurl        : Base url for sorting by first/last name (not needed by all reports)&lt;br /&gt;
; pbarurl        : Base url for paging&lt;br /&gt;
; page           : Current page (for paging). Must be given to constructor if paging is required.&lt;br /&gt;
; lang_strings   : Array of cached language strings (using get_string() all the time                           takes a long time!). A method is provided to replace get_string() and use this cache    &lt;br /&gt;
; currentgroup   : The current group being displayed.&lt;br /&gt;
; group_selector : A HTML select element used to select the current group.&lt;br /&gt;
; groupsql       : An SQL fragment used to add linking information to the group tables.&lt;br /&gt;
; groupwheresql  : An SQL constraint to append to the queries used by this object to build the report.&lt;br /&gt;
&lt;br /&gt;
=== Grade_report class methods === &lt;br /&gt;
&lt;br /&gt;
The grade_report class has the following methods which you can use, provided the right steps have been taken to initialise the object first:&lt;br /&gt;
; get_pref()            : Given the name of a user preference (without grade_report_ prefix), locally saves then returns the value of that preference. If the preference has already been fetched before, the saved value is returned. If the preference is not set at the User level, the $CFG equivalent is given (site default).&lt;br /&gt;
; set_pref()            : Uses set_user_preferences() to update the value of a user preference. If &#039;default&#039; is given as the value, the preference will be removed in favour of a higher-level preference ($CFG-&amp;gt;$pref_name usually)&lt;br /&gt;
; process_data()        : Abstract method, needs to be implemented by child classes if they want to handle user form submissions on the report they want to handle user actions on the report                                  &lt;br /&gt;
; process_action()      : Abstract method, needs to be implemented by child classes if they want to handle user actions on the report&lt;br /&gt;
; get_grade_clean()     : format grade using lang specific decimal point and thousand separator the result is suitable for printing on html page&lt;br /&gt;
; format_grade()        : Given a user input grade, format it to standard format i.e. no thousand separator, and . as decimal point&lt;br /&gt;
; get_lang_string()     : First checks the cached language strings, then returns match if found, or uses get_string(). Use this for any lang_strings in the grades.php file.&lt;br /&gt;
; grade_to_percentage() : Computes then returns the percentage value of the grade value within the given range.&lt;br /&gt;
; get_grade_letters()   : Fetches and returns an array of grade letters indexed by their grade boundaries, as stored in preferences.&lt;br /&gt;
; get_numusers()        : Fetches and returns a count of all the users that will be shown on this page.&lt;br /&gt;
; setup_groups()        : Sets up this object&#039;s group variables, mainly to restrict the selection of users to display.&lt;br /&gt;
; get_sort_arrow()      : Returns an arrow icon inside an &amp;lt;a&amp;gt; tag, for the purpose of sorting a column.&lt;br /&gt;
; get_module_link()     : Builds and returns a HTML link to the grade or view page of the module given. If no itemmodule is given, only the name of the category/item is returned, no link.&lt;br /&gt;
&lt;br /&gt;
=== Report child class ===&lt;br /&gt;
&lt;br /&gt;
Assuming you are using flexitable, your child class needs the following variable and methods:&lt;br /&gt;
    $table : The flexitable that will hold the data&lt;br /&gt;
    &lt;br /&gt;
*grade_report_[newreport]() : Constructor. You can set up anything here, but you must call the parent constructor with the 3 required params:&lt;br /&gt;
        parent::grade_report($COURSE-&amp;gt;id, $gpr, $context);&lt;br /&gt;
        The $gpr and $context variables are normally set up in grade/report/[newreport]/index.php&lt;br /&gt;
    &lt;br /&gt;
*setup_table() : Prepares the headers and attributes of the flexitable. Example used for the very simple overview report:&lt;br /&gt;
        // setting up table headers&lt;br /&gt;
        $tablecolumns = array(&#039;coursename&#039;, &#039;grade&#039;, &#039;rank&#039;);&lt;br /&gt;
        $tableheaders = array($this-&amp;gt;get_lang_string(&#039;coursename&#039;, &#039;grades&#039;),&lt;br /&gt;
                              $this-&amp;gt;get_lang_string(&#039;grade&#039;),&lt;br /&gt;
                              $this-&amp;gt;get_lang_string(&#039;rank&#039;, &#039;grades&#039;));&lt;br /&gt;
 &lt;br /&gt;
        $this-&amp;gt;table = new flexible_table(&#039;grade-report-overview-&#039;.$this-&amp;gt;user-&amp;gt;id);&lt;br /&gt;
 &lt;br /&gt;
        $this-&amp;gt;table-&amp;gt;define_columns($tablecolumns);&lt;br /&gt;
        $this-&amp;gt;table-&amp;gt;define_headers($tableheaders);&lt;br /&gt;
        $this-&amp;gt;table-&amp;gt;define_baseurl($this-&amp;gt;baseurl);&lt;br /&gt;
 &lt;br /&gt;
        $this-&amp;gt;table-&amp;gt;set_attribute(&#039;cellspacing&#039;, &#039;0&#039;);&lt;br /&gt;
        $this-&amp;gt;table-&amp;gt;set_attribute(&#039;id&#039;, &#039;overview-grade&#039;);&lt;br /&gt;
        $this-&amp;gt;table-&amp;gt;set_attribute(&#039;class&#039;, &#039;boxaligncenter generaltable&#039;);&lt;br /&gt;
 &lt;br /&gt;
        $this-&amp;gt;table-&amp;gt;setup();&lt;br /&gt;
     &lt;br /&gt;
*fill_table() : After setup_table(), gathers and enters the data in the table. Again, from the overview report:&lt;br /&gt;
        global $CFG;&lt;br /&gt;
        $numusers = $this-&amp;gt;get_numusers();&lt;br /&gt;
 &lt;br /&gt;
        if ($courses = get_courses(&#039;all&#039;, null, &#039;c.id, c.shortname&#039;)) {&lt;br /&gt;
            foreach ($courses as $course) {&lt;br /&gt;
                // Get course grade_item&lt;br /&gt;
                $grade_item_id = get_field(&#039;grade_items&#039;, &#039;id&#039;, &#039;itemtype&#039;, &lt;br /&gt;
                                           &#039;course&#039;, &#039;courseid&#039;, $course-&amp;gt;id);&lt;br /&gt;
 &lt;br /&gt;
                // Get the grade&lt;br /&gt;
                $finalgrade = get_field(&#039;grade_grades&#039;, &#039;finalgrade&#039;, &#039;itemid&#039;, &lt;br /&gt;
                                        $grade_item_id, &#039;userid&#039;, $this-&amp;gt;user-&amp;gt;id);&lt;br /&gt;
 &lt;br /&gt;
                /// prints rank&lt;br /&gt;
                if ($finalgrade) {&lt;br /&gt;
                    /// find the number of users with a higher grade&lt;br /&gt;
                    $sql = &amp;quot;SELECT COUNT(DISTINCT(userid))&lt;br /&gt;
                            FROM {$CFG-&amp;gt;prefix}grade_grades&lt;br /&gt;
                            WHERE finalgrade &amp;gt; $finalgrade&lt;br /&gt;
                            AND itemid = $grade_item_id&amp;quot;;&lt;br /&gt;
                    $rank = count_records_sql($sql) + 1;&lt;br /&gt;
 &lt;br /&gt;
                    $rankdata = &amp;quot;$rank/$numusers&amp;quot;;&lt;br /&gt;
                } else {&lt;br /&gt;
                    // no grade, no rank&lt;br /&gt;
                    $rankdata = &amp;quot;-&amp;quot;;&lt;br /&gt;
                }&lt;br /&gt;
 &lt;br /&gt;
                $this-&amp;gt;table-&amp;gt;add_data(array($course-&amp;gt;shortname, $finalgrade, $rankdata));&lt;br /&gt;
            }&lt;br /&gt;
 &lt;br /&gt;
            return true;&lt;br /&gt;
        } else {&lt;br /&gt;
            notify(get_string(&#039;nocourses&#039;, &#039;grades&#039;));&lt;br /&gt;
            return false;&lt;br /&gt;
        }&lt;br /&gt;
*print_table() : Just does what its name says...&lt;br /&gt;
        ob_start();&lt;br /&gt;
        $this-&amp;gt;table-&amp;gt;print_html();&lt;br /&gt;
        $html = ob_get_clean();&lt;br /&gt;
        if ($return) {&lt;br /&gt;
            return $html;&lt;br /&gt;
        } else {&lt;br /&gt;
            echo $html;&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
*process_data() and process_action() : You can implement these two methods if you need to handle data and actions.&lt;br /&gt;
&lt;br /&gt;
=== Set up the index.php file ===&lt;br /&gt;
Here is the simple example from the overview report (grade/report/overview).&lt;br /&gt;
    &lt;br /&gt;
    require_once &#039;../../../config.php&#039;;&lt;br /&gt;
    require_once $CFG-&amp;gt;libdir.&#039;/gradelib.php&#039;;&lt;br /&gt;
    require_once $CFG-&amp;gt;dirroot.&#039;/grade/lib.php&#039;;&lt;br /&gt;
    require_once $CFG-&amp;gt;dirroot.&#039;/grade/report/overview/lib.php&#039;;&lt;br /&gt;
 &lt;br /&gt;
    $courseid = optional_param(&#039;id&#039;, $COURSE-&amp;gt;id, PARAM_INT);&lt;br /&gt;
    $userid   = optional_param(&#039;userid&#039;, $USER-&amp;gt;id, PARAM_INT);&lt;br /&gt;
 &lt;br /&gt;
    /// basic access checks&lt;br /&gt;
    if (!$course = get_record(&#039;course&#039;, &#039;id&#039;, $courseid)) {&lt;br /&gt;
        print_error(&#039;nocourseid&#039;);&lt;br /&gt;
    }&lt;br /&gt;
    require_login($course);&lt;br /&gt;
 &lt;br /&gt;
    if (!$user = get_complete_user_data(&#039;id&#039;, $userid)) {&lt;br /&gt;
        error(&amp;quot;Incorrect userid&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
    $context     = get_context_instance(CONTEXT_COURSE, $course-&amp;gt;id);&lt;br /&gt;
    $usercontext = get_context_instance(CONTEXT_USER, $user-&amp;gt;id);&lt;br /&gt;
    require_capability(&#039;gradereport/overview:view&#039;, $context);&lt;br /&gt;
 &lt;br /&gt;
    $access = true;&lt;br /&gt;
    if (has_capability(&#039;moodle/grade:viewall&#039;, $context)) {&lt;br /&gt;
        //ok - can view all course grades&lt;br /&gt;
 &lt;br /&gt;
    } else if ($user-&amp;gt;id == $USER-&amp;gt;id and has_capability(&#039;moodle/grade:view&#039;, $context) and $course-&amp;gt;showgrades) {&lt;br /&gt;
        //ok - can view own grades&lt;br /&gt;
 &lt;br /&gt;
    } else if (has_capability(&#039;moodle/grade:viewall&#039;, $usercontext) and $course-&amp;gt;showgrades) {&lt;br /&gt;
        // ok - can view grades of this user- parent most probably&lt;br /&gt;
 &lt;br /&gt;
    } else {&lt;br /&gt;
        $acces = false;&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
    /// return tracking object&lt;br /&gt;
    $gpr = new grade_plugin_return(array(&#039;type&#039;=&amp;gt;&#039;report&#039;, &#039;plugin&#039;=&amp;gt;&#039;overview&#039;, &#039;courseid&#039;=&amp;gt;$course-&amp;gt;id, &#039;userid&#039;=&amp;gt;$userid));&lt;br /&gt;
 &lt;br /&gt;
    /// last selected report session tracking&lt;br /&gt;
    if (!isset($USER-&amp;gt;grade_last_report)) {&lt;br /&gt;
        $USER-&amp;gt;grade_last_report = array();&lt;br /&gt;
    }&lt;br /&gt;
    $USER-&amp;gt;grade_last_report[$course-&amp;gt;id] = &#039;overview&#039;;&lt;br /&gt;
 &lt;br /&gt;
    /// Build navigation&lt;br /&gt;
    $strgrades  = get_string(&#039;grades&#039;);&lt;br /&gt;
    $reportname = get_string(&#039;modulename&#039;, &#039;gradereport_overview&#039;);&lt;br /&gt;
 &lt;br /&gt;
    $navigation = grade_build_nav(__FILE__, $reportname, $course-&amp;gt;id);&lt;br /&gt;
 &lt;br /&gt;
    /// Print header&lt;br /&gt;
    print_header_simple($strgrades.&#039;: &#039;.$reportname, &#039;: &#039;.$strgrades, $navigation,&lt;br /&gt;
                        &#039;&#039;, &#039;&#039;, true, &#039;&#039;, navmenu($course));&lt;br /&gt;
 &lt;br /&gt;
    /// Print the plugin selector at the top&lt;br /&gt;
    print_grade_plugin_selector($course-&amp;gt;id, &#039;report&#039;, &#039;overview&#039;);&lt;br /&gt;
 &lt;br /&gt;
    if ($access) {&lt;br /&gt;
 &lt;br /&gt;
        //first make sure we have proper final grades - this must be done before constructing of the grade tree&lt;br /&gt;
        grade_regrade_final_grades($course-&amp;gt;id);&lt;br /&gt;
 &lt;br /&gt;
        // Create a report instance&lt;br /&gt;
        $report = new grade_report_overview($userid, $gpr, $context);&lt;br /&gt;
 &lt;br /&gt;
        $gradetotal = 0;&lt;br /&gt;
        $gradesum = 0;&lt;br /&gt;
 &lt;br /&gt;
        // print the page&lt;br /&gt;
        print_heading(get_string(&#039;modulename&#039;, &#039;gradereport_overview&#039;). &#039; - &#039;.fullname($report-&amp;gt;user));&lt;br /&gt;
 &lt;br /&gt;
        if ($report-&amp;gt;fill_table()) {&lt;br /&gt;
            echo $report-&amp;gt;print_table(true);&lt;br /&gt;
        }&lt;br /&gt;
 &lt;br /&gt;
    } else {&lt;br /&gt;
        // no access to grades!&lt;br /&gt;
        echo &amp;quot;Can not view grades.&amp;quot;; //TODO: localize&lt;br /&gt;
    }&lt;br /&gt;
    print_footer($course);&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
This short tutorial doesn&#039;t explain how to actually create a &#039;&#039;useful&#039;&#039; report. That part is essentially up to you, and there are no hard rules about how to do it. Instead, this tutorial explains how to setup a &amp;quot;stub&amp;quot; report, a basic framework with a set of tools and variables you can use to create a fully functional and essential report for your Moodle needs. Please share your report-building experiences and tribulations with the Moodle community through the forum.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=69223&amp;amp;mode=3 Gradebook Development ideas] forum discussion&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=51107 New gradebook for Moodle] forum discussion&lt;br /&gt;
* [[Development:Grades]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Developer|Grades]]&lt;br /&gt;
[[Category:Grades]]&lt;br /&gt;
&lt;br /&gt;
[[ja:開発:評定表レポートチュートリアル]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Outcome_items&amp;diff=77020</id>
		<title>Outcome items</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Outcome_items&amp;diff=77020"/>
		<updated>2010-10-23T19:44:25Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grades}}&lt;br /&gt;
== Overview ==&lt;br /&gt;
An outcome item IS NOT an [[Outcomes|outcome]]. &lt;br /&gt;
&lt;br /&gt;
An outcome item is in most respects the same thing as a [[Grade items|grade item]].&lt;br /&gt;
&lt;br /&gt;
The main difference between the two is that the purpose of a outcome item is to rate students on a particular outcome/competency/goal, whereas grade items are used for grading students, usually with the intention of aggregating the results as a measure of the student&#039;s performance in the course activities.&lt;br /&gt;
&lt;br /&gt;
An outcome item is always linked with an outcome, which itself is linked to a [[Scales|scale]]. The scale may represent a quantitative measure, its values being arranged from lowest to highest; or it may represent a qualitative measure, in which the order of the scale values is irrelevant. The first type can be aggregated, but the second type shouldn&#039;t (we wouldn&#039;t want to fail a student because her favourite colour is &amp;quot;blue&amp;quot;!).&lt;br /&gt;
&lt;br /&gt;
An outcome item may optionally be linked to an activity. This activity may or may not appear in the gradebook (for example, a wiki is usually not graded, so does not appear). Linking an outcome item with an activity creates a grade item with the icon of the linked activity, but there is no other way to see which activity it is linked with. For this reason, it is a good idea to include the activity name in the name of the outcome item (e.g. Wiki 1: Participation).&lt;br /&gt;
&lt;br /&gt;
== Settings ==&lt;br /&gt;
=== Item name ===&lt;br /&gt;
Usually named after the linked outcome. If linked to an activity, it is a good idea to include that activity&#039;s name in the item name (see explanation above)&lt;br /&gt;
&lt;br /&gt;
=== Outcome ===&lt;br /&gt;
The site or course outcome this item represents in the gradebook.&lt;br /&gt;
&lt;br /&gt;
=== Linked activity ===&lt;br /&gt;
An optional course activity with which this outcome item can be linked. See notes above regarding the naming of activity-linked outcome items.&lt;br /&gt;
&lt;br /&gt;
=== Hidden ===&lt;br /&gt;
See [[Grade_hiding]] for info.&lt;br /&gt;
&lt;br /&gt;
=== Locked ===&lt;br /&gt;
See [[Grade_locking]] for info.&lt;br /&gt;
&lt;br /&gt;
== Advanced settings ==&lt;br /&gt;
&lt;br /&gt;
=== Item info ===&lt;br /&gt;
A space for entering information about the item. Text entered does not appear anywhere else.&lt;br /&gt;
&lt;br /&gt;
=== ID number ===&lt;br /&gt;
Setting an ID number provides a way of identifying the outcome item for grade calculation purposes. If the outcome item is not included in any grade calculation, or if a calculation is not applicable (i.e. qualitative scales), then the ID number field can be left blank.&lt;br /&gt;
&lt;br /&gt;
[[ja:アウトカム項目]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Grade_calculations&amp;diff=75983</id>
		<title>Grade calculations</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Grade_calculations&amp;diff=75983"/>
		<updated>2010-09-20T16:04:03Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grades}}A grade calculation is a formula used to determine grades, based (optionally) on other grade items. Note that this is not the same as [[Calculated_question_type|Calculated question types]].&lt;br /&gt;
&lt;br /&gt;
Calculations for the gradebook follow the pattern of formulas/functions in popular spreadsheet programs. They start with an equal (=) sign, and use common mathematical operators and functions to produce a single numerical output. This output is then used as the computed value for the grade item you are editing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Setting a grade calculation==&lt;br /&gt;
[[Image:Calc_icon.JPG|thumb|Calculator symbol]]&lt;br /&gt;
[[Image:Final_calc.JPG|thumb|Example calculation]]&lt;br /&gt;
To set a grade calculation:&lt;br /&gt;
# Login as teacher or other user with permission to edit grades&lt;br /&gt;
# Click on Grades in the course administration block&lt;br /&gt;
# Click the &#039;Categories and items&#039; tab (or select it from the gradebook dropdown menu)&lt;br /&gt;
# Click the &#039;calculator symbol&#039; (in the &#039;Actions&#039; column) opposite the grade category you wish to set a calculation for&lt;br /&gt;
# Start with an equal sign (=)&lt;br /&gt;
# Choose a function; Example: =sum()&lt;br /&gt;
# Plug in your ID numbers enclosed in double square brackets, for example &amp;lt;nowiki&amp;gt;=sum([[item1]][[item2]][[item3]])&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Separate each ID number with a comma, for example &amp;lt;nowiki&amp;gt;=sum([[item1]],[[item2]],[[item3]])&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Click the &amp;quot;Save Changes&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
==Assigning ID numbers==&lt;br /&gt;
&lt;br /&gt;
You can include the values of other grade items by using their ID number as references in your formulas. The ID number is surrounded by double square brackets, for example if you have a grade item with Quiz.3 as ID number, you will refer to this item as &amp;lt;nowiki&amp;gt;[[Quiz.3]]&amp;lt;/nowiki&amp;gt; in your calculation.&lt;br /&gt;
&lt;br /&gt;
Below the calculation field is a list of your course with its grade categories and grade items. Next to each item or category&#039;s total is displayed the ID number you can use in your calculation (already surrounded with double square brackets). However, since the ID number is optional, some items may not yet have one. These items without an ID number have instead a form field which lets you enter an ID number directly.&lt;br /&gt;
&lt;br /&gt;
As soon as you have assigned the ID numbers you need, you can click the &amp;quot;Add ID numbers&amp;quot; button, and the page will reload and show you the same list with the ID numbers you have just assigned.&lt;br /&gt;
&lt;br /&gt;
==Calculation functions==&lt;br /&gt;
&lt;br /&gt;
Every calculation must start with an equal sign (=). Following is a list of the functions supported by the calculation. The comma (,) character is used to separate arguments within function brackets. The comma can also be used to separate different functions. (The separator character could be a semicolon (;) in other languages, see below).&lt;br /&gt;
&lt;br /&gt;
* average&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the average of a sample&lt;br /&gt;
* max&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the maximum value in a list of arguments&lt;br /&gt;
* min&amp;lt;nowiki&amp;gt;([[item1]], [[item2]]...):&amp;lt;/nowiki&amp;gt; Returns the minimum value in a list of arguments&lt;br /&gt;
* mod(dividend, divisor): Calculates the remainder of a division&lt;br /&gt;
* pi(): Returns the value of the number Pi&lt;br /&gt;
* power(base, power): Raises a number to the power of another&lt;br /&gt;
* round(number, count): Rounds a number to a predefined accuracy&lt;br /&gt;
* sum(&amp;lt;nowiki&amp;gt;[[item1]], [[item2]]...)&amp;lt;/nowiki&amp;gt;: Returns the sum of all arguments&lt;br /&gt;
* an asterisk (*) gives the product of two items: &amp;lt;nowiki&amp;gt;[[item1]]*[[item2]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A number of mathematical functions is also supported:&lt;br /&gt;
&lt;br /&gt;
* sin&lt;br /&gt;
* sinh&lt;br /&gt;
* arcsin&lt;br /&gt;
* asin&lt;br /&gt;
* arcsinh&lt;br /&gt;
* asinh&lt;br /&gt;
* cos&lt;br /&gt;
* cosh&lt;br /&gt;
* arccos&lt;br /&gt;
* acos&lt;br /&gt;
* arccosh&lt;br /&gt;
* acosh&lt;br /&gt;
* tan&lt;br /&gt;
* tanh&lt;br /&gt;
* arctan&lt;br /&gt;
* atan&lt;br /&gt;
* arctanh&lt;br /&gt;
* atanh&lt;br /&gt;
* sqrt&lt;br /&gt;
* abs&lt;br /&gt;
* ln&lt;br /&gt;
* log&lt;br /&gt;
* exp&lt;br /&gt;
&lt;br /&gt;
==Example calculations==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=average([[Quiz.1]], [[Quiz.4]], [[Assignment.1]])&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;=average(max([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]), min([[Quiz.1]], [[Quiz.4]], [[Assignment.1]]))&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* Weighted grade calculations where item 1 is weighted 30%, item 2 is weighted at 60% and item 3 is weighted at 200%: &amp;lt;nowiki&amp;gt;=sum([[1]]*0.3,[[2]]*0.6,[[3]]*2)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Calculations when user language is not English==&lt;br /&gt;
&lt;br /&gt;
Calculation formulas use decimal and list separators as defined in each language pack.&lt;br /&gt;
&lt;br /&gt;
The decimal separator (a symbol used to mark the boundary between the integral and the fractional parts of a decimal number) is a point (.) in English. In other languages it may be a comma (,).&lt;br /&gt;
&lt;br /&gt;
The list separator (a symbol used to separate a list of ID numbers in square brackets) is a comma (,) in English. In other languages it may be a semicolon (;).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[http://www.youtube.com/watch?v=WKUGyzAXcyA Video on how to set up calculations in the gradebook (basic)]&lt;br /&gt;
*[http://www.youtube.com/watch?v=VBEj8mmu8lM Video on how to set up calculations in the gradebook (advanced)]&lt;br /&gt;
&lt;br /&gt;
[[ca:grade/edit/tree/calculation]]&lt;br /&gt;
[[fr:Calcul de notes]]&lt;br /&gt;
[[ru:Формулы и вычисления оценок]]&lt;br /&gt;
[[ja:評定計算]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Grade_item_settings&amp;diff=75882</id>
		<title>Grade item settings</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Grade_item_settings&amp;diff=75882"/>
		<updated>2010-09-15T16:20:10Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grades}}Location: &#039;&#039;Administration &amp;gt; Grades &amp;gt; Grade item settings&#039;&#039;&lt;br /&gt;
[[Image:Grade item settings.png|thumb|Grade item settings screen]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Grade item settings are the various settings that the administrator is able to edit for all [[Gradebook|gradebooks]] used by teachers. These settings will change what items are displayed for each grade. As administrator, you would turn on or off various settings and the teacher would input the actual data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Grade display type==&lt;br /&gt;
&lt;br /&gt;
This is the type of grade that is to be shown for each individual grade. Different school districts use different grading systems so this can be changed to suit your district.&lt;br /&gt;
&lt;br /&gt;
* Real - Grade from minimum to maximum range indicating total points received. Default from 0-100 but may be arbitrary.&lt;br /&gt;
* Percentage - Grade from 0 - 100% indicating the total points received divided by maximum possible amount times 100.&lt;br /&gt;
* [[Grade letters|Letter]]- Grade in the form of a letter representing a range of percentages.&lt;br /&gt;
&lt;br /&gt;
==Overall decimal points==&lt;br /&gt;
&lt;br /&gt;
This setting is for display purposes only. Grade calculations are made with an accuracy of 5 decimal places and grade letters, if used, are assigned accordingly.&lt;br /&gt;
&lt;br /&gt;
If rounding of grades in [[Grade calculations|grade calculations]] is required, the round(number, count) function may be used.&lt;br /&gt;
&lt;br /&gt;
==Advanced grade item options==&lt;br /&gt;
&lt;br /&gt;
This contains a list of various fields that can be toggled on or off to appear on the default grade item screen or hidden. By selecting a field, it is put into the &amp;quot;Advanced&amp;quot; items menu and a field that is not selected will appear on the main grade item menu by default. Note that all of these options will always be available to teachers with a click of the button &amp;quot;Show Advanced&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Advanced grade item options.png|frame|center|Top left: Advanced grade item options with some selected. Top right: Default grade item menu screen with non-selected fields. Bottom Right: Advanced grade item menu with green asterisks denoting selected fields. Hidden until clicked &amp;quot;Show Advanced&amp;quot;.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To highlight more than one field, use ctrl+click and both will be highlighted. To highlight from one field to another, use shift+click the range between two will be highlighted. Shift+ctrl+right click will combine a range of selections to those already highlighted. To de-highlight a field just do the same steps but click on already highlighted fields.&lt;br /&gt;
&lt;br /&gt;
* Item info&lt;br /&gt;
* ID Number&lt;br /&gt;
* Grade Type&lt;br /&gt;
* Scale&lt;br /&gt;
* Minimum Grade&lt;br /&gt;
* Maximum Grade&lt;br /&gt;
* Grade to pass&lt;br /&gt;
* Offset&lt;br /&gt;
* Multiplicator&lt;br /&gt;
* Grade display type&lt;br /&gt;
* Overall decimal places&lt;br /&gt;
* Hidden&lt;br /&gt;
* Hidden until&lt;br /&gt;
* Locked&lt;br /&gt;
* Locked after&lt;br /&gt;
* Aggregation coefficient&lt;br /&gt;
* Parent category&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Grade items]] - for teachers&lt;br /&gt;
*[http://www.moodletutorials.org/view_video.php?viewkey=d7fbdea1afc51c7c6ad2 Video tutorial on Grade Item Setting and Grade Letters]&lt;br /&gt;
&lt;br /&gt;
[[de:Einstellungen_für_Bewertungsaspekte]]&lt;br /&gt;
[[fr:Réglages des éléments d&#039;évaluation]]&lt;br /&gt;
[[ja:評定項目設定]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Grade_category_settings&amp;diff=75541</id>
		<title>Grade category settings</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Grade_category_settings&amp;diff=75541"/>
		<updated>2010-09-07T17:17:00Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grades}}Location: &#039;&#039;Administration &amp;gt; Grades &amp;gt; Grade Category Settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Grade category settings enable administrators to choose which options appear for teachers when [[Grade categories|adding/editing a grade category]] in their course gradebook, and their default values. Settings are applied site-wide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Grade category settings.png|thumb|Grade category settings]]&lt;br /&gt;
==Forcing settings==&lt;br /&gt;
Force checkboxes are for forcing certain items to apply. This results in switches and drop-down elements being disabled in all course gradebooks. For example, if the Aggregation Type setting is forced as &amp;quot;Mean&amp;quot;, teachers will no longer have the option to change the aggregation type of each grade category separately, the option will not be there in the category edit form. &lt;br /&gt;
&lt;br /&gt;
Selecting &amp;quot;Do not force&amp;quot; after a forced setting has been applied will simply restore each category&#039;s setting to its previous state, prior to the application of the forced global setting. Administrators can thus experiment with these settings without fear of losing any specific category settings.&lt;br /&gt;
&lt;br /&gt;
==Advanced settings==&lt;br /&gt;
Advanced checkboxes are for selecting items which are only displayed when a teacher clicks the &amp;quot;Show advanced&amp;quot; button in the category edit form.&lt;br /&gt;
&lt;br /&gt;
==Available aggregation types==&lt;br /&gt;
[[Image:Available agg types.png|thumb|Available aggregation types setting]]&lt;br /&gt;
In Moodle 1.9.5 onwards, administrators may reduce the number of aggregation types available for teachers to use.&lt;br /&gt;
&lt;br /&gt;
By default, all existing aggregation types are available (Mean of grades, Weighted mean of grades, Simple weighted mean of grades, Mean of grades (with extra credits), Median of grades, Lowest grade, Highest grade, Mode of grades, Sum of grades). This list may be reduced to only a few types, with additional types being enabled as/when teachers request them.&lt;br /&gt;
&lt;br /&gt;
Note that reducing the number of aggregation types simply results in disabled aggregation types not appearing in the aggregation type dropdown menu. All existing grade category calculations remain the same, regardless of whether the aggregation type is later disabled by an administrator.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Grade categories]] - for teachers&lt;br /&gt;
*[http://www.youtube.com/watch?v=p6zWwJGb9TA Video demonstrating how to use gradebook site settings and defaults]&lt;br /&gt;
*[http://www.youtube.com/watch?v=sUslTuZPu6A Video showing the effects of the grade category settings]&lt;br /&gt;
&lt;br /&gt;
[[Category:Grades]]&lt;br /&gt;
&lt;br /&gt;
[[de:Einstellungen_für_Bewertungskategorien]]&lt;br /&gt;
[[fr:Réglages des catégories d&#039;évaluation]]&lt;br /&gt;
[[ja:評定カテゴリ設定]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Grade_letters&amp;diff=75477</id>
		<title>Grade letters</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Grade_letters&amp;diff=75477"/>
		<updated>2010-09-04T17:00:06Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grades}}[[Image:Grade letters.png|thumb|Default grade letters]]Grade letters, also called letter grades, are symbols used to represent a range of grades. For example &amp;quot;A&amp;quot; could be used to represent grades of 80% and above, &amp;quot;B&amp;quot; to represent grades between 70 and 80%, &amp;quot;C&amp;quot; to represent grades between 50 and 70%, and so on. Alternatively, you could have &amp;quot;Pass&amp;quot; for grades above 50% and &amp;quot;Fail&amp;quot; for grades below 50%.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Displaying letter grades==&lt;br /&gt;
To change particular [[Grade items|grade items]], category and course summaries (called aggregations) in the [[Grader report|grader report]] and [[User report|user reports]] to display letter grades:&lt;br /&gt;
&lt;br /&gt;
# Follow the grades link in the course administration block.&lt;br /&gt;
# Select &amp;quot;Categories and items&amp;quot; from the gradebook dropdown menu.&lt;br /&gt;
# Click the edit icon for Category total or Course total.&lt;br /&gt;
# From the Grade display type menu, select letter.&lt;br /&gt;
# Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page.&lt;br /&gt;
&lt;br /&gt;
Repeat this for any other totals that you want displayed as letters.&lt;br /&gt;
&lt;br /&gt;
Alternatively, to display ALL grades as letter grades:&lt;br /&gt;
&lt;br /&gt;
# Follow the grades link in the course administration block.&lt;br /&gt;
# Select &amp;quot;Course settings&amp;quot; from the gradebook dropdown menu.&lt;br /&gt;
# From the Grade display type menu, select letter.&lt;br /&gt;
# Click the &amp;quot;Save changes&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
==Editing course-level grade letters==&lt;br /&gt;
&lt;br /&gt;
[[Image:Editing grade letters.png|thumb|Editing grade letters]]&lt;br /&gt;
Grade letters are set initially at site level. To use different grade letters in a particular course:&lt;br /&gt;
&lt;br /&gt;
# Follow the grades link in the course administration block.&lt;br /&gt;
# Select Letters from the from the gradebook dropdown menu.&lt;br /&gt;
# Click the edit tab in the middle of the page.&lt;br /&gt;
# Check the override site defaults box.&lt;br /&gt;
# Change grade letters and/or boundaries as required. (You may wish to use words, for example Below Pass, Pass, Merit, Distinction, rather than letters.)&lt;br /&gt;
# Scroll to the bottom of the page and click the &amp;quot;Save changes&amp;quot; button.&lt;br /&gt;
[[Image:Pass fail grade letters.png|thumb|Pass/fail grade letters]]&lt;br /&gt;
&lt;br /&gt;
==Setting grade letter site-level defaults==&lt;br /&gt;
&lt;br /&gt;
To set grade letter site defaults:&lt;br /&gt;
# Login as an administrator.&lt;br /&gt;
# Access &#039;&#039;Site administration &amp;gt; Grades &amp;gt; Letters&#039;&#039;.&lt;br /&gt;
# Change grade letters and/or boundaries as required.&lt;br /&gt;
# Scroll to the bottom of the page and click the &amp;quot;Save changes&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
==Forcing grade letter site-level defaults==&lt;br /&gt;
&lt;br /&gt;
To force grade letter site-level defaults in all courses i.e. remove the ability for teachers to override site defaults and edit grade letters in their courses:&lt;br /&gt;
# Login as an administrator.&lt;br /&gt;
# Access &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;&lt;br /&gt;
# Edit the role of teacher and change the capability [[Capabilities/moodle/grade:manageletters|moodle/grade:manageletters]] from Allow to Not set.&lt;br /&gt;
# Scroll to the bottom of the page and click the &amp;quot;Save changes&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
==Accuracy of grade calculations==&lt;br /&gt;
&lt;br /&gt;
Grade calculations are made with an accuracy of 5 decimal places and grade letters assigned accordingly. The overall decimal points setting (in the system [[Grade item settings|grade item settings]] and for individual [[Grade items|grade items]]) is for display purposes only and is not used when assigning grade letters. &lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[http://www.youtube.com/watch?v=p6zWwJGb9TA Video demonstrating how to use gradebook site settings and defaults]&lt;br /&gt;
*[http://www.moodletutorials.org/Moodle-Tutorial-on-Grade-Item-Settings-and-Grade-Letters.html Tutorial on Grade Item Setting and Grade Letters]&lt;br /&gt;
&lt;br /&gt;
[[ca:grade/edit/letter/index]]&lt;br /&gt;
[[es:Calificaciones con Letras]]&lt;br /&gt;
[[eu:Kalifikazio-letrak]]&lt;br /&gt;
[[fr:Notes lettres]]&lt;br /&gt;
[[ja:評定文字]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Gradebook_course_settings&amp;diff=75212</id>
		<title>Gradebook course settings</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Gradebook_course_settings&amp;diff=75212"/>
		<updated>2010-08-28T22:22:56Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grades}}Course settings determine how the gradebook appears for all participants in the course.&lt;br /&gt;
&lt;br /&gt;
To change the course settings:&lt;br /&gt;
&lt;br /&gt;
#Choose &amp;quot;Course settings&amp;quot; from the gradebook dropdown menu.&lt;br /&gt;
#Change the settings as required.&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
Note: Individual teachers may override the aggregation position setting for their own grader report view via their [[Grade preferences|&amp;quot;My report preferences&amp;quot;]] tab.&lt;br /&gt;
&lt;br /&gt;
===Show rank===&lt;br /&gt;
&lt;br /&gt;
The show rank setting determines whether the position of a grade item in relation to the rest of the class is shown.&lt;br /&gt;
&lt;br /&gt;
===Show percentage===&lt;br /&gt;
&lt;br /&gt;
The show percentage setting (in Moodle 1.9.3 onwards) determines whether the percentage value of each grade item is shown.&lt;br /&gt;
&lt;br /&gt;
==Default course settings==&lt;br /&gt;
[[Image:Gradebook course settings.png|thumb|left|Gradebook course settings]]&lt;br /&gt;
The default course settings are set by an administrator in the following locations:&lt;br /&gt;
* Grade display type and overall decimal points - &#039;&#039;Administration &amp;gt; Grades &amp;gt; [[Grade item settings]]&#039;&#039;&lt;br /&gt;
* Default aggregation position - &#039;&#039;Administration &amp;gt; Grades &amp;gt; [[General grade settings|General settings]]&#039;&#039;&lt;br /&gt;
* Overview report setting - &#039;&#039;Administration &amp;gt; Grades &amp;gt; [[Gradebook report settings|Report settings]] &amp;gt; Overview report&#039;&#039;&lt;br /&gt;
* User report settings - &#039;&#039;Administration &amp;gt; Grades &amp;gt; [[Gradebook report settings|Report settings]] &amp;gt; User report&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Course]]&lt;br /&gt;
&lt;br /&gt;
[[ca:grade/edit/settings/index]]&lt;br /&gt;
[[cs:Nastavení hodnocení v kurzu]]&lt;br /&gt;
[[ja:評定表コース設定]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Grade_items&amp;diff=75183</id>
		<title>Grade items</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Grade_items&amp;diff=75183"/>
		<updated>2010-08-26T15:30:29Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grades}}&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
The three building blocks of the Gradebook in Moodle 1.9 are&lt;br /&gt;
&lt;br /&gt;
#The [[Grade_categories|grade category]]&lt;br /&gt;
#The grade item&lt;br /&gt;
#The [[Grades|grade]]&lt;br /&gt;
&lt;br /&gt;
A grade item is a unit of measurement by which participants in a course are graded (i.e. &#039;marked&#039;). As such, a grade item is a container for grades and a set of settings applied to these grades. The settings affect the calculation and display of the grades in the gradebook reports and [[Grade_export|exports]].&lt;br /&gt;
&lt;br /&gt;
Grade items are represented by columns in the [[Grader_report | grader report]].&lt;br /&gt;
&lt;br /&gt;
Grade items may refer to course activities (e.g. a quiz, an assignment etc.), [[Outcomes]] or even manual grades. Following is an overview of each type.&lt;br /&gt;
&lt;br /&gt;
Within a category, a [[Grades|grade]] summary is also a grade item itself.  Summary grade items for a category can show up in reports, and can be used in the calculation of the grade for the parent category.&lt;br /&gt;
&lt;br /&gt;
== Activity-based grade items ==&lt;br /&gt;
[[Image:Edit grade item.png|right|thumb|Editing a grade item]]&lt;br /&gt;
Modules that include a form of grading use the [[Development:Grades#API_for_communication_with_modules.2Fblocks|Gradebook API]] to generate a matching grade item, and to communicate their grades to the gradebook. The generated grade item can later be edited from within the gradebook interface (Course -&amp;gt; Grades -&amp;gt; Edit Categories and items -&amp;gt; Edit (hand icon) grade item), as seen in the screenshot to the right, but several of its settings will be &#039;frozen&#039;, only changeable from the activity module&#039;s interface. These are listed and explained below in the manual grade items section.&lt;br /&gt;
&lt;br /&gt;
Here is a list of the settings that can be edited for an activity-based grade item:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Item info&#039;&#039;&#039;: General information about the grade item. Optional.&lt;br /&gt;
*&#039;&#039;&#039;Grade to pass&#039;&#039;&#039;: Specify the minimum grade a student must achieve to be considered to have passed this item. This must be in real grades, not a percentage. Once this is done, grades will be highlighted in red for fail and green for pass in the gradebook. It doesn&#039;t work for scales, as it is yet to be fully implemented in Moodle 1.9. It is planned for use in [[Development:Course completion|course completion]] in Moodle 2.0.&lt;br /&gt;
*&#039;&#039;&#039;Grade display type&#039;&#039;&#039;: See the [[Grade_item_settings#Grade_display_type | Grade display type doc]]&lt;br /&gt;
*&#039;&#039;&#039;Overall decimal points&#039;&#039;&#039;: This specifies the number of decimal points to display for each grade. It has no effect on grade calculations, which are made with an accuracy of 5 decimal places. &lt;br /&gt;
*&#039;&#039;&#039;Multiplicator&#039;&#039;&#039;: Factor by which all grades for this grade item will be multiplied, with a maximum value of the maximum grade. For example, if the multiplicator is 2 and the maximum grade is 100, then all grades less than 50 are doubled, and all grades 50 and above are changed to 100. &lt;br /&gt;
*&#039;&#039;&#039;Offset&#039;&#039;&#039;: Number that will be added to every grade for this grade item, after the Multiplicator is applied. (Can be a negative number.)&lt;br /&gt;
*&#039;&#039;&#039;Hidden&#039;&#039;&#039;: Whether this grade item should be hidden from students.&lt;br /&gt;
*&#039;&#039;&#039;Hidden until&#039;&#039;&#039;: An optional date after which the grade item will no longer be hidden (i.e. a grades release date)&lt;br /&gt;
*&#039;&#039;&#039;Locked&#039;&#039;&#039;: Whether or not to lock this grade item. A locked grade item doesn&#039;t accept changes to its settings or grades from its related module.&lt;br /&gt;
*&#039;&#039;&#039;Locked after&#039;&#039;&#039;: A date after which the locking will be effective, usually after the grades release date.&lt;br /&gt;
&lt;br /&gt;
== Grade outcome items ==&lt;br /&gt;
[[Image:grade_outcome_item.png|right|thumb|Editing a grade outcome item]]&lt;br /&gt;
These can either be generated by the creation of a new activity module (by selecting [[Outcomes]] in the module creation form), or manually created like manual grade items. A grade outcome item uses a course outcome as its grading type, so such an outcome must be made available at the course level before a grade outcome item can be manually created.&lt;br /&gt;
&lt;br /&gt;
Grade outcome items can optionally be linked with an activity module. This is done automatically when a grade outcome item is generated by the creation of an activity module in which outcomes were selected. In this scenario, a grade category is also created and named after the activity module, and the grade item and grade outcome items are created as children of that category.&lt;br /&gt;
&lt;br /&gt;
The settings of the grade outcome item edit form are identical to those of manual grade items, with the addition of two settings:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Outcome&#039;&#039;&#039;: The course outcome represented by this item&lt;br /&gt;
*&#039;&#039;&#039;Linked activity&#039;&#039;&#039;: The optional activity module to which this item will be linked&lt;br /&gt;
&lt;br /&gt;
== Manual grade items ==&lt;br /&gt;
[[Image:manual_item.png|right|thumb|Editing a manual grade item]]&lt;br /&gt;
These grade items are created manually through the &amp;quot;Edit Categories and Items&amp;quot; page. The &amp;quot;Add grade item&amp;quot; button is clicked, and the form appears. Several options are available here which are normally automatically filled out by the activity module creating an activity-based grade item:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Item name&#039;&#039;&#039;: The display name of your grade item&lt;br /&gt;
*&#039;&#039;&#039;ID Number&#039;&#039;&#039;: An arbitrary string of characters used to refer to this grade item in Formulas. If set, it must be unique.&lt;br /&gt;
*&#039;&#039;&#039;Grade type&#039;&#039;&#039;: The type of grade: None (no grading possible), Value (a numerical value), Scale (an item in a list) or Text (arbitrary text). &lt;br /&gt;
*&#039;&#039;&#039;Scale&#039;&#039;&#039;: Which scale to use for grading: available only when the Scale grade type is selected. &lt;br /&gt;
*&#039;&#039;&#039;Maximum grade&#039;&#039;&#039;: The maximum grade that can be given (for scales: the number of items in the scale - 1)&lt;br /&gt;
*&#039;&#039;&#039;Minimum grade&#039;&#039;&#039;: The minimum grade that can be given (for scales: 0)&lt;br /&gt;
&lt;br /&gt;
Conversely, two of the settings found in the form for activity-based grade items are absent from this form:&lt;br /&gt;
*Multiplicator&lt;br /&gt;
*Offset&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Grade item settings]] - for administrators&lt;br /&gt;
&lt;br /&gt;
[[ca:grade/edit/tree/item]]&lt;br /&gt;
[[cs:Položky hodnocení]]&lt;br /&gt;
[[fr:Eléments d&#039;évaluation]]&lt;br /&gt;
[[ja:評定項目]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=User_report&amp;diff=74998</id>
		<title>User report</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=User_report&amp;diff=74998"/>
		<updated>2010-08-21T21:26:47Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grades}}The user report shows the currently logged in user&#039;s grades in the current course. It includes:&lt;br /&gt;
&lt;br /&gt;
#A breakdown of the grades for each assessment (grade item) in the course.&lt;br /&gt;
#The optional teacher-given feedback for each grade.&lt;br /&gt;
#The overall grade for the course (called course total). This total is the same as that shown on the [[Overview report|overview report]].&lt;br /&gt;
&lt;br /&gt;
The user report may also include:&lt;br /&gt;
&lt;br /&gt;
#The position of each grade item in relation to the rest of the class (rank). &lt;br /&gt;
#A percentage value relative to the minimum-maximum grade for each assessment.&lt;br /&gt;
&lt;br /&gt;
[[Image:User report.png|thumb|left|User report in Moodle 1.9.5]]&lt;br /&gt;
Teachers can choose whether to show or hide rank and percentages (in Moodle 1.9.3 onwards) in the [[Gradebook course settings]].&lt;br /&gt;
&lt;br /&gt;
Teachers and administrators may use the &amp;quot;Select all or one user&amp;quot; dropdown menu at the top right of the page to view individual user reports. When all users are selected, the report can be printed, and only one student should appear on each page (browser-dependent behaviour).&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.9.5 onwards, category nesting is shown with contrasting colours, which makes it a lot clearer, especially when lots of categories are in use. A range column has also been added.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[http://www.youtube.com/watch?v=5hrLNbifiGQ Video explaining the different gradebook reports]&lt;br /&gt;
&lt;br /&gt;
[[ca:grade/report/user/index]]&lt;br /&gt;
[[cs:Známky uživatele]]&lt;br /&gt;
[[eu:Erabiltzailearen_txostena]]&lt;br /&gt;
[[fr:Rapport de l&#039;utilisateur]]&lt;br /&gt;
[[ja:ユーザレポート]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Overview_report&amp;diff=74815</id>
		<title>Overview report</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Overview_report&amp;diff=74815"/>
		<updated>2010-08-16T15:45:18Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grades}}The overview report lists all the courses a student is enrolled in together with the total grade for each course.&lt;br /&gt;
&lt;br /&gt;
Students can access their overview report from within any course by following the grades link in the course administration block, then selecting &amp;quot;Overview report&amp;quot; from the &amp;quot;Choose an action&amp;quot; dropdown menu at the top left of the page.&lt;br /&gt;
&lt;br /&gt;
The overview report is not relevant for teachers or non-editing teachers. For new Moodle 1.9.5 installs the [[Capabilities/gradereport/overview:view|view overview report]] capability is not set for the default teacher and non-editing teacher roles. For administrators upgrading to Moodle 1.9.5, [[Simplifying the gradebook by changing permissions]] provides details of how to make this change for teachers and non-editing teachers.&lt;br /&gt;
&lt;br /&gt;
[[ca:grade/report/overview/index]]&lt;br /&gt;
[[cs:Výsledné známky ze všech kurzů]]&lt;br /&gt;
[[eu:Txosten_orokorra]]&lt;br /&gt;
[[fr:Rapport d&#039;ensemble]]&lt;br /&gt;
[[ja:概要レポート]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Grade_categories&amp;diff=74765</id>
		<title>Grade categories</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Grade_categories&amp;diff=74765"/>
		<updated>2010-08-13T16:38:06Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grades}}&lt;br /&gt;
[[Image:Edit grade category.png|thumb|Editing a grade category]]Grades can be organised into grade categories. &lt;br /&gt;
A grade category has its own aggregated grade which is calculated from its grade items. There is no limit to the level of nesting of categories (a category may belong to another category). However, each grade item may belong to only one category. Also, all grade items and categories belong to at least one, permanent category: [[Edit_categories_and_items#Top_category|the course category]].&lt;br /&gt;
&lt;br /&gt;
==Adding a grade category==&lt;br /&gt;
To add a grade category:&lt;br /&gt;
# Select &amp;quot;Categories and items&amp;quot; from the gradebook dropdown menu.&lt;br /&gt;
# Click the &amp;quot;Add category&amp;quot; button near the bottom of the page.&lt;br /&gt;
# Give the grade category a meaningful name.&lt;br /&gt;
# Select grade category settings as appropriate. Advanced settings may be made available by clicking the &amp;quot;Show advanced&amp;quot; button.&lt;br /&gt;
# Click the &amp;quot;Save changes&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
==Editing a grade category==&lt;br /&gt;
To edit a grade category:&lt;br /&gt;
# Select &amp;quot;Categories and items&amp;quot; from the gradebook dropdown menu.&lt;br /&gt;
# Click the edit icon opposite the grade category you wish to edit.&lt;br /&gt;
# After editing the grade category, click the &amp;quot;Save changes&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
==Settings==&lt;br /&gt;
If any of the following do not appear in your page, it may mean that they are set globally in your site. See [[Grade_category_settings#Forcing_settings|Forcing settings]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Aggregation ===&lt;br /&gt;
See [[Category aggregation]] for a detailed explanation.&lt;br /&gt;
&lt;br /&gt;
=== Aggregate only non-empty grades ===&lt;br /&gt;
Non-existent grades are either treated as minimal grades or not included in the aggregation. For example, an assignment graded between 0 and 100 for which only half the students have been graded will either count the non-graded submissions as 0 (option switched off) or will ignore them (option switched on).&lt;br /&gt;
&lt;br /&gt;
Important: An empty grade is simply a missing gradebook entry, and could mean different things. For example, it could be a participant who hasn&#039;t yet submitted an assignment, an assignment submission not yet graded by the teacher, or a grade that has been manually deleted by the gradebook administrator. Caution in interpreting these &amp;quot;empty grades&amp;quot; is thus advised.&lt;br /&gt;
&lt;br /&gt;
=== Aggregate including sub-categories ===&lt;br /&gt;
The aggregation is usually done only with immediate children, it is also possible to aggregate grades in all subcategories excluding other aggregated grades.&lt;br /&gt;
&lt;br /&gt;
=== Include outcomes in aggregation ===&lt;br /&gt;
Including outcomes in aggregation may not lead to the desired overall grade, so you have the option to include or leave them out.&lt;br /&gt;
&lt;br /&gt;
=== Drop the lowest ===&lt;br /&gt;
If set, this option will drop the X lowest grades, X being the selected value for this option.&lt;br /&gt;
&lt;br /&gt;
Note: You can only make use of either this option or the option below `Keep Highest`. If you have both set then only `Drop the lowest` will be usable under course categories&lt;br /&gt;
&lt;br /&gt;
=== Keep the highest ===&lt;br /&gt;
If set, this option will only retain the X highest grades, X being the selected value for this option.&lt;br /&gt;
&lt;br /&gt;
Note: If you have `Drop the lowest` set to anything other than null then this option will have no effect&lt;br /&gt;
&lt;br /&gt;
=== Parent Category - Item Weight ===&lt;br /&gt;
&lt;br /&gt;
If your course is set to use weighted mean of grades, you can assign a weight that the grade for this category will have inside the parent category.  Within all of the subcategories of the parent category, the weight values do not need to add up to 100.&lt;br /&gt;
&lt;br /&gt;
=== Aggregation view ===&lt;br /&gt;
Each category can be displayed in three ways: Full mode (aggregated column and grade item columns), the aggregated column only, or the grade items alone.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[Grade items]]&lt;br /&gt;
*[[Edit categories and items]]&lt;br /&gt;
*[[Grade category settings]] - for administrators&lt;br /&gt;
*[http://www.youtube.com/watch?v=sUslTuZPu6A Video showing the effects of the grade category settings]&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=91632 Grade categories and weights 1.8 to 1.9?] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[ca:grade/edit/tree/category]]&lt;br /&gt;
[[fr:Catégories d&#039;évaluation]]&lt;br /&gt;
[[cs:Kategorie známek]]&lt;br /&gt;
[[ru:Категории оценок]]&lt;br /&gt;
[[ja:評定カテゴリ]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Grade_import&amp;diff=74764</id>
		<title>Grade import</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Grade_import&amp;diff=74764"/>
		<updated>2010-08-13T16:28:52Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grades}}Grades may be imported as a CSV or XML file.&lt;br /&gt;
&lt;br /&gt;
The import file format is the same as the corresponding export format. &lt;br /&gt;
&lt;br /&gt;
Note: Grade import is equivalent to manual grading in the [[Grader report|grader report]]. Thus, if grades for a particular  Moodle activity such as an assignment are imported, they can no longer be edited via the assignment submission page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Importing grades==&lt;br /&gt;
[[Image:Csv grade import.png|thumb|CSV grade import]]&lt;br /&gt;
To import grades into the gradebook:&lt;br /&gt;
&lt;br /&gt;
# Decide on an import format - CSV or XML file (see below) - then [[Grade export|export some grades]] using the corresponding export format.&lt;br /&gt;
# Edit the export file as appropriate and save it.&lt;br /&gt;
# Tip:  If you opened your exported file in Excel, don&#039;t add columns there because Moodle will reject the import if there are new columns that didn&#039;t exist in the exported file. If you need to add columns, do that in Moodle BEFORE you export your gradebook.&lt;br /&gt;
# Select your chosen import format from the gradebook dropdown menu.&lt;br /&gt;
# Browse and upload your previously saved file.&lt;br /&gt;
# Set options as required.&lt;br /&gt;
# Click the &amp;quot;Upload grades&amp;quot; button.&lt;br /&gt;
# CSV import only: Preview the grade import and choose the column mapping then click the &amp;quot;Upload grades&amp;quot; button to complete the grade import.&lt;br /&gt;
## Tip: By default &amp;quot;Map from&amp;quot; is set to First Name, and &amp;quot;Map to&amp;quot; to userid. Change both dropdowns to: &amp;quot;Email Address&amp;quot; to &amp;quot;useremail&amp;quot;, or to &amp;quot;Id Number&amp;quot; to &amp;quot;useridnumber&amp;quot; (assuming that your users have ID number fields filled in in their profiles)&lt;br /&gt;
&lt;br /&gt;
You need two permissions to import grades: (1) general permission to import grades and (2) permission to import grades in a particular format. For example, to import CSV grades you need&lt;br /&gt;
&lt;br /&gt;
    moodle/grade:import (&amp;quot;Import grades&amp;quot;) = Allow&lt;br /&gt;
    gradeimport/csv:view (&amp;quot;Import grades from CSV&amp;quot;) = Allow&lt;br /&gt;
&lt;br /&gt;
==XML import==&lt;br /&gt;
&lt;br /&gt;
XML import requires the numerical grade, activity idnumber and user idnumber.&lt;br /&gt;
&lt;br /&gt;
===Remote file URL===&lt;br /&gt;
&lt;br /&gt;
The remote file URL field is for fetching data from a remote server, such as a student information system.&lt;br /&gt;
&lt;br /&gt;
==CSV import==&lt;br /&gt;
&lt;br /&gt;
CSV import is more flexible than XML import, as you may choose the column mapping.&lt;br /&gt;
&lt;br /&gt;
===Encoding===&lt;br /&gt;
&lt;br /&gt;
If you are unsure of the encoding of your CSV file, try selecting the second option in the encoding dropdown menu. If you&#039;ve used Excel to produce the CSV file the second option WINDOWS-xxx encoding is probably the correct one. The grade import preview will tell you if you guessed the encoding correctly.&lt;br /&gt;
&lt;br /&gt;
===Verbose scales===&lt;br /&gt;
&lt;br /&gt;
Scales can be either specified as a raw id - eg. 0, 1, 2, 3, etc. or as a string, eg. &amp;quot;good&amp;quot;, &amp;quot;bad&amp;quot;, &amp;quot;not very bad&amp;quot;. The later format is called &amp;quot;verbose&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
Using Moodle forum discussions:&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=85944 Gradebook confusion]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=92081 Can external software insert data into the gradebook?]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ca:grade/import/csv/index]]&lt;br /&gt;
[[ja:評定のインポート]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/22/en/index.php?title=Grade_export&amp;diff=74668</id>
		<title>Grade export</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/22/en/index.php?title=Grade_export&amp;diff=74668"/>
		<updated>2010-08-11T15:41:59Z</updated>

		<summary type="html">&lt;p&gt;Mits: ja link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grades}}Grades can be exported to Excel spreadsheet, OpenDocument spreadsheet, plain text file or XML file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Grade export is NOT intended for students.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==How to export grades==&lt;br /&gt;
[[Image:Grade export.png|thumb|left|Grade export]]To export grades from the gradebook:&lt;br /&gt;
# Choose an export format from the gradebook dropdown menu.&lt;br /&gt;
# Set options as required.&lt;br /&gt;
# If the course uses groups, select whether to export grades for all participants or for a particular group.&lt;br /&gt;
# Select the grade items to be included. Note that ID numbers are required for all activities for XML file export. An ID number field can be found in the common module settings for each activity.&lt;br /&gt;
# Click the submit button.&lt;br /&gt;
# After previewing the data on the following page, click the download button.&lt;br /&gt;
&lt;br /&gt;
==XML file export==&lt;br /&gt;
&lt;br /&gt;
To export grades to XML file, you need to ensure that:&lt;br /&gt;
* Users have ID numbers (an optional field in the user profile)&lt;br /&gt;
* Activities have ID numbers (an optional field in the common module settings)&lt;br /&gt;
&lt;br /&gt;
==Default grade export settings==&lt;br /&gt;
&lt;br /&gt;
The grade export display type and grade export decimal points site-wide defaults may be set by an administrator in &#039;&#039;Administration &amp;gt; Grades &amp;gt; [[General grade settings|Grade settings]]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Grade publishing==&lt;br /&gt;
[[Image:Grade publishing settings.png|thumb|left|Grade publishing settings]]&lt;br /&gt;
Grade publishing is a way of importing and exporting grades via a URL without being logged in to Moodle. Grade publishing is intended for administrators only, due to the security implications.&lt;br /&gt;
&lt;br /&gt;
Grade publishing is disabled by default. It can be enabled by an administrator by checking the gradepublishing box in &#039;&#039;Administration &amp;gt; Grades &amp;gt; [[General grade settings|Grade settings]]&#039;&#039;. Users with grade publishing capabilities (normally administrators only) are then provided with grade export publishing settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Tips and tricks==&lt;br /&gt;
*Export grades in a spreadsheet format.  Then copy and paste that information into another file that has  worksheet (&amp;quot;raw grades&amp;quot;). Create other worksheets which are custom reports which take their data from &amp;quot;raw grades&amp;quot;. This works if graded activities are &#039;&#039;&#039;not&#039;&#039;&#039; moved around to different positions in the course. This allows you to create a standard printed report(s). For example a compact landscape report of all students and all grades for each activity, a report of just quizes, another of lessons, another of assignments. A pivot table of students by scores, generated from a report worksheet, which gets its data from the raw data.&lt;br /&gt;
*Mailmerge exported grades into custom documents.  For example, a document that is given to a department to file as a proof of training, with scores for every subject quiz.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[http://www.youtube.com/watch?v=yZcbN_7p2zI Video showing how to export grades in Moodle 1.9]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ca:grade/export/xml/index]]&lt;br /&gt;
[[es:Exportar_calificaciones]]&lt;br /&gt;
[[fr:Exportation des notes]]&lt;br /&gt;
[[ja:評定のエクスポート]]&lt;/div&gt;</summary>
		<author><name>Mits</name></author>
	</entry>
</feed>