Detailed Description
Definition at line 33 of file lib.php.
Constructor & Destructor Documentation
Constructor for the plugin. In addition to calling the parent constructor, we define and 'fix' some settings depending on the real settings the admin defined.
Definition at line 43 of file lib.php.
Member Function Documentation
| create_course |
( |
$ |
course_ext, |
|
|
$ |
skip_fix_course_sortorder = false |
|
) |
| |
Will create the moodle course from the template course_ext is an array as obtained from ldap -- flattened somewhat NOTE: if you pass true for $skip_fix_course_sortorder you will want to call fix_course_sortorder() after your are done with course creation.
- Parameters:
-
| array | $course_ext | |
| boolean | $skip_fix_course_sortorder | |
- Returns:
- mixed false on error, id for the newly created course otherwise.
Definition at line 882 of file lib.php.
Return multidimensional array with details of user courses (at least dn and idnumber).
- Parameters:
-
| resource | $ldapconnection | a valid LDAP connection. |
| string | $memberuid | user idnumber (without magic quotes). |
| object | role is a record from the mdl_role table. |
- Returns:
- array
Definition at line 636 of file lib.php.
Is it possible to delete enrol instance via standard UI?
- Parameters:
-
- Returns:
- bool
Reimplemented from enrol_plugin.
Definition at line 111 of file lib.php.
Disconnects from a LDAP server
Definition at line 619 of file lib.php.
Connect to the LDAP server, using the plugin configured settings. It's actually a wrapper around ldap_connect_moodle()
- Returns:
- mixed A valid LDAP connection or false.
Definition at line 584 of file lib.php.
Given a group name (either a RDN or a DN), get the list of users belonging to that group. If the group has nested groups, expand all the intermediate groups and return the full list of users that directly or indirectly belong to the group.
- Parameters:
-
| resource | $ldapconnection | a valid LDAP connection |
| string | $group | the group name to search |
| string | $memberattibute | the attribute that holds the members of the group |
- Returns:
- array the list of users belonging to the group. If $group is not actually a group, returns array($group).
Definition at line 831 of file lib.php.
Find the groups a given distinguished name belongs to, both directly and indirectly via nested groups membership.
- Parameters:
-
| resource | $ldapconnection | a valid LDAP connection |
| string | $memberdn | distinguished name to search |
- Returns:
- array with member groups' distinguished names (can be emtpy)
Definition at line 774 of file lib.php.
Recursively process the groups the given member distinguished name belongs to, adding them to the already processed groups array.
- Parameters:
-
| resource | $ldapconnection | |
| string | $memberdn | distinguished name to search |
| array | reference &$membergroups array with already found groups, where we'll put the newly found groups. |
Definition at line 791 of file lib.php.
Search specified contexts for the specified userid and return the user dn like: cn=username,ou=suborg,o=org. It's actually a wrapper around ldap_find_userdn().
- Parameters:
-
| resource | $ldapconnection | a valid LDAP connection |
| string | $userid | the userid to search for (in external LDAP encoding, no magic quotes). |
- Returns:
- mixed the user dn or false
Definition at line 754 of file lib.php.
Forces synchronisation of all enrolments with LDAP server. It creates courses if the plugin is configured to do so.
- Returns:
- void
Definition at line 299 of file lib.php.
Forces synchronisation of user enrolments with LDAP server. It creates courses if the plugin is configured to do so.
- Parameters:
-
- Returns:
- void
Reimplemented from enrol_plugin.
Definition at line 131 of file lib.php.
Field Documentation
$enrol_localcoursefield = 'idnumber' [protected] |
$enroltype = 'enrol_ldap' [protected] |
$errorlogtag = '[ENROL LDAP] ' [protected] |
The documentation for this class was generated from the following file:
- C:/xampp/htdocs/moodle/enrol/ldap/lib.php