Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
Non instantiable helper class providing DB support to the backup_structure stuff. More...
Static Public Member Functions | |
static | annotate_files ($backupid, $contextid, $component, $filearea, $itemid, core\progress\base $progress=null) |
Adds backup id database record for all files in the given file area. More... | |
static | annotations_exist ($backupid, $itemname) |
Returns true/false if there are annotations for a given item. | |
static | convert_params_to_values ($params, $processor) |
static | get_iterator ($element, $params, $processor) |
static | insert_backup_ids_record ($backupid, $itemname, $itemid) |
static | move_annotations_to_final ($backupid, $itemname, core\progress\base $progress) |
Moves all the existing 'item' annotations to their final 'itemfinal' ones for a given backup. More... | |
Non instantiable helper class providing DB support to the backup_structure stuff.
This class contains various static methods available for all the DB operations performed by the backup_structure stuff (mainly @backup_nested_element class)
TODO: Finish phpdocs
|
static |
Adds backup id database record for all files in the given file area.
string | $backupid | Backup ID |
int | $contextid | Context id |
string | $component | Component |
string | $filearea | File area |
int | $itemid | Item id |
core\progress\base | $progress |
|
static |
Moves all the existing 'item' annotations to their final 'itemfinal' ones for a given backup.
string | $backupid | Backup ID |
string | $itemname | Item name |
core\progress\base | $progress | Progress tracker |