| Field | Value |
|---|---|
| category | Forward?Slash-Delimited Category “Path” String (new categories are created as necessary) OR Integer Database Category ID |
| cost | String(10) |
| format | String('social','topics','weeks', …) |
| fullname* | String(254) |
| groupmode | 0=NOGROUPS,1=SEPARATEGROUPS,2=VISIBLEGROUPS |
| groupmodeforce | 0=FALSE,1=TRUE |
| guest | 0=NO,1=YES |
| self | 0=NO, 1=YES |
| idnumber | String(100) |
| lang | String(10) as lowercase 2 letters lang code |
| maxbytes | Integer(Site Max) |
| newsitems | Integer(10) |
| shortname* | String(15) |
| showgrades | 0=FALSE,1=TRUE |
| showreports | 0=FALSE,1=TRUE |
| sortorder | Integer |
| startdate | Timestamp |
| summary | Text |
| teacher1,2,…?_account | Search String that returns only one User Account (as used in Administration » Edit user accounts OR Integer Database User ID |
| teacher1,2,…?_role | String(40) |
| template | String |
| theme | String(50) |
| timecreated | String Date Literal |
| timemodified | String Date Literal |
| topic0 main heading?, topic1 … topic52 topic/week headings? | Text |
| visible | 0=FALSE,1=TRUE |
| visibleold | 0=FALSE, 1=TRUE |
| legacyfiles | 0=FALSE, 1=TRUE |
In general:
template corresponding to a complete course archive, this archive contains all the values needed to build the course. The only field you will probably need to care about in addition is the category field, in order to place the generated course in a suitable location.template, then some attributes will be useful to properly define the state of the course to create, otherwise the “default” values (Site administration > courses >) apply.The course can be created from a template. This template designates either:
shortname of a course of the platform with a saved archive WITHOUT user DATA.