tjhunt
f8b80dbd95
moodle_page: MDL-12212 completely remove the old tag and admin page classes
2009-05-06 09:11:07 +00:00
tjhunt
5ed70539f9
moodle_page: MDL-12212 ->subpage field
2009-05-06 09:03:49 +00:00
tjhunt
5ec434a9c2
moodle_page: MDL-12212 ->cm and ->activityrecord fields
2009-05-06 09:03:33 +00:00
tjhunt
0d5890c45d
moodle_page: MDL-12212 deprecate more of the legacy page machinery, and avoid overwriting $PAGE ever
2009-05-06 09:03:03 +00:00
tjhunt
cfcfb9f3d0
moodle_page: MDL-12212 kill legacy page_allows_editing implementations
2009-05-06 09:02:48 +00:00
tjhunt
934524d70b
moodle_page: MDL-12212 new implementation of user_allowed_editing
2009-05-06 09:01:42 +00:00
tjhunt
60dfb02a02
moodle_page: MDL-12212 Unbreak home page when editing is on
2009-05-06 09:00:58 +00:00
tjhunt
830dd6e9cd
moodle_page: MDL-12212 reimplement user_is_editing, deprecate isediting
2009-05-06 08:59:29 +00:00
tjhunt
d7f688d46a
moodle_page: MDL-12212 eliminate page::edit_always
2009-05-06 08:56:44 +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
4873f5f709
moodle_page: MDL-12212 Eliminate legacy blocks_ methods
...
moving blocks will now be broken until the new bockslib is done
2009-05-06 08:53:14 +00:00
tjhunt
75781f879c
moodle_page: MDL-12212 ->url and cleanup init of $FULLME, etc.
2009-05-06 08:50:32 +00:00
tjhunt
82611d8d33
moodle_page: MDL-12212 ->docspath
2009-05-06 08:48:13 +00:00
tjhunt
d7ab887938
moodle_page: MDL-14306 (part of MDL-12212) class name on body with ->category
...
If ->allowcategorythemes is set, includes all parent categories too
2009-05-06 08:46:48 +00:00
tjhunt
948203a5e8
moodle_page: MDL-12212 ->category and ->categories
2009-05-06 08:46:05 +00:00
tjhunt
89fbdca300
moodle_page: MDL-14305 (and MDL-12212) class on body based on ->wwwroot
2009-05-06 08:44:58 +00:00
tjhunt
ad5d5997ed
moodle_page: MDL-12212 more ->pagepaths to kill
2009-05-06 08:43:51 +00:00
tjhunt
753debd2ab
moodle_page: MDL-12212 ->bodyclasses and initialise_standard_body_classes
2009-05-06 08:42:13 +00:00
tjhunt
e88462a055
moodle_page: MDL-12212 eliminate the two different interpretations of
...
pagetype
2009-05-06 08:41:02 +00:00
tjhunt
d529807a65
moodle_page: MDL-12212 kill $CFG->pagepath (use $PAGE->set_pagetype)
...
deprecate $PAGE->get_format_name (use $PAGE->pagetype)
deprecate page_id_and_class (use $PAGE->pagetype)
2009-05-06 08:38:55 +00:00
tjhunt
f73102864a
moodle_page: MDL-12212 eliminate two old methods that were never used
2009-05-06 08:36:18 +00:00
tjhunt
31940ba622
moodle_page: MDL-12212 remove code in legacy page types that stores a course record
2009-05-06 08:35:39 +00:00
tjhunt
f230ce19ea
moodle_page: MDL-12212 implement ->pagetype
2009-05-06 08:34:32 +00:00
tjhunt
2afe21eea3
moodle_page: MDL-12212 implement ->context
2009-05-06 08:30:25 +00:00
tjhunt
c13a5e71cc
moodle_page: MDL-12212 start of new moodle_page class
...
* has course and status fields
* $PAGE->status updated by print_header and footer
* $PAGE->set_course now replace course_setup function
* global $PAGE created in setup.php
* unit tests for functionality so far
* Moodle still seems to work after this commit!
2009-05-06 08:29:22 +00:00
tjhunt
de60de044c
moodle_page: MDL-12212 deprecate page_import_types and clean up file
2009-05-06 08:27:12 +00:00
tjhunt
56eeebdf81
pagelib: Fixing start-of-file comments in CVS to avoid merge problems when I switch to git.
2009-04-15 03:24:25 +00:00
skodak
775f811a66
MDL-16002 rewritten upgrade locking and better upgrade progress tracking; MDL-16070 Do not use $a[0] syntax in lang packs + various other upgrade improvements and fixes
2008-08-16 12:16:01 +00:00
skodak
b3829d0a55
MDL-14679 towards notes conversion and regression
2008-05-31 17:44:57 +00:00
skodak
4a991ae33e
MDL-14679 finished pagelib conversion
2008-05-30 20:02:55 +00:00
dongsheng
2f137aa130
"MDL-14129, fix print_error"
2008-05-20 02:53:46 +00:00
dongsheng
5a2a53316f
MDL-14129, remove all the other error() call
2008-04-04 02:54:20 +00:00
scyrma
1d6608d8db
Start on MDL-12730 .. fixes some E_STRICT messages for 2.0.
2008-01-25 08:39:14 +00:00
poltawski
71beacf6d1
MDL-11074 - incorrect test in page_generic_activity, thanks to Gordon Bateson
...
merged from MOODLE_19_STABLE
2008-01-11 15:44:11 +00:00
mchurch
ca29e37d24
MDL-12744 - Add ability to pass an extra button for use in print header for modules that use the course page to display themselves with blocks.
2007-12-28 16:13:09 +00:00
tjhunt
0d7c3b78cd
MDL-12448 - Fix page_generic_activity->init_full() to use get_coursemodule_from_instance(). Merged from MOODLE_19_STABLE.
2007-12-06 11:38:53 +00:00
nfreear
317d5ddcb3
Fix for reopened bug MDL-7878, "Link identification and skipping" - includes site and course index.php.
2007-10-22 09:21:11 +00:00
nfreear
5c3550191a
Partial fix for reopened bug MDL-7878, "Link identification and skipping" - affects all course formats + other files.
2007-10-22 06:43:00 +00:00
tjhunt
263c81b0ad
MDL-11794 - Blocks editing on button is not XHTML Strict when produced by page_generic_activity. Merged from MOODLE_19_STABLE.
2007-10-16 20:44:55 +00:00
tjhunt
38e179a4ed
MDL-11741 - Convert core modules to take advantage of recent improvements to build_navigation.
...
This check-in removes about 400 lines of code. I hope I have not screwed anything up. I would be grateful if people could review this change, and keep an eye on the navigation bar in modules.
Any navigation bar bugs you find in the near future, feel free to file them in the tracker and assign them to me. Thanks.
If not to many problems are found, I think I would like to backport this to 1.9 stable, but I am not sure that is a good idea. Opinions to the General Developer Forum please. I am about to start a thread there.
2007-10-12 15:55:49 +00:00
martinlanghoff
e1e1f49820
pagelib: Course page - preload child contexts and smarter user_allowed_editing()
...
With this patch we preload the child contexts for the course
and hold on to them. This means that in one DB query we have all the contexts
we are going to need.
The checks for user_allowed_editing() move from weblib:update_icon() to
user_allowed_editing(), where we cache the result, and in the process save
50% of the cap checks by testing separately blocks from modules (doh!).
Still, the cap checks here are very inefficient...
With the last 3 patches, a course page with default blocks and 9 modinstances
goes from 157 to 86 db queries when logged in as a non-editing user (guest,
student). As admin it drops from 88 to 81.
Conflicts:
lib/pagelib.php
2007-09-19 06:53:09 +00:00
skodak
b571c6b37b
MDL-10995 eliminated some get course record calls - reused $COURSE instead
2007-08-26 08:24:50 +00:00
skodak
e6260a456b
MDL-10635 improved performance of update_course_icon() and friends; fixed parameter of iseditting() - removed $userid which was not used and did not make much sense there anyway
2007-08-25 11:28:37 +00:00
mattc-catalyst
01e3838853
MDL-9473: Initialise navlinks array before use
...
Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-07-05 04:55:24 +00:00
mattc-catalyst
3b27b0fe21
MDL-9615: Correct incorrect use of term breadcrumbs
...
- $crumbs -> $navlinks
Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-07-05 04:40:48 +00:00
mattc-catalyst
70c6c0ad70
MDL-9474: Updated build_navigation() to use global $COURSE
...
- Removed $course parameter from build_navigation()
- Updated all calls to build_navigation()
Author: Matt Clarkson <mattc@catalyst.net.nz>
Committer: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-23 21:11:10 +00:00
mattc-catalyst
6db8acb6a5
Breadcrumbs: pagelib changes
...
- Modified page class to use build_navigation for creating breadcrumbs.
- Added print_header method to page_generic_activity to make derived
classes print the page headers the correct way.
Author: Matt Clarkson <mattc@catalyst.net.nz>
Committer: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 20:48:48 +00:00
toyomoyo
5c91baaa46
patching up module level manageactivies capability so that you only need it assigned at mod level to update an activity
2007-03-26 02:55:03 +00:00
defacer
fed8017908
Merged from MOODLE_16_STABLE:
...
Fix for MDL-4940: Social Activities block disappears when editing course settings.
2007-02-24 23:38:42 +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