[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Source view] [Print] [Project Stats]
Book module upgrade related helper functions
Copyright: | 2010 Petr Skoda {@link http://skodak.org} |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 168 lines (7 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
mod_book_migrate_moddata_dir_to_legacy($book, $context, $path) X-Ref |
Migrate book files stored in moddata folders. Please note it was a big mistake to store the files there in the first place! param: stdClass $book param: stdClass $context param: string $path return: void |
mod_book_migrate_all_areas() X-Ref |
Migrate legacy files in intro and chapters return: void |
mod_book_migrate_area($record, $field, $table, $courseid, $context, $component, $filearea, $itemid) X-Ref |
Migrate one area, this should be probably part of moodle core... param: stdClass $record object to migrate files (book, chapter) param: string $field field in the record we are going to migrate param: string $table DB table containing the information to migrate param: int $courseid id of the course the book module belongs to param: context_module $context context of the book module param: string $component component to be used for the migrated files param: string $filearea filearea to be used for the migrated files param: int $itemid id to be used for the migrated files return: void |
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |