Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: Variables.

Variables: Difference between revisions

From MoodleDocs
(create introduction)
(→‎See also: add developer links to variables)
Line 28: Line 28:


== See also ==
== See also ==
*[[Administration FAQ]]
*[[Administration FAQ]]
*[http://moodle.org/mod/forum/discuss.php?d=32306 How to make individual course policies (vs. site policies)] forum discussion
*[http://moodle.org/mod/forum/discuss.php?d=32306 How to make individual course policies (vs. site policies)] forum discussion
For developers:
* [[Development:Session variables]]
* [[Application variables]]
* [[Application/session variables]]


[[Category:Administrator]]
[[Category:Administrator]]
[[Category:Developer]]


[[fr:Paramètres techniques]]
[[fr:Paramètres techniques]]
[[es:Variables]]
[[es:Variables]]
[[ja:詳細設定]]
[[ja:詳細設定]]

Revision as of 22:03, 22 September 2007

A variable is a piece of data that can be changed and is used by Moodle when it is running. Each variable has a type, and a scope or context in which it is used. Most Moodle variables are now defined through the site or course administration blocks rather than through php files.

In older versions of Moodle the variable name without a description often appeared before a field. Sometimes these variable names are still shown as part of the description in the administrative block pages.

Interface

  • lang - If you wish to change any text on your site, it is recommended that a local language pack is created. Please refer to Language for details
  • timezone - This field is used to set the default timezone used by Moodle. It affects time-related messages on the system such as assignment deadlines. If you have set this and still have time problems, make sure the time is set correctly on the server. Users can also set their timezone, see Edit profile.
  • themelist, allowuserthemes, allowcoursethemes - Please refer to the Theme configuration for details

Operating System

User

Permissions

Miscellaneous

  • debug - Set debug to on in order to get more information about PHP errors. This is often helpful to an administrator when trying to get more information about an error or problem being experienced. Normally, debug is set to off. For more information about debugging in Moodle 1.7 onwards, see Debugging.

See also

For developers: