[moodle] / moodle / blocks / moodleblock.class.php Repository:

Log of /moodle/blocks/moodleblock.class.php

Parent Directory Parent Directory


Links to HEAD: (view) (download) (annotate)
Sticky Tag:

Revision 1.138 - (view) (download) (annotate) - [select for diffs]
Sun Nov 1 20:00:48 2009 WST (3 weeks, 1 day ago) by skodak
Branch: MAIN
CVS Tags: HEAD
Changes since 1.137: +34 -34 lines
Diff to previous 1.137
MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup

Revision 1.137 - (view) (download) (annotate) - [select for diffs]
Fri Aug 28 16:47:37 2009 WST (2 months, 3 weeks ago) by samhemelryk
Branch: MAIN
Changes since 1.136: +71 -2 lines
Diff to previous 1.136
navigation MDL-14632 Very significant navigation commit
This patch introduces two new blocks global_navigation_tree and settings_navigation_tree
both of which have been designed to make full use of the new navigation objects available through
the $PAGE object.
Bulk of this code is within lib/navigationlib.php

Revision 1.136 - (view) (download) (annotate) - [select for diffs]
Tue Aug 18 12:29:31 2009 WST (3 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.135: +3 -3 lines
Diff to previous 1.135
MDL-19791 Upgraded calls to helpbutton, print_simple_box* and notify

Revision 1.92.2.12 - (view) (download) (annotate) - [select for diffs]
Thu Aug 13 16:14:31 2009 WST (3 months, 1 week ago) by skodak
Branch: MOODLE_19_STABLE
CVS Tags: MOODLE_196, MOODLE_19_MERGED, MOODLE_19_WEEKLY
Changes since 1.92.2.11: +3 -3 lines
Diff to previous 1.92.2.11 , to branch point 1.92 , to next main 1.138
MDL-19955 fixed bogus & that was preventing function call in PHP5.3 when adding blocks, already fixed in HEAD

Revision 1.135 - (view) (download) (annotate) - [select for diffs]
Fri Jul 31 12:17:09 2009 WST (3 months, 3 weeks ago) by moodler
Branch: MAIN
Changes since 1.134: +9 -9 lines
Diff to previous 1.134
blocks MDL-19010 Slight reordering of logic to allow titles to be changed by block get_contents  (credit to tim)

Revision 1.134 - (view) (download) (annotate) - [select for diffs]
Thu Jul 30 16:22:13 2009 WST (3 months, 3 weeks ago) by tjhunt
Branch: MAIN
Changes since 1.133: +1 -1 lines
Diff to previous 1.133
blocks: MDL-19893 move blocks on page UI - part 1

This does all the UI. It does not yet update the DB when you click to complete the action.

Revision 1.133 - (view) (download) (annotate) - [select for diffs]
Thu Jul 30 11:44:10 2009 WST (3 months, 3 weeks ago) by tjhunt
Branch: MAIN
Changes since 1.132: +3 -3 lines
Diff to previous 1.132
blocks: MDL-19399 proper permissions checks for editing blocks.

In particular for editing sticky blocks. If the admin addes one at site level,
then the teacher should not be able to change its configuration from
the course page, but should be able to set the position on this page.

Revision 1.132 - (view) (download) (annotate) - [select for diffs]
Fri Jul 24 10:44:47 2009 WST (4 months ago) by dongsheng
Branch: MAIN
Changes since 1.131: +23 -0 lines
Diff to previous 1.131
"MDL-19118, comments api"

Revision 1.131 - (view) (download) (annotate) - [select for diffs]
Fri Jul 17 16:26:13 2009 WST (4 months, 1 week ago) by tjhunt
Branch: MAIN
Changes since 1.130: +20 -22 lines
Diff to previous 1.130
Clean up some more todos.

Revision 1.130 - (view) (download) (annotate) - [select for diffs]
Wed Jul 15 16:59:51 2009 WST (4 months, 1 week ago) by tjhunt
Branch: MAIN
Changes since 1.129: +16 -1 lines
Diff to previous 1.129
Fix boilerplate.

Revision 1.129 - (view) (download) (annotate) - [select for diffs]
Wed Jul 15 16:55:52 2009 WST (4 months, 1 week ago) by tjhunt
Branch: MAIN
Changes since 1.128: +2 -2 lines
Diff to previous 1.128
blocks editing ui: MDL-19398 Remove stupid pass by reference.
Was causing errors when this method was called via block_method_result

Revision 1.128 - (view) (download) (annotate) - [select for diffs]
Wed Jul 15 16:52:33 2009 WST (4 months, 1 week ago) by tjhunt
Branch: MAIN
Changes since 1.127: +5 -20 lines
Diff to previous 1.127
blocks editing ui: MDL-19398 Make block config_global.html files more strongly deprecated.

Revision 1.127 - (view) (download) (annotate) - [select for diffs]
Wed Jul 15 15:45:48 2009 WST (4 months, 1 week ago) by tjhunt
Branch: MAIN
Changes since 1.126: +3 -1 lines
Diff to previous 1.126
blocks editing ui: MDL-19398 Make invisible blocks at least partly invisible.

Revision 1.126 - (view) (download) (annotate) - [select for diffs]
Wed Jul 15 15:41:26 2009 WST (4 months, 1 week ago) by tjhunt
Branch: MAIN
Changes since 1.125: +9 -5 lines
Diff to previous 1.125
blocks editing ui: MDL-19398 showing and hiding blocks now works.

Revision 1.125 - (view) (download) (annotate) - [select for diffs]
Tue Jul 14 18:57:06 2009 WST (4 months, 1 week ago) by tjhunt
Branch: MAIN
Changes since 1.124: +2 -58 lines
Diff to previous 1.124
blocks editing ui: MDL-19398 move generating the block edit icons to blocklib.php
Since that is where the resulting actions are processed.

Revision 1.124 - (view) (download) (annotate) - [select for diffs]
Tue Jul 14 17:35:33 2009 WST (4 months, 1 week ago) by tjhunt
Branch: MAIN
Changes since 1.123: +2 -2 lines
Diff to previous 1.123
fix typo

Revision 1.123 - (view) (download) (annotate) - [select for diffs]
Tue Jul 14 16:37:28 2009 WST (4 months, 1 week ago) by tjhunt
Branch: MAIN
Changes since 1.122: +3 -4 lines
Diff to previous 1.122
blocks editing ui: MDL-19398 add block now secure. Delete block works insecurely.
Will add security checks in a moment.

Revision 1.122 - (view) (download) (annotate) - [select for diffs]
Tue Jul 14 15:06:06 2009 WST (4 months, 1 week ago) by tjhunt
Branch: MAIN
Changes since 1.121: +5 -5 lines
Diff to previous 1.121
blocks: MDL-19010 show empty blocks if they have controls.

Revision 1.121 - (view) (download) (annotate) - [select for diffs]
Mon Jul 13 16:37:34 2009 WST (4 months, 1 week ago) by tjhunt
Branch: MAIN
Changes since 1.120: +17 -42 lines
Diff to previous 1.120
block contexts: MDL-19098 every block should have a context
even non-course and sticky blocks.

The parent context is block_instances.parentcontextid.

The block context should be used for checking permissions directly
related to the block, like moodle/block:view or moodle/site:manageblocks.

However, if the block is displaying information about the current page,
for example the participants block showing who 'here', then it may be
better to use the context of the page where the bloack is appearing -
in other words $this->page->context - to check permissions about the
user's ability to see participants here.

Or, if the block is displaying something stronly related to courses,
for example, a course meny block, the block should probably use the
context for $this->page->course to check permissions.

Revision 1.120 - (view) (download) (annotate) - [select for diffs]
Thu Jul 9 15:35:08 2009 WST (4 months, 2 weeks ago) by tjhunt
Branch: MAIN
Changes since 1.119: +171 -177 lines
Diff to previous 1.119
themes & blocks - MDL-19077 & MDL-19010 blocks are now printed by the theme

The code to print blocks in now in theme layout.php files. (Or in
moodle_core_renderer::handle_legacy_theme)

Code for printing blocks everywhere else has been stripped out.
(Total diffstat 1225 insertions, 2019 deletions)

The way the HTML for a block instance is generated has been cleaned
up a lot. Now, the block_instance generates a block_contents
object which gives a structured representation of the block,
and then $OUTPUT->block builds all the HTML from that.

How theme config.php files specify the layout template and block
regions by page general type has been changed to be even more flexible.

Further refinement for how the theme and block code gets initialised.

Ability for scrits to add 'pretend blocks' to the page. That is,
things that look like blocks, but are not normal block_instances.
(Like the add a new block UI.)

Things that are still broken:
 * some pages in lesson, quiz and resource. I'm working on it.
 * lots of developer debug notices pointing out things that
   need to be updated.

Revision 1.119 - (view) (download) (annotate) - [select for diffs]
Fri Jul 3 12:23:07 2009 WST (4 months, 3 weeks ago) by tjhunt
Branch: MAIN
Changes since 1.118: +10 -10 lines
Diff to previous 1.118
MDL-19690 - more $CFG->pixpath to $OUTPUT->old_icon_url

Revision 1.118 - (view) (download) (annotate) - [select for diffs]
Thu Jul 2 18:53:31 2009 WST (4 months, 3 weeks ago) by tjhunt
Branch: MAIN
Changes since 1.117: +9 -9 lines
Diff to previous 1.117
MDL-19690 - lots more $CFG->pixpath to $OUTPUT->old_icon_url

Revision 1.92.2.11 - (view) (download) (annotate) - [select for diffs]
Tue Jun 2 16:17:04 2009 WST (5 months, 3 weeks ago) by dongsheng
Branch: MOODLE_19_STABLE
Changes since 1.92.2.10: +3 -3 lines
Diff to previous 1.92.2.10 , to branch point 1.92
"MDL-14111, revert, remove format_string from _title_html"

Revision 1.92.2.10 - (view) (download) (annotate) - [select for diffs]
Tue Jun 2 13:55:49 2009 WST (5 months, 3 weeks ago) by dongsheng
Branch: MOODLE_19_STABLE
Changes since 1.92.2.9: +3 -3 lines
Diff to previous 1.92.2.9 , to branch point 1.92
"MDL-14111, format block title by format_text"

Revision 1.117 - (view) (download) (annotate) - [select for diffs]
Fri May 8 15:47:50 2009 WST (6 months, 2 weeks ago) by tjhunt
Branch: MAIN
Changes since 1.116: +4 -3 lines
Diff to previous 1.116
blocklib: MDL-19010 fix editing block config and block roles.

Revision 1.116 - (view) (download) (annotate) - [select for diffs]
Fri May 8 14:34:40 2009 WST (6 months, 2 weeks ago) by tjhunt
Branch: MAIN
Changes since 1.115: +2 -2 lines
Diff to previous 1.115
blocklib: MDL-19010 and now you can delete blocks too!

Revision 1.115 - (view) (download) (annotate) - [select for diffs]
Thu May 7 16:55:10 2009 WST (6 months, 2 weeks ago) by tjhunt
Branch: MAIN
Changes since 1.114: +15 -31 lines
Diff to previous 1.114
blocks: MDL-19010 Fix further blocks-related breakage, including removing all references to blocks_insance_old outside blocklib.php

Revision 1.114 - (view) (download) (annotate) - [select for diffs]
Wed May 6 17:28:27 2009 WST (6 months, 2 weeks ago) by tjhunt
Branch: MAIN
Changes since 1.113: +3 -3 lines
Diff to previous 1.113
blocklib: MDL-19010 remove no-longer-necessary global variable use from blocks

Revision 1.113 - (view) (download) (annotate) - [select for diffs]
Wed May 6 17:15:34 2009 WST (6 months, 2 weeks ago) by tjhunt
Branch: MAIN
Changes since 1.112: +24 -34 lines
Diff to previous 1.112
blocklib: MDL-19010 Fix blocks that were relying on ->instance in an unfortunate way

Revision 1.112 - (view) (download) (annotate) - [select for diffs]
Wed May 6 17:12:06 2009 WST (6 months, 2 weeks ago) by tjhunt
Branch: MAIN
Changes since 1.111: +12 -8 lines
Diff to previous 1.111
blocklib: MDL-19010 upgrade database tables ready for now blocks system

Revision 1.111 - (view) (download) (annotate) - [select for diffs]
Wed May 6 17:11:07 2009 WST (6 months, 2 weeks ago) by tjhunt
Branch: MAIN
Changes since 1.110: +5 -3 lines
Diff to previous 1.110
moodle_page: MDL-12212 completely remove the old tag and admin page classes

Revision 1.110 - (view) (download) (annotate) - [select for diffs]
Wed May 6 17:02:49 2009 WST (6 months, 2 weeks ago) by tjhunt
Branch: MAIN
Changes since 1.109: +4 -3 lines
Diff to previous 1.109
moodle_page: MDL-12212 kill legacy page_allows_editing implementations

Revision 1.109 - (view) (download) (annotate) - [select for diffs]
Wed May 6 16:55:54 2009 WST (6 months, 2 weeks ago) by tjhunt
Branch: MAIN
Changes since 1.108: +3 -3 lines
Diff to previous 1.108
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

Revision 1.108 - (view) (download) (annotate) - [select for diffs]
Mon Apr 13 14:56:32 2009 WST (7 months, 1 week ago) by tjhunt
Branch: MAIN
Changes since 1.107: +3 -3 lines
Diff to previous 1.107
filters: MDL-7336 change weblib to use the new code

* Rename filter base class from filter_base to moodle_text_filter
* Remove unnecessary explicit constructors in moodle_text_filter
subclasses
* New filter_manager class, rather than static methods in filter_base
* Move some logic out of weblib, and into filter_manager
* Count filtering ops when $CFG->perfdebug on, via
performance_measuring_filter_manager
* Kill unused filter_string function. Petr said it should have been
private to weblib

Revision 1.107 - (view) (download) (annotate) - [select for diffs]
Sun Feb 1 05:07:34 2009 WST (9 months, 3 weeks ago) by skodak
Branch: MAIN
Changes since 1.106: +2 -9 lines
Diff to previous 1.106
MDL-17458 upgrade logging implemented + a lot more refactoring + exceptions implemented in install/upgrade code + lang pack cleanup + some more improvements

Revision 1.106 - (view) (download) (annotate) - [select for diffs]
Fri Jan 2 19:46:42 2009 WST (10 months, 3 weeks ago) by skodak
Branch: MAIN
Changes since 1.105: +3 -3 lines
Diff to previous 1.105
MDL-16613 sesskey cleanup

Revision 1.92.2.9 - (view) (download) (annotate) - [select for diffs]
Wed Aug 6 13:08:36 2008 WST (15 months, 2 weeks ago) by skodak
Branch: MOODLE_19_STABLE
CVS Tags: MOODLE_193, MOODLE_194, MOODLE_195
Changes since 1.92.2.8: +3 -3 lines
Diff to previous 1.92.2.8 , to branch point 1.92
MDL-15941 block view permissions override regression fixed, merged from HEAD

Revision 1.105 - (view) (download) (annotate) - [select for diffs]
Wed Aug 6 13:07:46 2008 WST (15 months, 2 weeks ago) by skodak
Branch: MAIN
Changes since 1.104: +3 -3 lines
Diff to previous 1.104
MDL-15941 block view permissions override regression fixed

Revision 1.104 - (view) (download) (annotate) - [select for diffs]
Fri Jul 25 05:59:14 2008 WST (16 months ago) by skodak
Branch: MAIN
Changes since 1.103: +5 -2 lines
Diff to previous 1.103
MDL-11421 context levels fixed in capability definitions, sorting of caps by name, plug-ins may report used core caps, fixed some risks; merged from MOODLE_19_STABLE

Revision 1.92.2.8 - (view) (download) (annotate) - [select for diffs]
Fri Jul 25 05:58:07 2008 WST (16 months ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.92.2.7: +5 -2 lines
Diff to previous 1.92.2.7 , to branch point 1.92
MDL-11421 context levels fixed in capability definitions, sorting of caps by name, plug-ins may report used core caps, fixed some risks

Revision 1.103 - (view) (download) (annotate) - [select for diffs]
Tue Jun 3 05:39:24 2008 WST (17 months, 3 weeks ago) by skodak
Branch: MAIN
Changes since 1.102: +9 -5 lines
Diff to previous 1.102
MDL-14679 converted some get/set_field()

Revision 1.102 - (view) (download) (annotate) - [select for diffs]
Tue Jun 3 04:15:52 2008 WST (17 months, 3 weeks ago) by skodak
Branch: MAIN
Changes since 1.101: +3 -3 lines
Diff to previous 1.101
MDL-14679 towards blocks conversion

Revision 1.101 - (view) (download) (annotate) - [select for diffs]
Thu May 15 17:50:39 2008 WST (18 months, 1 week ago) by sam_marshall
Branch: MAIN
Changes since 1.100: +7 -3 lines
Diff to previous 1.100
MDL-14815: Added CSS class to blocks when they have editing controls (for themeability)

Revision 1.100 - (view) (download) (annotate) - [select for diffs]
Wed Apr 2 15:21:10 2008 WST (19 months, 3 weeks ago) by dongsheng
Branch: MAIN
Changes since 1.99: +1 -1 lines
Diff to previous 1.99
MDL-14111, fix html tag error

Revision 1.92.2.7 - (view) (download) (annotate) - [select for diffs]
Tue Apr 1 13:30:18 2008 WST (19 months, 3 weeks ago) by dongsheng
Branch: MOODLE_19_STABLE
CVS Tags: MOODLE_191, MOODLE_192
Changes since 1.92.2.6: +3 -3 lines
Diff to previous 1.92.2.6 , to branch point 1.92
MDL-14111, change it back.

Revision 1.99 - (view) (download) (annotate) - [select for diffs]
Tue Apr 1 09:39:44 2008 WST (19 months, 3 weeks ago) by dongsheng
Branch: MAIN
Changes since 1.98: +3 -3 lines
Diff to previous 1.98
MDL-14111, multilang html-block title, merged from MOODLE_19_STABLE, thanks Gordon Bateson

Revision 1.92.2.6 - (view) (download) (annotate) - [select for diffs]
Tue Apr 1 09:34:35 2008 WST (19 months, 3 weeks ago) by dongsheng
Branch: MOODLE_19_STABLE
Changes since 1.92.2.5: +3 -3 lines
Diff to previous 1.92.2.5 , to branch point 1.92
MDL-14111, Multilang html-block title, thanks Gordon Bateson

Revision 1.98 - (view) (download) (annotate) - [select for diffs]
Mon Mar 24 00:54:42 2008 WST (20 months ago) by skodak
Branch: MAIN
Changes since 1.97: +51 -17 lines
Diff to previous 1.97
MDL-8270 full block backup/restore - based on patches by Mark Nielsen and code in HEAD by Tim Hunt; merged from MOODLE_19_STABLE

Revision 1.92.2.5 - (view) (download) (annotate) - [select for diffs]
Mon Mar 24 00:50:09 2008 WST (20 months ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.92.2.4: +92 -15 lines
Diff to previous 1.92.2.4 , to branch point 1.92
MDL-8270 full block backup/restore - based on patches by Mark Nielsen and code in HEAD by Tim Hunt

Revision 1.79.2.9 - (view) (download) (annotate) - [select for diffs]
Fri Dec 21 20:32:13 2007 WST (23 months ago) by nfreear
Branch: MOODLE_18_STABLE
CVS Tags: MOODLE_1810, MOODLE_184, MOODLE_185, MOODLE_186, MOODLE_187, MOODLE_188, MOODLE_189, MOODLE_18_MERGED, MOODLE_18_WEEKLY
Changes since 1.79.2.8: +4 -4 lines
Diff to previous 1.79.2.8 , to branch point 1.79 , to next main 1.138
Merged MDL-7493 further fix: strip_tags from title strings because the titles may have HTML in them.
  -From Martin D/moodler in moodleblock.class.php - thanks.

Revision 1.97 - (view) (download) (annotate) - [select for diffs]
Fri Dec 21 01:25:49 2007 WST (23 months ago) by skodak
Branch: MAIN
Changes since 1.96: +23 -8 lines
Diff to previous 1.96
MDL-11814 use system context for pinned blocks; merged from MOODLE_19_STABLE

Revision 1.92.2.4 - (view) (download) (annotate) - [select for diffs]
Fri Dec 21 01:25:18 2007 WST (23 months ago) by skodak
Branch: MOODLE_19_STABLE
CVS Tags: MOODLE_19
Changes since 1.92.2.3: +23 -8 lines
Diff to previous 1.92.2.3 , to branch point 1.92
MDL-11814 use system context for pinned blocks

Revision 1.96 - (view) (download) (annotate) - [select for diffs]
Thu Dec 20 10:51:33 2007 WST (23 months ago) by moodler
Branch: MAIN
Changes since 1.95: +4 -4 lines
Diff to previous 1.95
Merged MDL-7493 further fix: strip_tags from title strings because the titles may have HTML in them.

Revision 1.92.2.3 - (view) (download) (annotate) - [select for diffs]
Thu Dec 20 10:50:38 2007 WST (23 months ago) by moodler
Branch: MOODLE_19_STABLE
Changes since 1.92.2.2: +4 -4 lines
Diff to previous 1.92.2.2 , to branch point 1.92
MDL-7493 further fix: strip_tags from title strings because the titles may have HTML in them.

Revision 1.79.2.8 - (view) (download) (annotate) - [select for diffs]
Wed Dec 19 02:43:01 2007 WST (23 months ago) by nfreear
Branch: MOODLE_18_STABLE
Changes since 1.79.2.7: +13 -13 lines
Diff to previous 1.79.2.7 , to branch point 1.79
Fixes reopened MDL-7493... - foreground show/hide block icon/ALT text switched with Javscript. Merged.

Revision 1.92.2.2 - (view) (download) (annotate) - [select for diffs]
Wed Dec 19 02:26:00 2007 WST (23 months ago) by nfreear
Branch: MOODLE_19_STABLE
Changes since 1.92.2.1: +12 -12 lines
Diff to previous 1.92.2.1 , to branch point 1.92
Fixes reopened MDL-7493... - foreground show/hide block icon/ALT text switched with Javscript. Merged.

Revision 1.95 - (view) (download) (annotate) - [select for diffs]
Wed Dec 19 02:19:58 2007 WST (23 months ago) by nfreear
Branch: MAIN
Changes since 1.94: +12 -12 lines
Diff to previous 1.94
Fixes reopened MDL-7493 "Make sure standard themes are visible under "Windows High Contrast Black" mode" - foreground show/hide block icon/ALT text switched with Javscript.

Revision 1.94 - (view) (download) (annotate) - [select for diffs]
Thu Nov 15 14:00:44 2007 WST (2 years ago) by toyomoyo
Branch: MAIN
Changes since 1.93: +45 -2 lines
Diff to previous 1.93
MDL-8270, full block backup/restore routine with code

Revision 1.93 - (view) (download) (annotate) - [select for diffs]
Thu Nov 15 02:03:32 2007 WST (2 years ago) by tjhunt
Branch: MAIN
Changes since 1.92: +24 -2 lines
Diff to previous 1.92
MDL-12066 - Links in the HTML block are not recoded on backup and restore.

This is messy because the links are hidden in the configdata column, which is serialized and base64encoded. So we have to untangle that, then ask the block whether there are any bits of $config that need to be fixed, then re-encode it before backup up. And reverse that on restore. It needs to remain base64 encoded in the backup file, so that the file format is backwards compatible.

I disucssed this with Eloy before doing it.

Merged from MOODLE_19_STABLE.

Revision 1.92.2.1 - (view) (download) (annotate) - [select for diffs]
Thu Nov 15 02:03:18 2007 WST (2 years ago) by tjhunt
Branch: MOODLE_19_STABLE
Changes since 1.92: +24 -2 lines
Diff to previous 1.92
MDL-12066 - Links in the HTML block are not recoded on backup and restore.

This is messy because the links are hidden in the configdata column, which is serialized and base64encoded. So we have to untangle that, then ask the block whether there are any bits of $config that need to be fixed, then re-encode it before backup up. And reverse that on restore. It needs to remain base64 encoded in the backup file, so that the file format is backwards compatible.

I disucssed this with Eloy before doing it.

Revision 1.79.2.7 - (view) (download) (annotate) - [select for diffs]
Thu Sep 6 15:30:52 2007 WST (2 years, 2 months ago) by moodler
Branch: MOODLE_18_STABLE
CVS Tags: MOODLE_183
Changes since 1.79.2.6: +13 -4 lines
Diff to previous 1.79.2.6 , to branch point 1.79
Merged fixes for RTL support in 1.8 from Sharar Dolev and the Hebrew translation team

see  MDL-10768

Revision 1.79.2.6 - (view) (download) (annotate) - [select for diffs]
Fri Aug 24 10:23:43 2007 WST (2 years, 3 months ago) by moodler
Branch: MOODLE_18_STABLE
Changes since 1.79.2.5: +6 -5 lines
Diff to previous 1.79.2.5 , to branch point 1.79
Hide roles button on sticky blocks   MDL-9723  Merged from head

Revision 1.92 - (view) (download) (annotate) - [select for diffs]
Fri Aug 24 10:17:28 2007 WST (2 years, 3 months ago) by moodler
Branch: MAIN
CVS Tags: MOODLE_19_BETA
Branch point for: MOODLE_19_STABLE
Changes since 1.91: +7 -6 lines
Diff to previous 1.91
Hide role assign button from pinned blocks (always)    MDL-9723

Revision 1.91 - (view) (download) (annotate) - [select for diffs]
Wed Aug 22 18:35:28 2007 WST (2 years, 3 months ago) by poltawski
Branch: MAIN
Changes since 1.90: +9 -2 lines
Diff to previous 1.90
MDL-10573 - moodle/block:view wasn't working with switch roles or block_list class

Revision 1.90 - (view) (download) (annotate) - [select for diffs]
Fri Aug 17 21:07:23 2007 WST (2 years, 3 months ago) by tjhunt
Branch: MAIN
Changes since 1.89: +12 -8 lines
Diff to previous 1.89
MDL-10894 - Make block add/remove and edit permissions more consistent

Revision 1.89 - (view) (download) (annotate) - [select for diffs]
Mon Aug 13 18:08:15 2007 WST (2 years, 3 months ago) by poltawski
Branch: MAIN
Changes since 1.88: +10 -2 lines
Diff to previous 1.88
MDL-10573 - Added a capability for viewing blocks, this allows role-based control of block
display.

Changed context capability check so that CONTEXT_BLOCK capabilities can also come from the
moodle core capability definitions

Revision 1.88 - (view) (download) (annotate) - [select for diffs]
Fri Aug 10 17:33:21 2007 WST (2 years, 3 months ago) by moodler
Branch: MAIN
Changes since 1.87: +3 -3 lines
Diff to previous 1.87
Changed applicable_formats to remove certain blocks from the tags pages

Revision 1.87 - (view) (download) (annotate) - [select for diffs]
Thu Aug 9 16:47:09 2007 WST (2 years, 3 months ago) by moodler
Branch: MAIN
Changes since 1.86: +13 -4 lines
Diff to previous 1.86
Switch arrows in blocks when in RTL mode  MDL-10768

Revision 1.86 - (view) (download) (annotate) - [select for diffs]
Tue May 8 23:07:25 2007 WST (2 years, 6 months ago) by poltawski
Branch: MAIN
Changes since 1.85: +10 -10 lines
Diff to previous 1.85
MDL-9742 - changed tabs to spaces in a few places where there are one
or two

Revision 1.85 - (view) (download) (annotate) - [select for diffs]
Mon Mar 26 11:06:45 2007 WST (2 years, 8 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.84: +2 -4 lines
Diff to previous 1.84
MDL-8922: Had to modify another bunch of files to fix a simple problem:
when a config block contains a form, the previous form needs to be closed
properly (it was, but there were non-matching closing divs etc...).

Revision 1.79.2.5 - (view) (download) (annotate) - [select for diffs]
Mon Mar 26 10:57:55 2007 WST (2 years, 8 months ago) by nicolasconnault
Branch: MOODLE_18_STABLE
CVS Tags: MOODLE_18, MOODLE_181, MOODLE_182
Changes since 1.79.2.4: +2 -4 lines
Diff to previous 1.79.2.4 , to branch point 1.79
MDL-8922: Had to modify another bunch of files to fix a simple problem:
when a config block contains a form, the previous form needs to be closed
properly (it was, but there were non-matching closing divs etc...).

Revision 1.84 - (view) (download) (annotate) - [select for diffs]
Fri Mar 23 16:48:02 2007 WST (2 years, 8 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.83: +4 -2 lines
Diff to previous 1.83
MDL-8922 : Fixed a number of xhtml simple issues, but heaps of hard-core fixes yet to do.

Revision 1.79.2.4 - (view) (download) (annotate) - [select for diffs]
Fri Mar 23 16:46:17 2007 WST (2 years, 8 months ago) by nicolasconnault
Branch: MOODLE_18_STABLE
Changes since 1.79.2.3: +4 -2 lines
Diff to previous 1.79.2.3 , to branch point 1.79
MDL-8922 : Fixed a number of xhtml simple issues, but heaps of hard-core fixes yet to do.

Revision 1.83 - (view) (download) (annotate) - [select for diffs]
Mon Feb 26 23:02:21 2007 WST (2 years, 8 months ago) by defacer
Branch: MAIN
Changes since 1.82: +5 -6 lines
Diff to previous 1.82
Merge from MOODLE_18_STABLE:
Fixing notices, I should 've done grep "BLOCK_TYPE_NUKE" earlier.

Revision 1.79.2.3 - (view) (download) (annotate) - [select for diffs]
Mon Feb 26 22:58:14 2007 WST (2 years, 8 months ago) by defacer
Branch: MOODLE_18_STABLE
Changes since 1.79.2.2: +5 -6 lines
Diff to previous 1.79.2.2 , to branch point 1.79
Fixing notices, I should 've done grep "BLOCK_TYPE_NUKE" earlier.

Revision 1.82 - (view) (download) (annotate) - [select for diffs]
Mon Feb 26 22:29:57 2007 WST (2 years, 8 months ago) by defacer
Branch: MAIN
Changes since 1.81: +0 -5 lines
Diff to previous 1.81
Merge from MOODLE_18_STABLE:
Killing BLOCK_NUKE constant, since Martin nuked nuke blocks.

Revision 1.79.2.2 - (view) (download) (annotate) - [select for diffs]
Mon Feb 26 22:26:56 2007 WST (2 years, 8 months ago) by defacer
Branch: MOODLE_18_STABLE
Changes since 1.79.2.1: +2 -7 lines
Diff to previous 1.79.2.1 , to branch point 1.79
Killing BLOCK_NUKE constant, since Martin nuked nuke blocks.

Revision 1.81 - (view) (download) (annotate) - [select for diffs]
Fri Feb 16 16:57:19 2007 WST (2 years, 9 months ago) by toyomoyo
Branch: MAIN
Changes since 1.80: +3 -3 lines
Diff to previous 1.80
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.

Revision 1.80 - (view) (download) (annotate) - [select for diffs]
Fri Feb 16 10:26:19 2007 WST (2 years, 9 months ago) by toyomoyo
Branch: MAIN
Changes since 1.79: +3 -5 lines
Diff to previous 1.79
merged fixed wrong context, it should be possible to manage a single block

Revision 1.79.2.1 - (view) (download) (annotate) - [select for diffs]
Fri Feb 16 10:24:58 2007 WST (2 years, 9 months ago) by toyomoyo
Branch: MOODLE_18_STABLE
Changes since 1.79: +3 -5 lines
Diff to previous 1.79
fixed wrong context, it should be possible to manage a single block

Revision 1.73.2.3 - (view) (download) (annotate) - [select for diffs]
Fri Feb 16 10:24:30 2007 WST (2 years, 9 months ago) by moodler
Branch: MOODLE_17_STABLE
CVS Tags: MOODLE_172, MOODLE_173, MOODLE_174, MOODLE_175, MOODLE_176, MOODLE_177, MOODLE_17_MERGED, MOODLE_17_WEEKLY
Changes since 1.73.2.2: +4 -10 lines
Diff to previous 1.73.2.2 , to branch point 1.73 , to next main 1.138
fixed wrong context, it should be possible to manage a single block

Revision 1.79 - (view) (download) (annotate) - [select for diffs]
Tue Jan 30 06:29:28 2007 WST (2 years, 9 months ago) by skodak
Branch: MAIN
CVS Tags: MOODLE_18_BETA
Branch point for: MOODLE_18_STABLE
Changes since 1.78: +3 -8 lines
Diff to previous 1.78
MDL-8343 reorganize frontpage settings in admintree - admin tree now allows to specify context together with required capability for each entry
MDL-8352 Fully separate CONTEXT_COURSE, SITEID from COURSE_SYSTEM - first part of cleanup related to frontpage

Revision 1.78 - (view) (download) (annotate) - [select for diffs]
Mon Jan 8 18:14:11 2007 WST (2 years, 10 months ago) by skodak
Branch: MAIN
Changes since 1.77: +3 -3 lines
Diff to previous 1.77
MDL-7861 new class .icon and .iconsmall

Revision 1.77 - (view) (download) (annotate) - [select for diffs]
Thu Jan 4 22:01:29 2007 WST (2 years, 10 months ago) by skodak
Branch: MAIN
Changes since 1.76: +3 -3 lines
Diff to previous 1.76
MDL-7861 some xhtml fixes

Revision 1.76 - (view) (download) (annotate) - [select for diffs]
Tue Dec 12 16:12:11 2006 WST (2 years, 11 months ago) by moodler
Branch: MAIN
CVS Tags: MOODLE_18_GROUPS_PRE_MERGE
Changes since 1.75: +4 -4 lines
Diff to previous 1.75
Fixed a missing space which broken XHTML 1.0 strict

Revision 1.75 - (view) (download) (annotate) - [select for diffs]
Mon Dec 11 16:15:30 2006 WST (2 years, 11 months ago) by vyshane
Branch: MAIN
Changes since 1.74: +8 -12 lines
Diff to previous 1.74
Fix for MDL-7493. Added html id attribute for the image button used to toggle hide and show for blocks. This is used by javascript to replace the image on the fly.

Revision 1.73.2.2 - (view) (download) (annotate) - [select for diffs]
Wed Nov 15 11:34:09 2006 WST (3 years ago) by vyshane
Branch: MOODLE_17_STABLE
CVS Tags: MOODLE_171
Changes since 1.73.2.1: +2 -12 lines
Diff to previous 1.73.2.1 , to branch point 1.73
Fix for MDL-7293

Revision 1.74 - (view) (download) (annotate) - [select for diffs]
Mon Nov 13 13:43:41 2006 WST (3 years ago) by toyomoyo
Branch: MAIN
CVS Tags: MOODLE_18_GROUPS_PRE
Branch point for: MOODLE_18_GROUPS
Changes since 1.73: +3 -3 lines
Diff to previous 1.73
merged fix for MDL-7441, wrong size for roles icon

Revision 1.73.2.1 - (view) (download) (annotate) - [select for diffs]
Mon Nov 13 13:42:43 2006 WST (3 years ago) by toyomoyo
Branch: MOODLE_17_STABLE
Changes since 1.73: +3 -3 lines
Diff to previous 1.73
fix for MDL-7441 wrong size for roles icon

Revision 1.73 - (view) (download) (annotate) - [select for diffs]
Sun Oct 8 19:00:50 2006 WST (3 years, 1 month ago) by skodak
Branch: MAIN
CVS Tags: MOODLE_17, MOODLE_17_BETA, MOODLE_17_BETA2
Branch point for: MOODLE_17_STABLE
Changes since 1.72: +3 -3 lines
Diff to previous 1.72
fixed 'capabilitities' typos and removed forgotten debug_print_backtrace() commited with MDL-6728

Revision 1.72 - (view) (download) (annotate) - [select for diffs]
Wed Sep 27 05:10:18 2006 WST (3 years, 1 month ago) by skodak
Branch: MAIN
Changes since 1.71: +3 -3 lines
Diff to previous 1.71
coverted /admin/ to proper /$CFG->admin/ in paths

Revision 1.71 - (view) (download) (annotate) - [select for diffs]
Thu Sep 21 20:07:15 2006 WST (3 years, 2 months ago) by sam_marshall
Branch: MAIN
Changes since 1.70: +11 -3 lines
Diff to previous 1.70
Added feature to blocks (and restorelib) so that blocks get a method call (default does nothing) after they are restored. This allows blocks to change their settings if necessary in respect of the new course roll-forward 'restore and change start date' feature that Al implemented recently. The core blocks happen not to store dates anyway so don't need this, but contributed blocks may well do.

Revision 1.70 - (view) (download) (annotate) - [select for diffs]
Thu Sep 21 04:31:46 2006 WST (3 years, 2 months ago) by skodak
Branch: MAIN
Changes since 1.69: +34 -34 lines
Diff to previous 1.69
major whitespace cleanup - fixed tabs

Revision 1.69 - (view) (download) (annotate) - [select for diffs]
Mon Sep 18 11:28:02 2006 WST (3 years, 2 months ago) by moodler
Branch: MAIN
Changes since 1.68: +2 -58 lines
Diff to previous 1.68
Nuked nuke.

Revision 1.68 - (view) (download) (annotate) - [select for diffs]
Wed Sep 6 10:16:48 2006 WST (3 years, 2 months ago) by moodler
Branch: MAIN
Changes since 1.67: +5 -4 lines
Diff to previous 1.67
A temporary icon for roles (needs work!)

Revision 1.67 - (view) (download) (annotate) - [select for diffs]
Sun Sep 3 07:55:57 2006 WST (3 years, 2 months ago) by skodak
Branch: MAIN
Changes since 1.66: +8 -4 lines
Diff to previous 1.66
fixes for new admin blocks

Revision 1.66 - (view) (download) (annotate) - [select for diffs]
Sat Sep 2 18:03:31 2006 WST (3 years, 2 months ago) by skodak
Branch: MAIN
Changes since 1.65: +5 -4 lines
Diff to previous 1.65
fixed admin defaults, some warnings during install and added trmporary hack to make $CFG->notloggedinroleid work

Revision 1.65 - (view) (download) (annotate) - [select for diffs]
Thu Aug 24 11:48:04 2006 WST (3 years, 3 months ago) by moodler
Branch: MAIN
Changes since 1.64: +1 -1 lines
Diff to previous 1.64
FIxed roles button on blocks

Revision 1.64 - (view) (download) (annotate) - [select for diffs]
Thu Aug 24 11:28:09 2006 WST (3 years, 3 months ago) by moodler
Branch: MAIN
Changes since 1.63: +4 -5 lines
Diff to previous 1.63
FIxed some notices

Revision 1.63 - (view) (download) (annotate) - [select for diffs]
Thu Aug 24 11:20:37 2006 WST (3 years, 3 months ago) by moodler
Branch: MAIN
Changes since 1.62: +24 -7 lines
Diff to previous 1.62
Ed Coyne's AJAX course format, with some cleanups done.

More cleanups to come from Ed.

This isn't actually working for me right now but he'll fix it now.

This is completely optional and won't affect any other code right now.

Revision 1.62 - (view) (download) (annotate) - [select for diffs]
Wed Aug 16 16:54:07 2006 WST (3 years, 3 months ago) by vyshane
Branch: MAIN
CVS Tags: MOODLE_17_NEWGROUPS_PRE
Branch point for: MOODLE_17_NEWGROUPS
Changes since 1.61: +6 -3 lines
Diff to previous 1.61
Updated to use new Roles System. Plus some fixes.

Revision 1.61 - (view) (download) (annotate) - [select for diffs]
Mon Aug 14 13:55:40 2006 WST (3 years, 3 months ago) by moodler
Branch: MAIN
Changes since 1.60: +1 -1 lines
Diff to previous 1.60
SWEEPING CLEANUP

The API was changed slightly so that has_capability now takes the
whole $context object (we almost always have it anyway)

The $kill thing was removed.   If you want to assert a capability
then use:

    require_capability('capname', $context);

with optional variables to modify the error message

Misc bugs here and there also removed and code tidied

Revision 1.60 - (view) (download) (annotate) - [select for diffs]
Tue Aug 8 13:13:09 2006 WST (3 years, 3 months ago) by moodler
Branch: MAIN
Changes since 1.59: +33 -3 lines
Diff to previous 1.59
ROLES AND PERMISSIONS  - FIRST CHECK-IN
=======================================

WARNING:  DEV IS CURRENTLY VERY UNSTABLE.

This is a mega-checkin of the new Roles system.   A lot of changes have
been made in core and modules.

Currently there are a lot of rough edges and known problems.  We are
working hard on these .. .the reason for getting this into HEAD at this
stage is enable us to move faster (our branch was diverging from HEAD
too much).

Please keep an eye on http://docs.moodle.org/en/Roles for current status
and information for developers on how to use the new Roles system.

Revision 1.57.4.2 - (view) (download) (annotate) - [select for diffs]
Thu Aug 3 16:29:41 2006 WST (3 years, 3 months ago) by toyomoyo
Branch: MOODLE_17_ROLES
Changes since 1.57.4.1: +10 -2 lines
Diff to previous 1.57.4.1 , to branch point 1.57 , to next main 1.138
.

Revision 1.57.4.1 - (view) (download) (annotate) - [select for diffs]
Wed Jul 26 16:39:17 2006 WST (3 years, 3 months ago) by toyomoyo
Branch: MOODLE_17_ROLES
Changes since 1.57: +25 -3 lines
Diff to previous 1.57
some site level capabilitie implementations

Revision 1.59 - (view) (download) (annotate) - [select for diffs]
Fri Jul 14 19:17:46 2006 WST (3 years, 4 months ago) by sam_marshall
Branch: MAIN
Changes since 1.58: +16 -2 lines
Diff to previous 1.58
Added hooks so that blocks can create functions that are run when they are installed and uninstalled. The base implementation does nothing.

Revision 1.58 - (view) (download) (annotate) - [select for diffs]
Fri Jun 9 22:27:35 2006 WST (3 years, 5 months ago) by nfreear
Branch: MAIN
Changes since 1.57: +7 -7 lines
Diff to previous 1.57
Fix bug 5611 (Skip block), across 4 files. Extra parameter $title in weblib.php: print_side_block, edits to moodleblock.class.php, Standard style, en_utf8 language pack.

Revision 1.57 - (view) (download) (annotate) - [select for diffs]
Mon Mar 6 20:50:11 2006 WST (3 years, 8 months ago) by nfreear
Branch: MAIN
CVS Tags: MOODLE_16, MOODLE_161, MOODLE_162, MOODLE_163, MOODLE_164, MOODLE_165, MOODLE_166, MOODLE_167, MOODLE_168, MOODLE_169, MOODLE_16_BETA, MOODLE_16_MERGED, MOODLE_16_WEEKLY
Branch point for: MOODLE_16_STABLE, MOODLE_17_ROLES
Changes since 1.56: +8 -6 lines
Diff to previous 1.56
Accessibility: moved H2 from weblib.php: print_side_block_start, to moodleblock.class.php: _title_html (validate, <span>s revert to <div>); skip block link - replaced pixel image with 'accesshide' text; use get_string.

Revision 1.56 - (view) (download) (annotate) - [select for diffs]
Tue Feb 28 21:12:13 2006 WST (3 years, 8 months ago) by nfreear
Branch: MAIN
Changes since 1.55: +7 -5 lines
Diff to previous 1.55
Accessibility: function _title_html, replaced <div> with H2, enclosed <div> to <span> - now validates!

Revision 1.55 - (view) (download) (annotate) - [select for diffs]
Tue Feb 14 11:24:08 2006 WST (3 years, 9 months ago) by mjollnir_
Branch: MAIN
Changes since 1.54: +9 -2 lines
Diff to previous 1.54
Added cron support for blocks - it was already there in the tables, now we just need to use it

Revision 1.54 - (view) (download) (annotate) - [select for diffs]
Sat Dec 17 12:53:50 2005 WST (3 years, 11 months ago) by defacer
Branch: MAIN
Changes since 1.53: +2 -5 lines
Diff to previous 1.53
Oops. Forgot some debug code in there.

Revision 1.53 - (view) (download) (annotate) - [select for diffs]
Sat Dec 17 12:37:55 2005 WST (3 years, 11 months ago) by defacer
Branch: MAIN
Changes since 1.52: +30 -9 lines
Diff to previous 1.52
NEW FEATURE:

Per-block access controls for creating and editing block instances. Defaults
behave the same as before, and the framework has final say as before.

See relevant discussion at http://moodle.org/mod/forum/discuss.php?d=36444



Other minor changes: Converted "continue" to "break" inside switch statements
(more to the point, although equivalent), change erroneous (but harmless)
"return false" to "break" on failed addition of block instance, removed some
inline comments from block_base (they were duplicated in PHPdoc)

Revision 1.52 - (view) (download) (annotate) - [select for diffs]
Tue Aug 23 12:48:34 2005 WST (4 years, 3 months ago) by mjollnir_
Branch: MAIN
CVS Tags: MOODLE_16_AUTHREFACTOR_PRE, MOODLE_16_MULTIENROL_MP1, MOODLE_16_MULTIENROL_PRE, MOODLE_16_UTF8_PRE
Branch point for: MOODLE_16_AUTHREFACTOR, MOODLE_16_MULTIENROL, MOODLE_16_UTF8
Changes since 1.51: +5 -2 lines
Diff to previous 1.51
Fixing warnings in my moodle/ blocks /pagelib, plus moved page->edit_always to base class

Revision 1.51 - (view) (download) (annotate) - [select for diffs]
Wed Aug 17 07:17:56 2005 WST (4 years, 3 months ago) by mjollnir_
Branch: MAIN
Changes since 1.50: +3 -4 lines
Diff to previous 1.50
Removed tiny amount of unncessary code I added as part of the my moodle block stuff yesterday

Revision 1.50 - (view) (download) (annotate) - [select for diffs]
Tue Aug 16 08:25:27 2005 WST (4 years, 3 months ago) by mjollnir_
Branch: MAIN
Changes since 1.49: +16 -7 lines
Diff to previous 1.49
MyMoodle: new /my/ page, contains course overview (module based, forum done). User defined blocks on /my/ page, admin defined stickyblocks. Needs lots of testing. Held off bumping version.php for blocks because of the postgres upgrade fixes Patrick is putting in.

Revision 1.49 - (view) (download) (annotate) - [select for diffs]
Mon Jun 13 11:32:31 2005 WST (4 years, 5 months ago) by defacer
Branch: MAIN
Changes since 1.48: +20 -2 lines
Diff to previous 1.48
Merging from STABLE:

Implementing Dan Marsden's great idea for additional hooks when block
instances are deleted (bug 3446). Going a step further and adding hooks
for when block instances are created.

Revision 1.48.2.1 - (view) (download) (annotate) - [select for diffs]
Mon Jun 13 11:29:47 2005 WST (4 years, 5 months ago) by defacer
Branch: MOODLE_15_STABLE
CVS Tags: MOODLE_151, MOODLE_152, MOODLE_153, MOODLE_154, MOODLE_15_MERGED
Changes since 1.48: +20 -2 lines
Diff to previous 1.48 , to next main 1.138
Implementing Dan Marsden's great idea for additional hooks when block
instances are deleted (bug 3446). Going a step further and adding hooks
for when block instances are created.

This probably counts as adding features to a STABLE, but I wanted to
give any future blocks that use this as much back-compat as possible.

Revision 1.48 - (view) (download) (annotate) - [select for diffs]
Tue May 10 12:00:53 2005 WST (4 years, 6 months ago) by defacer
Branch: MAIN
CVS Tags: MOODLE_15, MOODLE_15_BETA
Branch point for: MOODLE_15_STABLE
Changes since 1.47: +23 -20 lines
Diff to previous 1.47
Here be DIVs.

Revision 1.47 - (view) (download) (annotate) - [select for diffs]
Tue May 10 07:11:25 2005 WST (4 years, 6 months ago) by defacer
Branch: MAIN
Changes since 1.46: +3 -3 lines
Diff to previous 1.46
Visual improvement: blocks which are "hidden" (eye icon) now shown exactly
like collapsed blocks (minus sign) when editing is on.

Revision 1.46 - (view) (download) (annotate) - [select for diffs]
Sat Mar 26 10:35:29 2005 WST (4 years, 8 months ago) by moodler
Branch: MAIN
Changes since 1.45: +3 -3 lines
Diff to previous 1.45
Removed an inline style on list blocks

Revision 1.45 - (view) (download) (annotate) - [select for diffs]
Mon Mar 7 20:08:44 2005 WST (4 years, 8 months ago) by moodler
Branch: MAIN
Changes since 1.44: +12 -12 lines
Diff to previous 1.44
Added proper styles to block buttons

Revision 1.44 - (view) (download) (annotate) - [select for diffs]
Thu Mar 3 03:47:03 2005 WST (4 years, 8 months ago) by defacer
Branch: MAIN
Changes since 1.43: +10 -10 lines
Diff to previous 1.43
Moved a bunch of inline styles to the stylesheets.

Revision 1.43 - (view) (download) (annotate) - [select for diffs]
Thu Mar 3 03:29:50 2005 WST (4 years, 8 months ago) by defacer
Branch: MAIN
Changes since 1.42: +4 -4 lines
Diff to previous 1.42
Small fix, changing break; to return; now that there's no switch()

Revision 1.42 - (view) (download) (annotate) - [select for diffs]
Thu Mar 3 03:22:19 2005 WST (4 years, 8 months ago) by defacer
Branch: MAIN
Changes since 1.41: +79 -49 lines
Diff to previous 1.41
Implemented discussion from bug 2547:

* Block authors no longer need to set $this->content_type
* If you want to make a "list" block, just derive from block_list
  instead of block_base
* All switch() statements gone from library code
* Overloaded method is_empty() added to block classes for convenience

Revision 1.41 - (view) (download) (annotate) - [select for diffs]
Fri Feb 11 14:30:50 2005 WST (4 years, 9 months ago) by defacer
Branch: MAIN
Changes since 1.40: +4 -4 lines
Diff to previous 1.40
Updating the guide and some comments to be up to date with the latest
and greatest inner workings. sigh.

Revision 1.40 - (view) (download) (annotate) - [select for diffs]
Thu Feb 10 08:50:07 2005 WST (4 years, 9 months ago) by defacer
Branch: MAIN
Changes since 1.39: +3 -3 lines
Diff to previous 1.39
Introducing instance ids as id attributes in blocks. This should completely
solve the problem where two instances of the same block did confusing things
when you tried to collapse one of them.

Incidentally, moving some styles for quiz_results block to where they belong.

Revision 1.39 - (view) (download) (annotate) - [select for diffs]
Tue Feb 8 10:59:42 2005 WST (4 years, 9 months ago) by defacer
Branch: MAIN
Changes since 1.38: +5 -5 lines
Diff to previous 1.38
Changing the way that applicable formats for each block are defined:

The format for each page is now the same as the id attribute of the
BODY tag, which in turn is a simple function of the script's relative path:

The format for e.g. a quiz view page is "mod-quiz-view". The format for the
site index is "site-index". Exception: the format for courses is not just
"course-view", but "course-view-weeks" etc.

Obviously the applicable_formats() override for each block should now take
this into account. The matching rules now are:

* You can specify the full format, e.g. "mod-quiz-view" => true
  will allow the block to be added in quizzes
* Prefixes match the full page format, e.g. "mod" matches ALL activities
* You can use "*" as a wildcard, e.g. "mod-*-view" matches just the view.php
  page of all activities
* These rules interoperate, thus "mod-*" is the same as "mod"
* "all" remains as a catch-all situation

Revision 1.38 - (view) (download) (annotate) - [select for diffs]
Sat Feb 5 09:32:15 2005 WST (4 years, 9 months ago) by defacer
Branch: MAIN
Changes since 1.37: +7 -3 lines
Diff to previous 1.37
Fixing a serious bug with PHP 5 only, which caused blocks to lose
their configuration data (there is an explanation but I don't think
anyone cares).

Actually it was an optimization and I had to disable it. All is fine now.

Revision 1.37 - (view) (download) (annotate) - [select for diffs]
Tue Feb 1 18:02:12 2005 WST (4 years, 9 months ago) by defacer
Branch: MAIN
Changes since 1.36: +4 -4 lines
Diff to previous 1.36
Pull all blocks out of quiz pages. We can see about allowing them later.

Revision 1.36 - (view) (download) (annotate) - [select for diffs]
Tue Feb 1 14:50:59 2005 WST (4 years, 9 months ago) by defacer
Branch: MAIN
Changes since 1.35: +11 -2 lines
Diff to previous 1.35
Add a very useful feature to block_base to make instance config even more
convenient to use. And take advantage of it to make the block run faster.

Revision 1.35 - (view) (download) (annotate) - [select for diffs]
Sat Jan 29 12:01:15 2005 WST (4 years, 9 months ago) by moodler
Branch: MAIN
Changes since 1.34: +14 -25 lines
Diff to previous 1.34
Removed some $THEME and added some new classes for the blockconfiginstance
and blockconfigglobal boxes

Revision 1.34 - (view) (download) (annotate) - [select for diffs]
Tue Jan 25 10:57:30 2005 WST (4 years, 9 months ago) by defacer
Branch: MAIN
Changes since 1.33: +9 -9 lines
Diff to previous 1.33
Renaming 4 internal-use-only class methods by prefixing an underscore.
I want to make a point that people should NOT be calling them.

Revision 1.33 - (view) (download) (annotate) - [select for diffs]
Mon Jan 17 22:51:18 2005 WST (4 years, 10 months ago) by defacer
Branch: MAIN
Changes since 1.32: +10 -10 lines
Diff to previous 1.32
Fix for bug 2371:

The alt text is now the same as the tooltip for the block control icons in
editing mode (i.e., language pack configurable).

Revision 1.32 - (view) (download) (annotate) - [select for diffs]
Wed Jan 12 03:38:19 2005 WST (4 years, 10 months ago) by defacer
Branch: MAIN
Changes since 1.31: +12 -12 lines
Diff to previous 1.31
Fixing the alt attributes for the icons used to move/hide etc. blocks when
editing is on. Also a few minor corrections for things inside comments.

Revision 1.31 - (view) (download) (annotate) - [select for diffs]
Mon Nov 29 12:19:04 2004 WST (4 years, 11 months ago) by defacer
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30
Fix for bug 2241:

I hope this time I got everything changed to the new Page interface! I 'm
really sorry for messing up and breaking new installations... :(

Also moved the only two functions of the API outside the page_base class.

Revision 1.30 - (view) (download) (annotate) - [select for diffs]
Fri Nov 26 01:35:25 2004 WST (4 years, 11 months ago) by defacer
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29
Ummm... more changes due to the renaming.

Revision 1.29 - (view) (download) (annotate) - [select for diffs]
Wed Nov 24 02:53:20 2004 WST (5 years ago) by defacer
Branch: MAIN
Changes since 1.28: +6 -6 lines
Diff to previous 1.28
New naming conventions for class names to bring them in line with the
rest of Moodle. The convention for blocks is now:

class block_something extends block_base { ... }

HOWTO updated accordingly, plus some more minor polishing. More to come.

Revision 1.28 - (view) (download) (annotate) - [select for diffs]
Tue Nov 23 00:09:06 2004 WST (5 years ago) by moodler
Branch: MAIN
Changes since 1.27: +11 -3 lines
Diff to previous 1.27
Added dummy constructor to keep PHP5 happy.

Revision 1.27 - (view) (download) (annotate) - [select for diffs]
Sun Nov 21 03:36:47 2004 WST (5 years ago) by defacer
Branch: MAIN
Changes since 1.26: +2 -8 lines
Diff to previous 1.26
Slight change to the HOWTO to be more clear.

Removed the $course var from MoodleBlock (useless now).

Revision 1.26 - (view) (download) (annotate) - [select for diffs]
Fri Nov 19 10:41:32 2004 WST (5 years ago) by defacer
Branch: MAIN
Changes since 1.25: +8 -25 lines
Diff to previous 1.25
Tweaked class MoodleBlock some. Removed a useless function (how did it get in here?)
and renamed handle_config(), print_config() to config_save(), config_print() for
consistency with the new instance_ functions().

Removed that old and obsolete README file.

Revision 1.25 - (view) (download) (annotate) - [select for diffs]
Thu Nov 11 00:43:57 2004 WST (5 years ago) by dhawes
Branch: MAIN
Changes since 1.24: +6 -5 lines
Diff to previous 1.24
added comments and some spacing cleanup

Revision 1.24 - (view) (download) (annotate) - [select for diffs]
Tue Nov 9 03:36:05 2004 WST (5 years ago) by defacer
Branch: MAIN
Changes since 1.23: +28 -20 lines
Diff to previous 1.23
MAJOR CHANGES:
--------------

Brand-new pagelib.php at your disposal! It slices, it dices, it makes your coffee.
It still doesn't understand women... Read the comments in pagelib.php for a first
impression. Feedback highly encouraged!

Blocks code has undergone significant changes to work with Pages. Flexibility is its
middle name, since I think (without having tried it) that adding e.g. a third
placeholder for "center" blocks in courses, with full support for moving around etc,
will now take about 15 lines of new or edited code. If you are not impressed yet, I
suggest watching a documentary on solar physics. :P

MINOR CHANGES:
--------------

Added instance_allow_config() in the blocks class hierarchy to supplement per-instance
configuration options. You can override it to return true and thus get configuration
amenities without allowing multiple instances.

Minor polishing to comments and documentation (whatever caught my eye was game).

Tightened up some code here and there by utilizing all the new features.

BUGFIXES:
---------

A bug in restore_execute.html caused hidden blocks to not be restored at all.

Revision 1.23 - (view) (download) (annotate) - [select for diffs]
Thu Oct 28 09:26:33 2004 WST (5 years ago) by dhawes
Branch: MAIN
Changes since 1.22: +280 -49 lines
Diff to previous 1.22
spacing updates and addition of some phpdoc comments

Revision 1.22 - (view) (download) (annotate) - [select for diffs]
Mon Oct 25 11:30:48 2004 WST (5 years, 1 month ago) by dhawes
Branch: MAIN
Changes since 1.21: +8 -9 lines
Diff to previous 1.21
clarified comments and added some spacing.

Revision 1.21 - (view) (download) (annotate) - [select for diffs]
Mon Oct 25 08:09:47 2004 WST (5 years, 1 month ago) by dhawes
Branch: MAIN
Changes since 1.20: +6 -1 lines
Diff to previous 1.20
added comment for new specialization function

Revision 1.20 - (view) (download) (annotate) - [select for diffs]
Mon Oct 25 05:49:58 2004 WST (5 years, 1 month ago) by dhawes
Branch: MAIN
Changes since 1.19: +27 -20 lines
Diff to previous 1.19
added spacing

Revision 1.19 - (view) (download) (annotate) - [select for diffs]
Sun Oct 24 23:52:25 2004 WST (5 years, 1 month ago) by dhawes
Branch: MAIN
Changes since 1.18: +6 -4 lines
Diff to previous 1.18
some spacing added

Revision 1.18 - (view) (download) (annotate) - [select for diffs]
Wed Oct 20 05:04:18 2004 WST (5 years, 1 month ago) by defacer
Branch: MAIN
Changes since 1.17: +101 -31 lines
Diff to previous 1.17
Da monster-commit of blocks version 2!

Code based on the work of Daryl Hawes for the blog module. Thanks, Daryl!

Please test the hell out of it as it's sure to have issues that need to be
ironed out.

Revision 1.17 - (view) (download) (annotate) - [select for diffs]
Sun Oct 10 04:16:04 2004 WST (5 years, 1 month ago) by stronk7
Branch: MAIN
Changes since 1.16: +10 -8 lines
Diff to previous 1.16
course/view.php is using sesskey
(changes in blocks done, please check them)

Merged from MOODLE_14_STABLE

Revision 1.14.2.1 - (view) (download) (annotate) - [select for diffs]
Sun Oct 10 04:04:45 2004 WST (5 years, 1 month ago) by stronk7
Branch: MOODLE_14_STABLE
CVS Tags: MOODLE_142, MOODLE_143, MOODLE_144, MOODLE_145, MOODLE_14_MERGED
Changes since 1.14: +10 -8 lines
Diff to previous 1.14 , to next main 1.138
course/view.php is using sesskey
(changes in blocks done, please check them)

Revision 1.16 - (view) (download) (annotate) - [select for diffs]
Thu Oct 7 15:25:19 2004 WST (5 years, 1 month ago) by moodler
Branch: MAIN
Changes since 1.15: +7 -7 lines
Diff to previous 1.15
Changes for XHTML compatibility

Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Fri Sep 17 01:10:28 2004 WST (5 years, 2 months ago) by gustav_delius
Branch: MAIN
Changes since 1.14: +7 -7 lines
Diff to previous 1.14
XHTML compliance
- fixed (hopefully) all <img> tags
- global replace on <br> to <br />
- &amp; in URLs
- got the forum module XHTML compliant
Julian Sedding

Revision 1.14 - (view) (download) (annotate) - [select for diffs]
Mon Aug 23 00:54:42 2004 WST (5 years, 3 months ago) by defacer
Branch: MAIN
CVS Tags: MOODLE_13_MERGED, MOODLE_14, MOODLE_141, MOODLE_14_BETA, MOODLE_15_LDAP_PRE
Branch point for: MOODLE_14_STABLE, MOODLE_15_LDAP
Changes since 1.13: +6 -4 lines
Diff to previous 1.13
Fix for bug 1662:

Changed the way applicable formats for blocks are handled. The changes are
short codewise, but to grasp all the implications read the forum discussion
at the relevant URL.

Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Sat Aug 21 17:01:01 2004 WST (5 years, 3 months ago) by gustav_delius
Branch: MAIN
Changes since 1.12: +8 -8 lines
Diff to previous 1.12
fixed the problem that people trying to move blocks accidentally deleted them.

Revision 1.12 - (view) (download) (annotate) - [select for diffs]
Tue Jun 1 18:45:12 2004 WST (5 years, 5 months ago) by defacer
Branch: MAIN
CVS Tags: MOODLE_14_RESOURCE_PRE
Branch point for: MOODLE_14_RESOURCE
Changes since 1.11: +3 -3 lines
Diff to previous 1.11
As per Gustav's suggestion in bug 1507, changing the default behavior for
blocks to make them available in the site page, too. Also, minor spelling correction.

Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Sat May 29 18:35:57 2004 WST (5 years, 5 months ago) by gustav_delius
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10
fixed empty boxes bug reported in http://moodle.org/mod/forum/discuss.php?d=8432

Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Fri May 28 21:57:08 2004 WST (5 years, 5 months ago) by defacer
Branch: MAIN
Changes since 1.9: +36 -12 lines
Diff to previous 1.9
Bugfix: blocks with no content at all show up as shadows when editing.

Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Fri May 28 18:53:46 2004 WST (5 years, 5 months ago) by defacer
Branch: MAIN
Changes since 1.8: +9 -8 lines
Diff to previous 1.8
Merging the changes from 1.4 dev branch (site index blocks + various bugfixes)

Revision 1.8.2.1 - (view) (download) (annotate) - [select for diffs]
Thu May 27 21:47:35 2004 WST (5 years, 5 months ago) by defacer
Branch: Moodle_14_dev
Changes since 1.8: +9 -8 lines
Diff to previous 1.8 , to next main 1.138
Warning: monster commit! ;-)

------------------------
MAJOR CHANGES:
------------------------

** 1 **
Moved print_side_block() and print_side_block_start() from course/lib.php to
weblib.php. This seems like a good idea, considering I kept including the
whole library just for this.

** 2 **
Changed the declarations of these two functions! Not in a drastic way, but
the $width parameter is lost and replaced by an array with HTML attributes.
The way to replicate the "old" behavior now is:

    print_side_block_start($title, array('style' => 'width: 180px;'));

which also has the nice and intentional side effect of printing content that
validates even for XHTML 1.0 Strict. It also allows much greater flexibility
for the blocks, which is a requirement for another top secret feature ;-)

I have updated ALL the code in the default installation to be up-to-date with
these changes.

------------------------
NEW FEATURES:
------------------------

** 1 **

Blocks for the site home page! :-)

** 2 **
Changed the TOPICS format to put sequentially numbered html ID attributes
in each section, using the new print_side_block(). This is another step for
the top secret new feature...

** 3 **
Updated all blocks to have a nice HTML id attribute. See above.

------------------------
OTHER CHANGES:
------------------------

** 1 **
The admin block now has dual behavior, depending on whether it's displayed
in course 1 (site home page) or not.

** 2 **
Removed a whole lot of now-useless code from course/lib.php

------------------------
BUGFIXES:
------------------------

Removed warning in participants block if the user is a guest

Removed warning in calendar/lib.php if the user is a guest

When logging in "on the way" to a course, user events start as shown,
correcting the buggy behavior that exists in release 1.3.

Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Tue May 25 18:01:41 2004 WST (5 years, 6 months ago) by defacer
Branch: MAIN
CVS Tags: MOODLE_131, MOODLE_134, MOODLE_135, Moodle_13_pre14merge
Branch point for: MOODLE_13_STABLE, Moodle_14_dev
Changes since 1.7: +4 -1 lines
Diff to previous 1.7
If a block forgets to set the footer, we won't get a warning in debug mode.

Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Fri May 21 18:59:40 2004 WST (5 years, 6 months ago) by defacer
Branch: MAIN
CVS Tags: MOODLE_13
Changes since 1.6: +5 -1 lines
Diff to previous 1.6
Small addition for the future: blocks will be able to define their own
HTML attributes.

Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Wed May 12 15:33:06 2004 WST (5 years, 6 months ago) by defacer
Branch: MAIN
Changes since 1.5: +21 -12 lines
Diff to previous 1.5
Update, better and simpler handling.

Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Wed May 12 00:08:02 2004 WST (5 years, 6 months ago) by defacer
Branch: MAIN
Changes since 1.4: +39 -2 lines
Diff to previous 1.4
Preparation for Nuke blocks integration, and relaxing of requirements for
block db upgrade scripts. We 're getting to a point where you can really
have a directory with just a single 20-line file for your block and Moodle
will do all the rest. Much like Nuke does now. That is A Good Thing! :-)

Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Mon May 10 21:27:09 2004 WST (5 years, 6 months ago) by moodler
Branch: MAIN
CVS Tags: Moodle_13_Beta
Changes since 1.3: +1 -1 lines
Diff to previous 1.3
Added a CVS version number

Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Tue Apr 20 16:38:56 2004 WST (5 years, 7 months ago) by defacer
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2
Grand Bugslayer Eloy at work again: Hiding the blocks if they have no content
should mean "if they have no content AND no footer".

Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Tue Apr 20 15:43:26 2004 WST (5 years, 7 months ago) by defacer
Branch: MAIN
Changes since 1.1: +9 -1 lines
Diff to previous 1.1
Don't display blocks that have no content at all. I 'm not sure if this
could cause any confusion, but it solves the problem with the admin block
being displayed to guests.

The thought about a "display only to X and Y kinds of users" feature came
to mind, but maybe that would be more confusing than useful.

Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Mon Apr 19 07:20:27 2004 WST (5 years, 7 months ago) by stronk7
Branch: MAIN
First Official realease of the "Blocks System".
Integrated with Moodle:
    - Install automatically.
    - Update course->blockinfo for each course at installation time.
    - Modified course creation to insert into blockinfo field.
    - Modified restore to insert into blockinfo field.
    - Admin options (hide, show, delete, config) from admin page.
    - Lang strings inserted (en only).
    - Database support to mysql and postgresql (not tested!!).
Moodle, backup and block versions updated to 2004041800.
Tested with mysql: Install fresh and upgrade from previous.
section_activities block renamed to social_activities and created
its own lang file to support name "Social Activities". This can
be changed at any time.

TODO:
=====
Support it really in backup/restore.
????

Enjoy!! Ciao :-)

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

Moodle CVS Admin
ViewVC Help
Powered by ViewVC 1.0.7