Rename marketplace plugin to meetletacbfree (mdl_modules.name limit + CI table prefixes)
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
// This file is part of Moodle - http://moodle.org/
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
/**
|
||||
* Backup structure.
|
||||
*
|
||||
* @package mod_meetletacbfree
|
||||
* @copyright 2026 MeetLet
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class backup_meetletacbfree_activity_structure_step extends backup_activity_structure_step {
|
||||
protected function define_structure() {
|
||||
$userinfo = $this->get_setting_value('userinfo');
|
||||
|
||||
$meetlet = new backup_nested_element('meetletacbfree', ['id'], [
|
||||
'name', 'intro', 'introformat', 'userid', 'templatescoid', 'meeturl',
|
||||
'starttime', 'endtime', 'meetingpublic', 'participants', 'grade',
|
||||
'autooffline', 'showzip', 'showofflineplayer', 'showrecordingstab', 'showcontenttab', 'showmp4',
|
||||
'showmakeoffline',
|
||||
'linkmode', 'existingscoid', 'meetinglang', 'waitforhost', 'featureaccess', 'settingoverrides',
|
||||
'participantsmode',
|
||||
'timecreated', 'timemodified',
|
||||
]);
|
||||
$meetings = new backup_nested_element('meetings');
|
||||
$meeting = new backup_nested_element('meeting', ['id'], [
|
||||
'meetingscoid', 'groupid', 'urlpath',
|
||||
]);
|
||||
|
||||
$meetlet->add_child($meetings);
|
||||
$meetings->add_child($meeting);
|
||||
|
||||
$meetlet->set_source_table('meetletacbfree', ['id' => backup::VAR_ACTIVITYID]);
|
||||
$meeting->set_source_table('meetletacbfree_meetings', ['instanceid' => backup::VAR_PARENTID]);
|
||||
|
||||
return $this->prepare_activity_structure($meetlet);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user