Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
 
3
// This file is part of Moodle - http://moodle.org/
4
//
5
// Moodle is free software: you can redistribute it and/or modify
6
// it under the terms of the GNU General Public License as published by
7
// the Free Software Foundation, either version 3 of the License, or
8
// (at your option) any later version.
9
//
10
// Moodle is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
// GNU General Public License for more details.
14
//
15
// You should have received a copy of the GNU General Public License
16
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
17
 
18
/**
19
 * This file keeps track of upgrades to the eduplayer module
20
 *
21
 * Sometimes, changes between versions involve alterations to database
22
 * structures and other major things that may break installations. The upgrade
23
 * function in this file will attempt to perform all the necessary actions to
24
 * upgrade your older installation to the current version. If there's something
25
 * it cannot do itself, it will tell you what you need to do.  The commands in
26
 * here will all be database-neutral, using the functions defined in DLL libraries.
27
 */
28
 
29
/**
30
 * @package    mod
31
 * @subpackage eduplayer
32
 * @author     Humanage Srl <info@humanage.it>
33
 * @copyright  2013 Humanage Srl <info@humanage.it>
34
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
35
 */
36
 
37
defined('MOODLE_INTERNAL') || die();
38
 
39
/**
40
 * Execute eduplayer upgrade from the given old version
41
 *
42
 * @param int $oldversion
43
 * @return bool
44
 */
45
function xmldb_eduplayer_upgrade($oldversion) {
46
    global $DB;
47
 
48
    $dbman = $DB->get_manager(); // loads ddl manager and xmldb classes
49
 
50
    // Final return of upgrade result (true, all went good) to Moodle.
51
    return true;
52
}