65 Commits

Author SHA1 Message Date
Damyon Wiese
74df2951d1 Revert "MDL-39876 Change get_record('course') calls to get_course"
This reverts commit ab7632b74c331540c90229bf03d13aa2e6bdd9be.
2013-08-21 13:42:30 +08:00
Dan Poltawski
a101c7f011 Merge branch 'MDL-41143-master' of git://github.com/FMCorz/moodle 2013-08-21 13:40:23 +08:00
Frederic Massart
30905b5bcb MDL-41143 course: Missing formslib required for constant use 2013-08-21 13:31:59 +08:00
Sam Hemelryk
6eee89bc8f Merge branch 'MDL-39876-master' of git://github.com/sammarshallou/moodle
Conflicts:
	course/lib.php
2013-08-21 12:08:46 +12:00
Rajesh Taneja
ed29bf0f66 MDL-40043 Events API: Added course_section_updated event to replace add_to_log 2013-08-20 14:07:35 +08:00
sam marshall
ab7632b74c MDL-39876 Change get_record('course') calls to get_course 2013-08-15 11:31:20 +01: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
Michael Aherne
b61670c7a7 MDL-35321 course sections Enable reset of grouping access 2012-09-19 13:13:32 +01: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
Frederic Massart
b8514b6a1b MDL-33767 Course: The actions on default section redirect to the correct section 2012-07-13 08:59:19 +08:00
Mark Nelson
e01fbcf765 MDL-29538 core_condition: Integrated with the latest code, can now place user field conditions on sections as well 2012-06-26 15:18:53 +08:00
sam marshall
ce4dfd2703 MDL-24419 (4): Add conditional availability support to sections; section cache
Credit: original version done by Kirill Astashov of NetSpot (netspot.com.au),
finished and tweaked by sam.

This change adds conditional availability support for sections analagous to
that already available for activities. (Backend, UI, backup/restore.)

In order that this feature does not reduce performance, section cacheing has
also been added using a new course 'sectioncache' field analagous to modinfo.

The new feature integrates with activity availability so that activities
inside sections which are not available are automatically not available
themselves (meaning it works to restrict access).
2012-05-14 11:19:25 +01:00
Dan Poltawski
a5a38c9473 MDL-32508 course/editsection: add a sectionreturn param
This is used so that when editing on a section page you
are returned to the section in question.
2012-05-04 10:53:00 +08:00
Dan Poltawski
5218b9bb7d MDL-32508 course: Introduce course_get_url() 2012-05-04 10:52:58 +08:00
Sam Hemelryk
0a5ece3d3b navigation MDL-24783 Navigation cache is now cleared after editing a section name 2010-10-21 01:56:03 +00:00
Dongsheng Cai
ef106e5b28 "MDL-24210, added missing context to html editor" 2010-10-06 03:48:32 +00:00
Petr Skoda
64f93798d4 MDL-22950 adding new component column to the files table, unfortunately this change requires changes in all 2.0dev code, please review all custom code that was already upgraded to 2.0; fixing multiple problems and regressions in mod/assignment 2010-07-03 13:37:13 +00:00
David Mudrak
b54a05475a MDL-21695 Replaced summaries.html
AMOS BEGIN
 HLP summaries.html,[summary_help,core]
AMOS END
2010-06-28 17:05:05 +00:00
David Mudrak
09eb215121 MDL-22729 Course sections can be re-edited again
By the way, the current style of creating course_sections is ugly. We
should probably have something like
make_sure_that_at_least_default_section_exists($courseid, $sectionid=null)
and not to insert it into database at many places as we do now.
2010-06-10 18:25:06 +00:00
Sam Hemelryk
7487c85699 course formats MDL-22647 Course format names are now properly supported and used. Big thanks to Brandon Turner for the patch. 2010-06-08 06:21:25 +00:00
Sam Hemelryk
e34a326f72 course-section MDL-22262 Added a summaryformat field to the database and implemented it when editing/viewing sections and backup 2010-05-27 03:07:54 +00:00
Sam Hemelryk
0f4ab67d84 course MDL-20628 Added the ability to name a course section, thanks Michael for the initial patch 2010-04-23 07:17:21 +00:00
David Mudrak
0831fd7841 MDL-22054 Fixed 'Edit' string in core strings
AMOS BEGIN
 CPY [edit,core],[edita,core]
 REM do not forget to drop placeholder from [edit,core] in all languages
