Initial commit: MeetLet Adobe Connect Bridge Marketplace edition (Moodle plugin).
Single-plugin source tree for mod_meetletacbmarketplace — admin, licensing, and marketplace integration. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
// This file is part of Moodle - http://moodle.org/
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
require_once($CFG->dirroot . '/mod/meetletacbmarketplace/backup/moodle2/restore_meetletacbmarketplace_stepslib.php');
|
||||
|
||||
/**
|
||||
* Restore task.
|
||||
*
|
||||
* @package mod_meetletacbmarketplace
|
||||
* @copyright 2026 MeetLet
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class restore_meetletacbmarketplace_activity_task extends restore_activity_task {
|
||||
protected function define_my_settings() {
|
||||
}
|
||||
|
||||
protected function define_my_steps() {
|
||||
$filename = 'meetletacbmarketplace.xml';
|
||||
$base = $this->get_taskbasepath();
|
||||
if ($base) {
|
||||
foreach (['meetletacbmarketplace.xml', 'meetletadobeconnectbridge.xml', 'meetlet.xml'] as $candidate) {
|
||||
if (file_exists($base . '/' . $candidate)) {
|
||||
$filename = $candidate;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->add_step(new restore_meetletacbmarketplace_activity_structure_step(
|
||||
'meetletacbmarketplace_structure',
|
||||
$filename
|
||||
));
|
||||
}
|
||||
|
||||
public static function define_decode_contents() {
|
||||
return [new restore_decode_content('meetletacbmarketplace', ['intro'], 'meetletacbmarketplace')];
|
||||
}
|
||||
|
||||
public static function define_decode_rules() {
|
||||
return [
|
||||
new restore_decode_rule('MEETLETACBVIEWBYID', '/mod/meetletacbmarketplace/view.php?id=$1', 'course_module'),
|
||||
new restore_decode_rule('MEETLETACBINDEX', '/mod/meetletacbmarketplace/index.php?id=$1', 'course'),
|
||||
// Legacy tokens from pre-rename backups.
|
||||
new restore_decode_rule('MEETLETVIEWBYID', '/mod/meetletacbmarketplace/view.php?id=$1', 'course_module'),
|
||||
new restore_decode_rule('MEETLETINDEX', '/mod/meetletacbmarketplace/index.php?id=$1', 'course'),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user