Moodle  2.2.1
http://www.collinsharper.com
enrol_flatfile_plugin Class Reference
Inheritance diagram for enrol_flatfile_plugin:
Collaboration diagram for enrol_flatfile_plugin:

Public Member Functions

 cron ()
 get_roles ()

Protected Member Functions

 process_file ()
 process_buffer ()

Detailed Description

Flatfile enrolment plugin implementation.

Author:
Eugene Venter - based on code by Petr Skoda, Martin Dougiamas, Martin Langhoff and others http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Definition at line 36 of file lib.php.


Member Function Documentation

cron ( )

Called for all enabled enrol plugins that returned true from is_cron_required().

Returns:
void

Reimplemented from enrol_plugin.

Definition at line 53 of file lib.php.

Here is the call graph for this function:

get_roles ( )

Returns a pair of arrays. The first is the set of roleids, indexed by their shortnames. The second is the set of shortnames that have mappings, indexed by those mappings.

Returns:
array ($roles, $rolemap)

Definition at line 336 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

process_buffer ( ) [protected]

Definition at line 188 of file lib.php.

Here is the caller graph for this function:

process_file ( ) [protected]

If a line is incorrectly formatted ie does not have 4 comma separated fields then ignore it

check correct formatting of operation field

check correct formatting of role field

Definition at line 61 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations