Commit Graph

116 Commits

Author SHA1 Message Date
Sam Hemelryk b7a4701d1f MDL-41417 course: fixed idnumbertaken string 2013-09-09 12:15:59 +12:00
Mark Nelson eb57e9e60b MDL-41417 course: allow the use of duplicated idnumbers if they existed before fix 2013-09-06 15:24:43 +08:00
Francis Devine 5f8e23c1a9 MDL-41417 course: prevent duplicate idnumbers being used when updating a course 2013-09-06 15:24:19 +08:00
Dan Poltawski 8228d7a653 MDL-38731 course: split course group settings header
Allow translators to translate the heading differently.

AMOS BEGIN
  CPY [groups,group],[groupsettingsheader,group]
AMOS END

Conflicts:
	course/edit_form.php
2013-05-31 12:14:19 +08:00
Aaron Barnes e014ed78dd MDL-36511 course: Save "completion starts on enrolment" disabled state 2013-01-09 15:33:13 +13:00
Marina Glancy 3776335ce2 MDL-35260 Course formats may have settings, be enabled, disabled and uninstalled 2012-11-10 15:34:29 +08:00
Dan Poltawski 918085d048 Revert "MDL-35260 Course formats may have settings, be enabled, disabled and uninstalled"
This reverts commit 45f93db912.
This reverts commit 3f798d4a3d.
2012-11-05 15:20:22 +08:00
Marina Glancy 45f93db912 MDL-35260 Course formats may have settings, be enabled, disabled and uninstalled 2012-11-05 11:46:34 +08:00
Marina Glancy b5cf83f080 MDL-36017 Fields numsections, hiddensections and coursedisplay are now format-specific options
- Fields added to format_legacy as default course format options;
- Upgrade script copies fields values from table course to course_format_options;
- Fields removed from table course;
- Fields removed from edit course form;
- Since front-page course has a 'numsections' setting, format_site defines it as it's option;
- Removed accessing those fields in core code unless we know that format supports them and in this
  case instead of $course = $DB->get_record('course'); we use:
  $course = course_get_format($courseorid)->get_course(); This way all format-specific options
  are added to the $course object
2012-11-02 10:56:19 +08:00
Marina Glancy fc79ede5a1 MDL-35768 Added format-specific options to edit course and section forms
- Course format may define additional fields (format options) to store for course and each section
- Edit course form allows to edit format-specific options and refreshes their list on format change
- Course format may provide it's own form for editing a section
- Default form for editing section allows to edit all format-specific fields
- Class section_info refactored, it defines magic methods such as __get() to access basic section
  information and format-specific options (retrieved only on the first request)
- format_base::update_course_format_options() allows to watch pre-update state of the course,
  format_legacy automatically copies the options with the same names between formats
2012-11-02 10:55:23 +08:00
Eloy Lafuente (stronk7) 3b3fc5cc76 MDL-35517 course: Handle non-existing $course->maxbytes on course creation. 2012-09-20 10:20:04 +02:00
Rajesh Taneja 732c25ade9 MDl-30667 Course: Maxbytes list will show current value, if it's lower then maxbytes 2012-09-03 14:43:33 +08:00
Rex Lorenzo 79e250dbdc MDL-34866 - Make "course display" default a site configurable option 2012-08-13 16:24:12 -07:00
Ankit Agarwal 9a5e297b4c MDL-34470 course: Replace all instances of get_context_instance() with context_xxx::instance() in course/ 2012-07-24 16:19:01 +08:00
Rajesh Taneja 071e68f93e MDL-32945 libraries: Replaced deprecated PARAM_MULTILANG with PARAM_TEXT 2012-07-19 15:44:40 +08:00
Dan Poltawski e1980f8bb9 Merge branch 'w28_MDL-8249_m24_roletranslations' of git://github.com/skodak/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2012-07-10 09:43:23 +08:00
Petr Skoda c52551dc3c MDL-8249 localise standard role names and descriptions if empty 2012-07-06 08:22:34 +02:00
Petr Škoda 2b42c88170 MDL-34155 use course visibility default when creator does not have moodle/course:visibility 2012-07-06 07:58:07 +02:00
Dan Poltawski 1156d38d94 MDL-32504 course: Add coursedisplay setting to course table
This will replace the course_display database table
2012-05-04 10:49:52 +08:00
Tim Hunt 9665ecd275 MDL-19125 module restrictions: use a capability
1. This used to use a complex legacy system which was buggy.

2. It now relies on a new mod/...:addinstance capability for each module.

3. All the legacy code has been stripped out.

4. Old restriction data is upgraded by creating the necessary permission
overrides. Similarly, when old backups are restored, the old settings
are converted to be overrides.

5. The required addinstance capabilities will be added as a separate
commit.

