Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 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
 * unilabel module.
19
 *
20
 * @package     mod_unilabel
21
 * @author      Andreas Grabs <info@grabs-edv.de>
22
 * @copyright   2018 onwards Grabs EDV {@link https://www.grabs-edv.de}
23
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
24
 */
25
defined('MOODLE_INTERNAL') || die;
26
 
27
require_once($CFG->dirroot . '/mod/unilabel/backup/moodle2/backup_unilabel_stepslib.php');
28
 
29
/**
30
 * Provides the steps to perform one complete backup of the unilabel instance.
31
 * @package     mod_unilabel
32
 * @author      Andreas Grabs <info@grabs-edv.de>
33
 * @copyright   2018 onwards Grabs EDV {@link https://www.grabs-edv.de}
34
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
35
 */
36
class backup_unilabel_activity_task extends backup_activity_task {
37
    /**
38
     * No specific settings for this activity.
39
     */
40
    protected function define_my_settings() {
41
    }
42
 
43
    /**
44
     * Defines a backup step to store the instance data in the unilabel.xml file.
45
     */
46
    protected function define_my_steps() {
47
        $this->add_step(new backup_unilabel_activity_structure_step('unilabel_structure', 'unilabel.xml'));
48
    }
49
 
50
    /**
51
     * No content encoding needed for this activity.
52
     *
53
     * @param  string $content some HTML text that eventually contains URLs to the activity instance scripts
54
     * @return string the same content with no changes
55
     */
56
    public static function encode_content_links($content) {
57
        return $content;
58
    }
59
}