AMOS END
2010-04-20 17:57:12 +00:00
Petr Skoda
a685593466 MDL-21233 moodle_url improvemewnts, code simplification, more diagnostics; fixed several regressions 2010-01-16 15:39:56 +00:00
Petr Skoda
4bcc51185c MDL-21217, MDL-21198 simplified/improved outputlib help icon related apis + several fixed regresions 2009-12-30 15:19:55 +00:00
samhemelryk
d9cb06dc0e course MDL-19794 Replaced deprecated functions, added set_url calls and boilerplates 2009-09-25 05:24:13 +00:00
samhemelryk
3856ca5605 course MDL-19794 Updated print_header_simple and build_navigation to OUTPUT and PAGE equivalents 2009-09-08 01:33:56 +00:00
nicolasconnault
d60c112435 MDL-19794 Converted all print_footer() calls 2009-08-06 14:10:33 +00:00
skodak
a19a06d09e MDL-14589 file api improvements - converting more params to general $options array 2009-05-18 19:04:06 +00:00
skodak
a08171c5c2 MDL-19002 file upload limits support 2009-04-28 19:08:33 +00:00
tjhunt
edc0c49332 file api: MDL-18754 improve the names of some functions.
The new names are documented on
http://docs.moodle.org/en/Development:Convert_Draftarea_Files
2009-04-01 04:34:58 +00:00
skodak
644d506ac1 MDL-16698 towards new general editor element + converted course section summaries 2009-02-17 16:18:05 +00:00
stronk7
dfd74b5a72 MDL-10583 course format - discovered the get_section_name() that performs the fallback harcoded in previous commit. Merged from 19_STABLE 2009-02-05 13:30:08 +00:00
stronk7
f5ca86967b MDL-10583 course format - allow course formats to specify their section name ; merged from 19_STABLE 2009-02-05 13:13:31 +00:00
scyrma
1101dac08d MDL-14679: small fix for problem following db migration 2008-07-29 02:35:17 +00:00
skodak
294ce9870f MDL-15189 magic quotes finally removed 2008-06-09 16:53:30 +00:00
scyrma
264ad12641 MDL-14741 - Make tinymce work with the front page description.
TODO: convert the front page description form so it uses formslib
2008-06-06 01:49:07 +00:00
skodak
579d45b434 MDL-14679 converted some get courses 2008-06-01 18:12:24 +00:00
dongsheng
ba6018a902 "MDL-14129, fix print_error call under course/, see tracker" 2008-05-07 06:02:51 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
nicolasconnault
0be6f67819 MDL-10870 All files updated to new build_navigation() method. Most are untested, because they are not easily accessible within a moodle site. 2007-08-17 19:09:11 +00:00
thepurpleblob
181eb9dd1f fix for bug MDL-7040. Form focus not defined 2006-10-17 12:41:55 +00:00
moodler
2fdcf5e360 FIx the header too by requiring login to the course 2006-10-01 09:31:49 +00:00
moodler
1a5a5b0e04 Fixed a typo causing MDL-6758 2006-10-01 09:26:50 +00:00
toyomoyo
3924b9884b adding capabilities 2006-09-05 08:50:23 +00:00
skodak
f8a5159a2b changes needed for new s() and p() - see bug #2338 2006-04-14 08:02:32 +00:00
skodak
2b38a593f0 fixed simple header bug #3406, patch submitted by samulik; merged from MOODLE_15_STABLE 2005-11-11 01:25:38 +00:00
thepurpleblob
59518de11e require_variable() and optional_variable() replaced with required_param() &
optinal_param() plus other tweeks to suit. Improve security.
2005-06-15 09:39:26 +00:00
ikawhero
116ae3b2e4 Merged from MOODLE_15_STABLE
Bug 3408.
2005-06-03 14:43:43 +00:00
stronk7
ef9b35a01b Tabs are out 2005-05-16 19:38:21 +00:00