6. There is a developer debug warning about modules that are missing the
addinstance capability, unless they are MOD_ARCHETYPE_SYSTEM mods.
2012-03-15 17:11:27 +00:00
sam marshall 5813c7f7dc MDL-30408 Allow modules the choice to not appear on 'Add a...' lists
This is useful for modules which are created by the system and are not supposed to be created by users. There are various reasons for doing this in third-party modules.
2012-01-12 17:29:54 +00:00
Sam Hemelryk d609d96261 MDL-28599 textlib Separated collator to collatorlib with static methods, and added support for locale aware sorting of objects 2011-09-06 15:39:00 +12:00
Tim Hunt c141b05f7d MDL-25357 Allow maximum number of sections to be set by the admin. Also allow 0 sections at an choice.
Also fix one bad <br/> in another lang string.
2011-07-04 15:35:03 +01:00
David Mudrak 29cbe43189 MDL-13481 Strings fullname and shortname are now deprecated
This is a final cleanup commit of fullname and shortname issue. All
places where these strings were detected yet have been replaced with
proper fullnamecourse or fullnameuser or some other context specific
string.

AMOS BEGIN
 CPY [fullname,core],[outcomefullname,core_grades]
 CPY [shortname,core],[outcomeshortname,core_grades]
 CPY [name,core],[rolefullname,core_role]
 CPY [shortname,core],[roleshortname,core_role]
