Detailed Description
Database enrolment plugin implementation.
- Author:
- Petr Skoda - based on code by Martin Dougiamas, Martin Langhoff and others http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Definition at line 35 of file lib.php.
Member Function Documentation
| db_get_sql |
( |
$ |
table, |
|
|
array $ |
conditions, |
|
|
array $ |
fields, |
|
|
$ |
distinct = false, |
|
|
$ |
sort = "" |
|
) |
| [protected] |
Tries to make connection to the external database.
- Returns:
- null|ADONewConnection
Definition at line 738 of file lib.php.
Is it possible to delete enrol instance via standard UI?
- Parameters:
-
- Returns:
- bool
Reimplemented from enrol_plugin.
Definition at line 42 of file lib.php.
Performs a full sync with external database.
First it creates new courses if necessary, then enrols and unenrols users.
- Parameters:
-
- Returns:
- int 0 means success, 1 db connect failure, 4 db read failure
Definition at line 557 of file lib.php.
Forces synchronisation of all enrolments with external database.
- Parameters:
-
- Returns:
- int 0 means success, 1 db connect failure, 2 db read failure
Definition at line 250 of file lib.php.
Forces synchronisation of user enrolments with external database, does not create new courses.
- Parameters:
-
- Returns:
- void
Reimplemented from enrol_plugin.
Definition at line 61 of file lib.php.
The documentation for this class was generated from the following file:
- C:/xampp/htdocs/moodle/enrol/database/lib.php