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
+5
View File
@@ -119,6 +119,11 @@ global $CFG;
execute_sql("ALTER TABLE {$CFG->prefix}course DROP COLUMN blockinfo");
}
if ($oldversion < 2004112900 && $result) {
$result = $result && table_column('block_instance', 'pagetype', 'pagetype', 'varchar', '20', '');
$result = $result && table_column('block_instance', 'position', 'position', 'varchar', '10', '');
}
//Finally, return result
return $result;
}