[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
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 * Upgrade. 19 * 20 * @package repository_alfresco 21 * @copyright 2014 Frédéric Massart 22 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 23 */ 24 25 defined('MOODLE_INTERNAL') || die(); 26 27 /** 28 * Upgrade function. 29 * 30 * @param int $oldversion the version we are upgrading from. 31 * @return bool result 32 */ 33 function xmldb_repository_alfresco_upgrade($oldversion) { 34 global $CFG, $DB; 35 36 $dbman = $DB->get_manager(); 37 38 if ($oldversion < 2014020301) { 39 require_once($CFG->dirroot . '/repository/lib.php'); 40 require_once($CFG->dirroot . '/repository/alfresco/db/upgradelib.php'); 41 42 $params = array(); 43 $params['context'] = array(); 44 $params['onlyvisible'] = false; 45 $params['type'] = 'alfresco'; 46 $instances = repository::get_instances($params); 47 48 // Notify the admin about the migration process if they are using the repo. 49 if (!empty($instances)) { 50 repository_alfresco_admin_security_key_notice(); 51 } 52 53 upgrade_plugin_savepoint(true, 2014020301, 'repository', 'alfresco'); 54 } 55 56 // Moodle v2.7.0 release upgrade line. 57 // Put any upgrade step following this. 58 59 // Moodle v2.8.0 release upgrade line. 60 // Put any upgrade step following this. 61 62 return true; 63 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |