tjhunt
5d3e9d9fe3
moodle_page: MDL-12212 remove deprecated calls from course/view.php and page_course::print_header
2009-05-06 09:19:46 +00:00
tjhunt
93d4a373f9
blocklib: MDL-19010 always include blocklib in setup.php, stip includes elsewhere
2009-05-06 09:13:16 +00:00
tjhunt
66b10689e2
blocklib: MDL-19010 upgrade database tables ready for now blocks system
2009-05-06 09:12:03 +00:00
tjhunt
cfcfb9f3d0
moodle_page: MDL-12212 kill legacy page_allows_editing implementations
2009-05-06 09:02:48 +00:00
tjhunt
ad52c04f4c
moodle_page: MDL-12212 Kill legacy url_... and blocks_... methods
...
Start calling $PAGE->set_url in all the places it will be necessary
Start of a stub implementation of $PAGE->blocks to stop other things breaking
Remove some of the special case methods in admin_page
2009-05-06 08:55:53 +00:00
tjhunt
82701e2443
switch roles: MDL-18132 separate database table role_allow_switch instead of re-using role_allow_assign.
...
This is part 1 that does the back-end:
1. New table role_allow_switch.
2. Upgrade that copies all the allows from role_allow_assign, and then drops the old CFG->allowuserswitchrolestheycantassign.
3. Old function get_assignable_roles_for_switchrole renamed to get_switchable_roles and changed to use the new table. Fixes MDL-18604 in HEAD.
4. Switch callers to use the new function name.
5. Unit tests for this new function.
6. To make those unit tests work, new switch_global_user_id and revert_global_user_id methods in UnitTestCaseUsingDatabase for toggling $USER->id.
I still need to do the editing interface under Administration ► Users ► Permissions ► Define roles. That will be done as a second commit.
2009-03-23 08:15:21 +00:00
sam_marshall
00653161b5
MDL-17556: Improve performance of get_fast_modinfo when courses have many activities
2008-12-18 17:52:29 +00:00
sam_marshall
9a5a069450
MDL-17275: Completion system - needs reload if you use Back button to return to page after changing ticks
2008-11-18 14:45:13 +00:00
tjhunt
ac324e05ea
MDL-16675 change callers to require_js to take advantage of the fact that callers no longer have to add $CFG->wwwroot themselves.
2008-09-25 06:40:52 +00:00
tjhunt
7264519e3f
MDL-16583 - Clean up some fo the places we link to javascript files, to use require_js
2008-09-23 07:00:59 +00:00
sam_marshall
e3e661a20a
MDL-15498: Completion system: tweak so that AJAX version correctly updates alt, title of manual completion icons
2008-08-21 16:03:13 +00:00
sam_marshall
4e781c7b50
MDL-15498: Completion system
2008-07-28 12:31:29 +00:00
skodak
6bb0816313
MDL-14679 towards course conversion
2008-06-02 08:13:24 +00:00
dongsheng
dbf91d9d63
MDL-14129, fix print_error
2008-04-26 11:02:51 +00:00
skodak
46bd37bfa8
MDL-14556 reset coursepage state after switchrole merged from MOODLE_19_STABLE
2008-04-25 14:10:02 +00:00
dongsheng
5a2a53316f
MDL-14129, remove all the other error() call
2008-04-04 02:54:20 +00:00
skodak
a6af674a99
MDL-13613 added better detection for outdated course modinfo; merged from MOODLE_19_STABLE
2008-02-23 18:42:00 +00:00
skodak
65a00c975e
MDL-12945 minor modinfo improvement; merged from MOODLE_19_STABLE
2008-01-25 09:39:32 +00:00
skodak
6d77b23c55
MDL-12735 Make AJAX on by default, add option to disable AJAX course editing by default; merged from MOODLE_19_STABLE
2007-12-26 21:33:34 +00:00
martinlanghoff
d7d4b0e572
course/view: roleswitch checks moved to the course page
...
Implemented all the relevant checks for role_switch().
accesslib's role_switch() doesn't do any UI-related checks any more,
being a backend lib call. These belong here.
2007-09-19 07:06:44 +00:00
moodler
afc58a289b
Merged some fixes for MDL-9402 from stable (causing forum unread counts to break)
2007-04-17 09:29:55 +00:00
moodler
61c1b4b573
Merged changes to use new ajaxenabled for MDL-8417
2007-03-01 02:42:16 +00:00
toyomoyo
217a8ee950
made some changes so that if a user has any roles assigned in context_module or context_block with moodle/site:manageblocks or moodle/course:manageactivities, he will see the "turn editting on" button without needing to have a role assigned at context_course with moodle/course:manageactivies capability. Of course this user would not be able to edit any blocks or modules he/she is not supposed to edit. Ajax for these users with partial editing privilages are locked. Please report bugs asap as we are looking at backporting this change to 1.8. Cheers.
2007-02-16 07:57:19 +00:00
vyshane
f47e1c1751
Changed to work with new require_js().
...
Related to MDL-7682 and MDL-8374.
2007-02-02 06:35:59 +00:00
vyshane
a202dfa034
onLoad made lowercase. MDL-7861 related.
2007-01-10 05:49:31 +00:00
moodler
75c3849a9e
Merged drag class fixes from stable
2006-10-30 09:41:55 +00:00
skodak
7b9c99798c
Turn AJAX off for now at site level MDL-7254; merged from MOODLE_17_STABLE
2006-10-27 20:34:40 +00:00
vyshane
4e86c6d735
Merged from 1.7.
2006-10-26 07:46:22 +00:00
vyshane
f45cc76fb3
Merged from 1.7.
2006-10-24 08:13:13 +00:00
moodler
ac4c51bef5
Make it easier to get out of a switched role in case viewing is not allowed
2006-09-22 01:29:11 +00:00
moodler
3a52e764e4
New "Switch Role" functionality to replace the old "Student view".
...
It's not well-tested yet and probably doesn't quite work. I will keep debugging this tonight from home.
2006-09-21 09:16:41 +00:00
moodler
4d2401d524
Removed student view
2006-09-03 08:46:30 +00:00
skodak
f4f0bc84cb
Bug #5716 - Impossible to turn off highlighted current topic; merged from MOODLE_16_STABLE
2006-06-03 23:49:15 +00:00
skodak
d2b23346c9
block editing now uses PARAM_BOOL
2006-04-23 20:58:06 +00:00
skodak
0cdae0dcaa
general cleanup of xxx_parameter() functions + fixed several register globals problems
2006-04-11 21:41:21 +00:00
moodler
7ea8ea7faa
Added some missing optional_params (bug 5125) Thanks Scott Elliott for the fix
2006-04-09 02:06:26 +00:00
stronk7
533229c481
Now courses are viewable by idnumber. Credits to Paolo Oprandi.
...
(http://moodle.org/mod/forum/discuss.php?d=18442 )
Merged from MOODLE_15_STABLE
2005-11-16 23:21:36 +00:00
mjollnir_
1217708363
My moodle sticky block config now generic, can be used for any pagetype.
...
Currently implemented: course-view (and my moodle, of course)
2005-10-16 22:34:25 +00:00
thepurpleblob
15ffee79b5
Added 'studentview' button to course page.
2005-08-15 12:54:46 +00:00
dhawes
892c082545
converted some double quotes to single quote literals
2005-07-13 01:51:30 +00:00
thepurpleblob
37ef382cbe
Added an optional_param() for 'topic' as it was coming from 'register_globals'
...
land.
2005-07-06 09:51:18 +00:00
defacer
3615b2b259
Simplifying to death using the new blocks_setup()
2005-03-02 05:19:47 +00:00
fiedorow
542a04353b
hook for redirecting to externally hosted courses
2005-02-16 13:41:37 +00:00
defacer
a3f24f7cc5
Improvements in how incoming parameters are handled, how $editing is handled.
...
More consistency across course formats for editing stuff, using $PAGE.
Also a "bugfix": when turning editing off, cancel moving an activity if you
were in the middle of doing so.
2005-02-12 13:09:18 +00:00
moodler
816acb46d3
Support course idnumber as a way to call courses
...
http://moodle.org/mod/forum/discuss.php?d=18442
2005-02-09 13:20:24 +00:00
defacer
685416485b
This is now automatically done, no need to do it twice.
2005-02-08 00:12:11 +00:00
defacer
da71112bed
Refining the way that blocks work: now you don't have to know anything
...
about what editing the blocks adds to your URL. blocklib will take care
of that internally.
2005-02-01 06:24:28 +00:00
defacer
7542a4e574
Dropping the use of MOODLE_PAGE_COURSE <gasp>!
...
The new constant is PAGE_COURSE_VIEW, and it's more streamlined with the
new CSS-related ids for 1.5. There are great possibilities for the future
here, so we 're getting ready.
On the other hand, this has to be the ugliest hack I 've ever inflicted
on any program (look at pagelib.php). Thankfully it will only stay for just
a little while.
2005-01-31 02:18:15 +00:00
defacer
2335781f1c
Fixing incorrect use of optional_param.
2005-01-28 00:02:33 +00:00
urs_hunkler
ee4dc51eec
changed the name of the special course div to "course-contend"
2005-01-25 15:54:00 +00:00