Difference between revisions of "Variables"

Jump to: navigation, search

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

(See also: add developer links to variables)
m (Reverted edits by Liubin (Talk) to last version by Abel Camacho)
 
(11 intermediate revisions by 6 users not shown)
Line 1: Line 1:
A variable is a piece of data that can be changed and is used by Moodle when it is runningEach 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.  
+
This page is for administrators of Moodle 1.6 sites (see [[Talk:Variables]]).   
 +
:'''NOTE: In later versions of Moodle, variables may be in different locations in the interface. For instance, the "maxbytes" variable is in the site administration block under Security -> Site Policies -> Maximum uploaded file size.'''
  
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 ==
 
== Interface ==
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]]
 
  
 +
[[es:Variables]]
 +
[[eu:Aldagaiak]]
 
[[fr:Paramètres techniques]]
 
[[fr:Paramètres techniques]]
[[es:Variables]]
 
 
[[ja:詳細設定]]
 
[[ja:詳細設定]]
 +
[[pt:Variáveis]]

Latest revision as of 17:34, 20 March 2011

This page is for administrators of Moodle 1.6 sites (see Talk:Variables).

NOTE: In later versions of Moodle, variables may be in different locations in the interface. For instance, the "maxbytes" variable is in the site administration block under Security -> Site Policies -> Maximum uploaded file size.


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