Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
4 ariadna 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
 * Define how point_view blocks should behave on backup.
19
 * @package    block_point_view
20
 * @copyright  2022 Astor Bizard, 2003 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
21
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
22
 */
23
 
24
defined('MOODLE_INTERNAL') || die();
25
require_once(__DIR__ . '/backup_point_view_stepslib.php');
26
 
27
/**
28
 * Specialised backup task for the point_view block.
29
 *
30
 * @copyright  2022 Astor Bizard, 2003 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
31
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
32
 */
33
class backup_point_view_block_task extends backup_block_task {
34
 
35
    /**
36
     * Define (add) particular settings that this block can have
37
     */
38
    protected function define_my_settings() {
39
    }
40
 
41
    /**
42
     * Define (add) particular steps that this block can have
43
     */
44
    protected function define_my_steps() {
45
        $this->add_step( new backup_point_view_block_structure_step('point_view_structure', 'point_view.xml') );
46
    }
47
 
48
    /**
49
     * Define one array of fileareas that this block controls
50
     */
51
    public function get_fileareas() {
52
        return [ 'point_views_pix' ];
53
    }
54
 
55
    /**
56
     * Define one array of configdata attributes that need to be processed by the contenttransformer
57
     */
58
    public function get_configdata_encoded_attributes() {
59
        return [];
60
    }
61
 
62
    /**
63
     * Code the transformations to perform in the block in order to get transportable (encoded) links
64
     * @param mixed $content
65
     */
66
    public static function encode_content_links($content) {
67
        return $content; // No special encoding of links.
68
    }
69
}