defacer
331063054a
Slight change to the HOWTO to be more clear.
...
Removed the $course var from MoodleBlock (useless now).
2004-11-20 19:36:47 +00:00
defacer
9e094fd54b
Silly me... forgot to update url_get_path when I moved this thing in here.
2004-11-19 03:29:16 +00:00
defacer
db9b01eda2
Proof of concept for the things you can do with the new Blocks and Pages APIs.
...
What's important to stress here is that this demo is completely self-contained;
it does not require modifying ANY core Moodle code.
2004-11-19 03:16:56 +00:00
defacer
f8582e3e0a
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.
2004-11-19 02:41:32 +00:00
defacer
2456d7c815
Updated the two standard blocks that have configuration features to work
...
with the latest version of the Blocks API.
2004-11-19 02:36:57 +00:00
defacer
833d033623
First version of the Developer Documentation: Blocks how-to.
...
Still a bit rough around the edges and definitely will see refining.
Almost killed me, though. I hope it turns out to be useful.
2004-11-19 02:32:48 +00:00
moodler
ade736f13c
When there are no courses to list in the block, then include a link for adding one.
2004-11-18 06:33:23 +00:00
defacer
c8e0b57900
Pages/blocks code updates:
...
NEW: The code now supports dynamically plugging your own Pages and block position
identifiers into Moodle without messing with the main libraries at all.
UPDATE: Many functions in blocklib now use pass-by-reference for speed.
UPDATE: Class MoodlePage has been made more presentable and robust.
2004-11-12 18:39:25 +00:00
dhawes
e0134f842c
added comments and some spacing cleanup
2004-11-10 16:43:57 +00:00
defacer
f032aa7a5f
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.
2004-11-08 19:36:07 +00:00
defacer
681ad23b3d
Bugfix: The table prefix_block in blocks/db/postgres7.sql was incorrectly constructed as prefix_block.
...
Thanks to Penny Leach for pointing it out.
2004-11-08 19:18:19 +00:00
paca70
1b2a38043b
Theres no enums in postgresql 7.x. Fix for this.
2004-10-31 14:36:35 +00:00
dhawes
c7e3bc51e2
spacing updates and addition of some phpdoc comments
2004-10-28 01:26:33 +00:00
dhawes
d041e44fb1
spacing, tab and quote cleanup
2004-10-28 00:10:29 +00:00
dhawes
6195e04a9d
clarified comments and added some spacing.
2004-10-25 03:30:48 +00:00
dhawes
43038ce6d7
added comment for new specialization function
2004-10-25 00:09:47 +00:00
dhawes
59b2920778
added spacing
2004-10-24 21:49:58 +00:00
jpuntd
e633cfff62
*** empty log message ***
2004-10-24 20:09:05 +00:00
dhawes
e1b8bdf8e3
some spacing added
2004-10-24 15:52:25 +00:00
defacer
9b4b78fd6a
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.
2004-10-19 21:04:28 +00:00
jpuntd
fc9c255cb8
removed
2004-10-11 18:15:10 +00:00
paca70
260500db78
Files for postgresql
2004-10-10 16:10:48 +00:00
jpuntd
f9aa73d1b9
fixed some typos
2004-10-10 03:55:58 +00:00
stronk7
5b224948aa
course/view.php is using sesskey
...
(changes in blocks done, please check them)
Merged from MOODLE_14_STABLE
2004-10-09 20:16:05 +00:00
stronk7
8b92f5bb7d
course/mod.php is using sesskey.
...
Merged from MOODLE_14_STABLE
2004-10-09 17:23:28 +00:00
stronk7
d99ceac20f
course/index.php is using sesskey.
...
Merged form MOODLE_14_STABLE
2004-10-09 13:22:59 +00:00
moodler
fbc6c4295f
Changes for XHTML compatibility
2004-10-07 11:24:31 +00:00
moodler
c347053d5e
Changes for XHTML compatibility
2004-10-07 07:25:19 +00:00
stronk7
398ef378dc
admin/block.php is now using sesskey.
...
Merged from MOODLE_14_STABLE
2004-10-02 23:13:37 +00:00
moodler
f54e245898
Fixed a notice as per bug 2020 (and tidied some code)
2004-09-30 08:35:55 +00:00
stronk7
7777f4fc97
More use of SITEID
...
Merged from MOODLE_14_STABLE
2004-09-29 15:20:32 +00:00
moodler
857e46c39a
Changes for XHTML and accessibility compliances
2004-09-28 09:02:33 +00:00
stronk7
4894189c0c
Added backup & restore to SITE page.
...
Some changes from hardcoded '1' to SITEID.
See Bug 1928
(http://moodle.org/bugs/bug.php?op=show&bugid=1928 )
Merged from MOODLE_14_STABLE
2004-09-25 11:37:10 +00:00
moodler
87d32352a9
Some changes for XHTML and accessibility compliance
2004-09-23 12:09:19 +00:00
defacer
5ef50b7764
Small code sanitization
2004-09-20 22:37:40 +00:00
defacer
02ce384808
Merging fix for bug 1957 from MOODLE_14_STABLE.
2004-09-19 22:25:21 +00:00
moodler
23f160464a
Merged changes from stable to fix bug 1957
2004-09-18 13:17:23 +00:00
gustav_delius
839f2456bb
XHTML compliance
...
- fixed (hopefully) all <img> tags
- global replace on <br> to <br />
- & in URLs
- got the forum module XHTML compliant
Julian Sedding
2004-09-16 17:13:57 +00:00
defacer
99235a67cd
Merging changes from MOODLE_14_STABLE
2004-09-16 10:55:17 +00:00
gustav_delius
b4510d5333
closed some input tags
2004-09-12 22:23:51 +00:00
gustav_delius
98ea2a6e02
closed some image tags
2004-09-12 21:55:34 +00:00
gustav_delius
a43bbd9a15
fixed quoting of attribute values
2004-09-12 20:30:43 +00:00
defacer
de79ec4550
Merging patch for improved calendar block behavior from MOODLE_14_STABLE.
2004-09-07 10:31:18 +00:00
moodler
f28a291305
Merged from stable
2004-09-03 03:39:50 +00:00
defacer
c7756c734c
Merging changes from MOODLE_14_STABLE
2004-08-31 10:47:24 +00:00
gustav_delius
076cc57cc0
Merging TO Head
2004-08-30 17:38:53 +00:00
moodler
e02c35b2ae
Merged block upgrade fix from stable
2004-08-30 16:26:00 +00:00
defacer
e749554efa
Merged from MOODLE_14_STABLE
2004-08-30 11:46:08 +00:00
defacer
9ed66e56b5
Switching to using the new SITEID constant.
2004-08-30 06:47:45 +00:00
paca70
fbb869e97e
Use get_site() to get site's course number.
...
Site course could be different from course '1' in older installations.
2004-08-30 06:03:29 +00:00