AMOS END
2011-02-28 09:42:50 +01:00
Petr Skoda 516c5eca68 MDL-24698 hopefully fixed all completion_info problems 2010-11-17 06:23:56 +00:00
Petr Skoda 532a91d431 MDL-24329 reverting previous patch, it should be imo better to not should discouraged legacycoursefiles option when it is disabled site-wide 2010-09-22 08:18:18 +00:00
Dongsheng Cai c00280a19e MDL-23308, added legacyfiles setting to course default settings. 2010-09-10 03:58:54 +00:00
Petr Skoda deb73728e7 MDL-23308 added a feature to allow legacy course files in new courses too 2010-09-03 12:00:59 +00:00
aparup 7feebf6f6d Administration MDL-23144
Course create/update/cancel now navigates back to where u came from (namely /course/index.php & /course/category.php).
 (except when creating by default in Misc whereby you're sent to Misc where the course was created)
2010-07-16 07:10:49 +00:00
Petr Skoda db1218a970 MDL-23255 fixed inverted isset preventing visibility change in course edit form (creadit goes to Jay Knight) + fixed visibility of new course in hidden category when not allowed to change visibility; improved comments 2010-07-14 14:23:32 +00:00
Petr Skoda df997f841f MDL-21782 reworked enrolment framework, the core infrastructure is in place, the basic plugins are all implemented; see the tracker issue for list of unfinished bits, expect more changes and improvements during the next week
AMOS START
    MOV [sendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage,enrol_self]
    MOV [configsendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage_desc,enrol_self]
    MOV [enrolstartdate,core],[enrolstartdate,enrol_self]
    MOV [enrolenddate,core],[enrolenddate,enrol_self]
    CPY [welcometocourse,core],[welcometocourse,enrol_self]
    CPY [welcometocoursetext,core],[welcometocoursetext,enrol_self]
    MOV [notenrollable,core],[notenrollable,core_enrol]
    MOV [enrolenddaterror,core],[enrolenddaterror,enrol_self]
    MOV [enrolmentkeyhint,core],[passwordinvalidhint,enrol_self]
    MOV [coursemanager,core_admin],[coursecontact,core_admin]
    MOV [configcoursemanager,core_admin],[coursecontact_desc,core_admin]
    MOV [enrolledincourserole,core],[enrolledincourserole,enrol_manual]
    MOV [enrolme,core],[enrolme,core_enrol]
    MOV [unenrol,core],[unenrol,core_enrol]
    MOV [unenrolme,core],[unenrolme,core_enrol]
    MOV [enrolmentnew,core],[enrolmentnew,core_enrol]
    MOV [enrolmentnewuser,core],[enrolmentnewuser,core_enrol]
    MOV [enrolments,core],[enrolments,core_enrol]
    MOV [enrolperiod,core],[enrolperiod,core_enrol]
    MOV [unenrolroleusers,core],[unenrolroleusers,core_enrol]
AMOS END
2010-06-21 15:30:49 +00:00
Petr Skoda bf34822b9d MDL-22547 course->legacyfiles switch implemented 2010-05-22 13:10:05 +00:00
Martin Dougiamas bfebaf64d8 MDL-22388 Added some checks to kill these scripts dead with an unequivocal notice unless included properly from a Moodle script. 2010-05-13 02:02:05 +00:00
David Mudrak 976033c6f2 MDL-22367 Bye bye Course Fullname 101, you cost us too many queries 2010-05-06 17:53:34 +00:00
David Mudrak 83fc9994bb MDL-21695 Fixing some regressions at the course settings page
AMOS BEGIN
 HLP expirynotify.html,[notify_help,core]
AMOS END
2010-05-04 10:07:47 +00:00
David Mudrak 5e67868ef0 MDL-21695 Course settings page help strings
Many of them are missing at the moment, Helen shall fix that soon

AMOS BEGIN
 HLP courseavailability.html,[availability_help,core]
 HLP coursecategory.html,[category_help,core]
 HLP courseenrollable2.html,[enrollable_help,core]
 HLP courseenrolmentplugins.html,[enrolmentplugins_help,core]
 HLP courseformats.html,[format_help,core]
 HLP coursegrades.html,[showgrades_help,core]
 HLP coursehiddensections.html,[hiddensections_help,core]
 HLP courseidnumber.html,[idnumbercourse_help,core]
 HLP coursenewsitems.html,[newsitemsnumber_help,core]
 HLP coursereports.html,[showreports_help,core]
 HLP courseshortname.html,[shortnamecourse_help,core]
 HLP coursestartdate.html,[startdate_help,core]
 HLP courseuploadsize.html,[maximumupload_help,core]
 HLP expirynotify.html,[expirynotify_help,core]
 HLP expirynotifystudents.html,[expirynotifystudents_help,core]
 HLP expirythreshold.html,[expirythreshold_help,core]
 HLP groupmodeforce.html,[groupmodeforce_help,core]
 HLP groupmode.html,[groupmode_help,core]
 HLP metacourse.html,[managemeta_help,core]
 HLP rolerenaming.html,[rolerenaming_help,core]
AMOS END
2010-05-03 17:07:51 +00:00
Martin Dougiamas 2be4d090c0 course completion MDL-2631 Course completion feature - Thanks to Aaron Barnes and Catalyst IT for this significant contribution. It is now officially possible to finish a course!
Even though I've tweaked this and done some polishing, there is still plenty to do on it now in HEAD, mostly to do with UI, usability and strings, so we'll keep working on it.  Aaron already has a number of improvements to add to it.
2010-04-30 03:06:22 +00:00
Petr Skoda 97b7d149b6 MDL-22015 deprecated get_list_of_currencies() method - improved string_manager encapsulation 2010-04-14 14:04:21 +00:00
Petr Skoda 1f96e907ea MDL-22084 making a clear distinction between list of our translations and list of all languages defined in ISO 639-2 2010-04-14 09:45:49 +00:00
Petr Skoda 503d243a3c MDL-21695 first sample help migration - course full name
AMOS BEGIN
 HLP coursefullname.html,[fullnamecourse_hlp,core]
AMOS END
2010-04-13 21:55:02 +00:00
Petr Skoda ff67afbd95 MDL-22054 converting course formats to have own lang packs
AMOS START
 MOV [formatscorm,core],[pluginname,format_scorm]
 MOV [formatsocial,core],[pluginname,format_social]
 MOV [formattopics,core],[pluginname,format_topics]
 MOV [formatweeks,core],[pluginname,format_weeks]
AMOS END
2010-04-11 12:46:14 +00:00
Petr Skoda 98da60215e MDL-22033 groupings now enabled unconditionally, groupmembersonly kept as experimental - this simplifies groups code logic a bit, user interface changes should not be significant because the groupings are not visible much until at least one created; hopefully the new description of groupmembersonly will have to preventsome gradebook complaints 2010-04-07 07:37:12 +00:00
Petr Skoda 4f0c2d0009 MDL-21655 big scary enrolment and roles improvements - see tacker for list of changes, includes other minor fixes too 2010-03-31 07:41:31 +00:00
Sam Hemelryk 33c074206d course-edit MDL-20204 Fixed recent regression get_list_of_themes returns array of themes now not strings 2010-01-28 07:00:16 +00:00
Petr Skoda aa6c1ced0a MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-04 08:11:02 +00:00
Sam Hemelryk 8bdc9cacad files MDL-20601 Conversion of many of the uses of print_textarea, and the mforms htmleditor to the new editor
Please forgive me if I have missed converting any output statements. If you do find an output statement that is not formatting correctly please refere to the table I added to this bug in regards to how it should be formatted.
2009-11-04 06:14:06 +00:00
nicolasconnault 50569ba3ac MDL-15262 Added a two capabilities to prevent certain users from changing a course's fullname and shortname. merged from MOODLE_19_STABLE 2009-10-02 07:05:02 +00:00
skodak d18e0fe646 MDL-20353 adding missing data types of hidden form fields 2009-09-26 17:07:08 +00:00
skodak 17da2e6f28 MDL-16438 centralise information about plugins to avoid duplication, includes local customisation conversion to standard plugin structure + fixes for some recent regressions; see tracker for more details and links to docs and forums discussions 2009-06-19 14:25:56 +00:00
tjhunt 1d693c8fd0 course settings: MDL-18595: Fix regression caused by switching the course settings form to use the new date selector.
The bad commit was http://cvs.moodle.org/moodle/course/edit_form.php?r1=1.65&r2=1.66

Sorry everyone who was inconvenienced by this.
2009-03-19 03:14:11 +00:00