See Release Notes
Long Term Support Release
1 <?php 2 // This file is part of Moodle - http://moodle.org/ 3 // 4 // Moodle is free software: you can redistribute it and/or modify 5 // it under the terms of the GNU General Public License as published by 6 // the Free Software Foundation, either version 3 of the License, or 7 // (at your option) any later version. 8 // 9 // Moodle is distributed in the hope that it will be useful, 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 // GNU General Public License for more details. 13 // 14 // You should have received a copy of the GNU General Public License 15 // along with Moodle. If not, see <http://www.gnu.org/licenses/>. 16 17 /** 18 * Class for backup BigBlueButtonBN. 19 * 20 * @package mod_bigbluebuttonbn 21 * @copyright 2010 onwards, Blindside Networks Inc 22 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 23 * @author Fred Dixon (ffdixon [at] blindsidenetworks [dt] com) 24 * @author Jesus Federico (jesus [at] blindsidenetworks [dt] com) 25 */ 26 27 defined('MOODLE_INTERNAL') || die; 28 global $CFG; 29 require_once($CFG->dirroot.'/mod/bigbluebuttonbn/backup/moodle2/backup_bigbluebuttonbn_stepslib.php'); 30 31 /** 32 * Backup task that provides all the settings and steps to perform one complete backup of the activity. 33 * 34 * @package mod_bigbluebuttonbn 35 * @copyright 2010 onwards, Blindside Networks Inc 36 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 37 */ 38 class backup_bigbluebuttonbn_activity_task extends backup_activity_task { 39 /** 40 * Define (add) particular settings this activity can have. 41 * 42 * @return void 43 */ 44 protected function define_my_settings() { 45 // No particular settings for this activity. 46 } 47 48 /** 49 * Define (add) particular steps this activity can have. 50 * 51 * @return void 52 */ 53 protected function define_my_steps() { 54 // Choice only has one structure step. 55 $this->add_step(new backup_bigbluebuttonbn_activity_structure_step('bigbluebuttonbn_structure', 'bigbluebuttonbn.xml')); 56 } 57 58 /** 59 * Code the transformations to perform in the activity in order to get transportable (encoded) links. 60 * 61 * @param string $content 62 * 63 * @return string 64 */ 65 public static function encode_content_links($content) { 66 global $CFG; 67 68 $base = preg_quote($CFG->wwwroot.'/mod/bigbluebuttonbn', '#'); 69 70 // Link to the list of bigbluebuttonbns. 71 $pattern = '#('.$base."\/index.php\?id\=)([0-9]+)#"; 72 $content = preg_replace($pattern, '$@BIGBLUEBUTTONBNINDEX*$2@$', $content); 73 74 // Link to bigbluebuttonbn view by moduleid. 75 $pattern = '#('.$base."\/view.php\?id\=)([0-9]+)#"; 76 $content = preg_replace($pattern, '$@BIGBLUEBUTTONBNVIEWBYID*$2@$', $content); 77 78 return $content; 79 } 80 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body