mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-23502 fixed php docs in enrol/database + removed unnecessary caps
This commit is contained in:
parent
465f508826
commit
9232bceb53
@ -18,9 +18,10 @@
|
||||
/**
|
||||
* CLI sync for full external database synchronisation.
|
||||
*
|
||||
* @package enrol_database
|
||||
* @copyright 2010 Petr Skoda {@link http://skodak.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @package enrol
|
||||
* @subpackage database
|
||||
* @copyright 2010 Petr Skoda {@link http://skodak.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
if (isset($_SERVER['REMOTE_ADDR'])) {
|
||||
|
@ -18,28 +18,11 @@
|
||||
/**
|
||||
* Capabilities for database enrolment plugin.
|
||||
*
|
||||
* @package enrol_database
|
||||
* @copyright 2010 Petr Skoda {@link http://skodak.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @package enrol
|
||||
* @subpackage database
|
||||
* @copyright 2010 Petr Skoda {@link http://skodak.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
$capabilities = array(
|
||||
'enrol/database:config' => array(
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'legacy' => array(
|
||||
'manager' => CAP_ALLOW,
|
||||
)
|
||||
),
|
||||
|
||||
'enrol/database:manage' => array(
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'legacy' => array(
|
||||
'manager' => CAP_ALLOW,
|
||||
)
|
||||
),
|
||||
|
||||
);
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
|
@ -18,11 +18,14 @@
|
||||
/**
|
||||
* Database enrolment plugin installation.
|
||||
*
|
||||
* @package enrol_database
|
||||
* @copyright 2010 Petr Skoda {@link http://skodak.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @package enrol
|
||||
* @subpackage database
|
||||
* @copyright 2010 Petr Skoda {@link http://skodak.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
function xmldb_enrol_database_install() {
|
||||
global $CFG, $DB;
|
||||
|
||||
|
@ -23,8 +23,6 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
$string['database:config'] = 'Configure external database enrol instances';
|
||||
$string['database:manage'] = 'Manage external database enrol instances';
|
||||
$string['dbencoding'] = 'Database encoding';
|
||||
$string['dbhost'] = 'Database host';
|
||||
$string['dbhost_desc'] = 'Type database server IP address or host name';
|
||||
|
@ -20,11 +20,14 @@
|
||||
*
|
||||
* This plugin synchronises enrolment and roles with external database table.
|
||||
*
|
||||
* @package enrol_database
|
||||
* @copyright 2010 Petr Skoda {@link http://skodak.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @package enrol
|
||||
* @subpackage database
|
||||
* @copyright 2010 Petr Skoda {@link http://skodak.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
/**
|
||||
* Database enrolment plugin implementation.
|
||||
* @author Petr Skoda - based on code by Martin Dougiamas, Martin Langhoff and others
|
||||
|
@ -18,9 +18,10 @@
|
||||
/**
|
||||
* Database enrolment plugin settings and presets.
|
||||
*
|
||||
* @package enrol_database
|
||||
* @copyright 2010 Petr Skoda {@link http://skodak.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @package enrol
|
||||
* @subpackage database
|
||||
* @copyright 2010 Petr Skoda {@link http://skodak.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
@ -18,10 +18,13 @@
|
||||
/**
|
||||
* Database enrolment plugin version specification.
|
||||
*
|
||||
* @package enrol_database
|
||||
* @copyright 2010 Petr Skoda {@link http://skodak.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @package enrol
|
||||
* @subpackage database
|
||||
* @copyright 2010 Petr Skoda {@link http://skodak.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
$plugin->version = 2010070800;
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
$plugin->version = 2010073100;
|
||||
//TODO: should we add cron sync?
|
Loading…
x
Reference in New Issue
Block a user