|
ILIAS
Release_4_0_x_branch Revision 61816
|
Class for generation of member export files. More...
Collaboration diagram for ilMemberExport:Public Member Functions | |
| __construct ($a_ref_id) | |
| Constructor. | |
| create () | |
| Create Export File. | |
| getCSVString () | |
| toString method | |
| createCSV () | |
| Create CSV File. | |
Private Member Functions | |
| fetchUsers () | |
| Fetch all users that will be exported. | |
| readCourseData ($a_user_ids, $a_status= 'member') | |
| Read All User related course data. | |
| readCourseSpecificFieldsData () | |
| Read course specific fields data. | |
| addCourseField ($a_usr_id, $a_field) | |
| fill course specific fields | |
| addUserDefinedField ($udf_data, $a_field) | |
| Add user defined fields. | |
Private Attributes | |
| $ref_id | |
| $obj_id | |
| $course | |
| $members | |
| $lng | |
| $settings | |
| $user_ids = array() | |
| $user_course_data = array() | |
| $user_course_fields = array() | |
| $user_profile_data = array() | |
| $privacy | |
Class for generation of member export files.
/
Definition at line 42 of file class.ilMemberExport.php.
| ilMemberExport::__construct | ( | $a_ref_id | ) |
Constructor.
public
Definition at line 65 of file class.ilMemberExport.php.
References $lng, $obj_id, ilPrivacySettings\_getInstance(), ilCourseParticipants\_getInstanceByObjId(), ilCourseAgreement\_readByObjId(), and ilObjectFactory\getInstanceByRefId().
Here is the call graph for this function:
|
private |
fill course specific fields
private
| int | usr_id |
| string | field |
Definition at line 339 of file class.ilMemberExport.php.
References ilCourseDefinedFieldDefinition\_getFields().
Referenced by createCSV().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Add user defined fields.
private
| object | user defined data object |
| int | field |
Definition at line 367 of file class.ilMemberExport.php.
Referenced by createCSV().
Here is the caller graph for this function:| ilMemberExport::create | ( | ) |
Create Export File.
public
Definition at line 87 of file class.ilMemberExport.php.
References createCSV(), and fetchUsers().
Here is the call graph for this function:| ilMemberExport::createCSV | ( | ) |
Create CSV File.
public
Definition at line 114 of file class.ilMemberExport.php.
References $usr_id, ilCourseDefinedFieldDefinition\_getFields(), ilUserDefinedFields\_getInstance(), ilCourseDefinedFieldDefinition\_lookupName(), addCourseField(), addUserDefinedField(), elseif(), ilFormat\formatUnixTime(), IL_CRS_ADMIN, IL_CRS_MEMBER, and IL_CRS_TUTOR.
Referenced by create().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Fetch all users that will be exported.
private
Definition at line 249 of file class.ilMemberExport.php.
References $user_ids, ilObjUser\_readUsersProfileData(), ilUtil\_sortIds(), readCourseData(), and readCourseSpecificFieldsData().
Referenced by create().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMemberExport::getCSVString | ( | ) |
toString method
public
Definition at line 103 of file class.ilMemberExport.php.
|
private |
Read All User related course data.
private
Definition at line 293 of file class.ilMemberExport.php.
References elseif(), IL_CRS_ADMIN, IL_CRS_MEMBER, and IL_CRS_TUTOR.
Referenced by fetchUsers().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Read course specific fields data.
private
Definition at line 324 of file class.ilMemberExport.php.
References ilCourseUserData\_getValuesByObjId().
Referenced by fetchUsers().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 46 of file class.ilMemberExport.php.
|
private |
Definition at line 49 of file class.ilMemberExport.php.
Referenced by __construct().
|
private |
Definition at line 47 of file class.ilMemberExport.php.
|
private |
Definition at line 45 of file class.ilMemberExport.php.
Referenced by __construct().
|
private |
Definition at line 57 of file class.ilMemberExport.php.
|
private |
Definition at line 44 of file class.ilMemberExport.php.
|
private |
Definition at line 51 of file class.ilMemberExport.php.
|
private |
Definition at line 54 of file class.ilMemberExport.php.
|
private |
Definition at line 55 of file class.ilMemberExport.php.
|
private |
Definition at line 53 of file class.ilMemberExport.php.
Referenced by fetchUsers().
|
private |
Definition at line 56 of file class.ilMemberExport.php.