Dan Poltawski
2d0d36f219
Merge branch 'wip-MDL-36048-master' of git://github.com/marinaglancy/moodle
2012-11-14 09:58:27 +08:00
Michael Aherne
5035ed6376
MDL-34762 course Hide system archetypes from mod chooser
2012-11-14 09:06:10 +08:00
Marina Glancy
fdd4b9a50a
MDL-36048 Allow course formats to add course headers and footers
...
- Added functions in class format_base
- Added global functions in course/lib.php
- Added calling of course header/footer functions to the base theme
- output renderer checks if theme calls the coures content header/footer functions, if not calls them explicitly and displays a development warning
2012-11-10 15:39:01 +08:00
Marina Glancy
3776335ce2
MDL-35260 Course formats may have settings, be enabled, disabled and uninstalled
2012-11-10 15:34:29 +08:00
Aparup Banerjee
6c4e886426
Merge branch 'WIP-MDL-35512' of git://github.com/nadavkav/moodle
2012-11-09 14:16:15 +08:00
Aparup Banerjee
4b1466d50c
Merge branch 'MDL-27824' of git://github.com/rwijaya/moodle
2012-11-08 13:26:39 +08:00
Rossiani Wijaya
d9b87135cb
MDL-27824 course categories: remove trailing whitespace
2012-11-08 12:29:42 +08:00
Rossiani Wijaya
929cdf06de
MDL-27824 course categories: change isset() to empty()
2012-11-08 12:25:58 +08:00
Rossiani Wijaya
08af002921
MDL-27824 course categories: Added @todo comments to remove the temporary fix
2012-11-08 12:25:57 +08:00
Rossiani Wijaya
98068e1d8c
MDL-27824 - course category: add check test for ->coursesperpage value.
2012-11-08 12:25:57 +08:00
Dan Poltawski
2ac705c41d
Merge branch 'MDL-36092-master' of git://git.luns.net.uk/moodle
2012-11-07 16:56:11 +08:00
Dan Poltawski
4b5a6b1327
Merge branch 'wip-MDL-36317-master' of git://github.com/marinaglancy/moodle
...
Conflicts:
course/format/lib.php
2012-11-07 16:41:53 +08:00
Dan Poltawski
53b6a75a99
Merge branch 'wip-MDL-35279-master' of git://github.com/marinaglancy/moodle
2012-11-07 14:44:26 +08:00
Frederic Massart
281d730ea6
MDL-36392 course: Adding a module to a section does not corrupt its sequence
2012-11-06 17:00:47 +08:00
Dan Poltawski
a353088f2c
Merge branch 'wip-MDL-36342-master' of git://github.com/barbararamiro/moodle
...
Conflicts:
theme/base/style/core.css
2012-11-06 14:48:22 +08:00
Barbara Ramiro
651f639ed0
MDL-36342 Usability: New icons for section in SVG and PNG formats
2012-11-05 23:43:02 +08:00
Dan Poltawski
918085d048
Revert "MDL-35260 Course formats may have settings, be enabled, disabled and uninstalled"
...
This reverts commit 45f93db912a17b778aca4b9ced16de79ff18abaa.
This reverts commit 3f798d4a3d11416c4c71df2038c1ec9422898e5e.
2012-11-05 15:20:22 +08:00
Dan Poltawski
1fc59b22de
Merge branch 'wip-MDL-35260-master' of git://github.com/marinaglancy/moodle
2012-11-05 15:04:25 +08:00
Dan Poltawski
1872a0f26e
MDL-35768 - fix trailing whitespace
2012-11-05 14:46:00 +08:00
Dan Poltawski
6b02cc4fc1
MDL-35768 - fix E_STRICT issue
2012-11-05 14:31:54 +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
8d8d4da44d
MDL-36017 renamed formatoptions to courseformatoptions in externallib
2012-11-05 11:40:03 +08:00
Marina Glancy
850acb3560
MDL-35768 MDL-36017 Avoid calling format_base::get_course() when not necessary
...
- If we want to check fields 'numsections' or 'hiddensections' call course_get_format()->get_format_options()
- We still use extended course object in course/edit.php, update_course(), create_course(), and inside course formats
2012-11-05 11:22:06 +08:00
Marina Glancy
92d38668ac
MDL-35768 MDL-36017 code style corrections
2012-11-02 13:53:48 +08:00
Marina Glancy
695705f5d4
MDL-36317 Execute course format callback when course or module is set on page
2012-11-02 11:02:22 +08:00
Marina Glancy
e010b8503e
MDL-35769 Give more flexibility for course formats to extend course navigation
...
global_navigation::load_course_sections() now has more parameters and ensures
that current section and activity is loaded. This will allow course formats
to display hierarchical sections in navigation and have one callback for
overwriting whole course navigation
2012-11-02 10:58:21 +08:00
Marina Glancy
0e984d9809
MDL-36017 Course now may have format-specific options, numsections and hiddensections are among them
2012-11-02 10:56:22 +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
7b7d2f4d12
MDL-36017 Added default fields to format_legacy::course_format_options()
...
Fields coursedisplay, numsections, hiddensections are now the default fields for formats being converted from Moodle 2.3 or earlier
2012-11-02 10:55:24 +08:00
Marina Glancy
aea2e3c30d
MDL-35768 Allow caching of section format options in course.sectioncache
2012-11-02 10:55:24 +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
Nadav Kavalerchik
29c368d4b7
MDL-35512 - Two left pointing arrows appear after clicking "left indent activity/resource" arrow, when in RTL mode
2012-11-01 20:07:51 +02:00
Andrew Robert Nicols
2757a205c8
MDL-36092 Course/AJAX Ensure that dropdown resource pickers are shown when JS is disabled
2012-11-01 07:50:41 +00:00
Dan Poltawski
0caa0c869b
Merge branch 'MDL-4655-master' of git://github.com/FMCorz/moodle
2012-10-30 11:58:34 +08:00
Sam Hemelryk
558aecf818
Merge branch 'wip-mdl-36131' of git://github.com/rajeshtaneja/moodle
2012-10-30 12:24:31 +13:00
Dan Poltawski
09f2367617
MDL-34354 - remove unused line
2012-10-29 14:54:14 +08:00
Dan Poltawski
02309e2d50
Merge branch 'MDL-34354-master' of git://git.luns.net.uk/moodle
2012-10-29 14:53:43 +08:00
Andrew Robert Nicols
afe3566cca
MDL-35836 Rewrite doctonewwindow handling to use delegation instead of individual events
2012-10-26 08:52:23 +08:00
Rajesh Taneja
57bda78540
MDL-36131 AJAX: Conditional activities will behave same as in non-ajax mode
2012-10-19 17:10:25 +08:00
Frederic Massart
3b7bfbb5b8
MDL-4655 course: Number of courses with summaries to display is configurable
2012-10-18 11:07:17 +08:00
Dan Poltawski
9b0a3e17ba
Merge branch 'wip-MDL-35769-master' of git://github.com/marinaglancy/moodle
2012-10-16 13:41:17 +08:00
Sam Hemelryk
8422094d91
Merge branch 'MDL-35198' of git://github.com/mouneyrac/moodle
2012-10-16 11:23:24 +08:00
Dan Poltawski
43c7341b82
Merge branch 'wip-MDL-32184-master' of http://github.com/phalacee/moodle
2012-10-16 10:48:23 +08:00
Dan Poltawski
0651778e95
Merge branch 'MDL-32294-master' of git://github.com/FMCorz/moodle
2012-10-16 10:41:24 +08:00
Marina Glancy
44aa854e93
MDL-35339 coding style corrections
2012-10-15 16:57:25 +08:00
Marina Glancy
2e4c0d05e1
MDL-35339 Fixing rebase with MDL-35634
2012-10-15 16:18:55 +08:00
Marina Glancy
a49e2ea7e6
MDL-35769 Course formats: Added function format_base::default_blocks() to replace format config.php
2012-10-15 14:14:33 +08:00
Marina Glancy
b46be6adf4
MDL-35339 Better cache reset for get_fast_modinfo(), allow exec get_fast_modinfo($courseid)
2012-10-15 14:08:15 +08:00
Marina Glancy
38b19bbca1
MDL-35339 call rebuild_course_cache() always (and only) after changing course modules or sections
2012-10-15 14:08:14 +08:00
Marina Glancy
384c3510a9
MDL-35339 Course functions unit tests
2012-10-15 14:08:14 +08:00