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.
This commit is contained in:
defacer
2004-11-12 18:39:25 +00:00
parent 9a21768212
commit c8e0b57900
9 changed files with 136 additions and 33 deletions
+2 -2
View File
@@ -17,8 +17,8 @@ CREATE TABLE prefix_block_instance (
id SERIAL8 PRIMARY KEY,
blockid INT8 not null default '0',
pageid INT8 not null default '0',
pagetype varchar(12) not null check (pagetype in ('course')),
position char not null check (position in ('l', 'r')),
pagetype varchar(20) not null default '',
position varchar(10) not null default '',
weight int not null default '0',
visible int not null default '0',
configdata text not null default ''