|
ILIAS
release_8 Revision v8.24
|
Class for generation of member export files. More...
Collaboration diagram for ilMemberExport:Public Member Functions | |
| __construct (int $a_ref_id, int $a_type=self::EXPORT_CSV) | |
| filterUsers (array $a_usr_ids) | |
| setFilename (string $a_file) | |
| getFilename () | |
| getRefId () | |
| getType () | |
| getExportType () | |
| getObjId () | |
| create () | |
| getCSVString () | |
| createExcel () | |
| createCSV () | |
Data Fields | |
| const | EXPORT_CSV = 1 |
| const | EXPORT_EXCEL = 2 |
Protected Member Functions | |
| addCol (string $a_value, int $a_row, int $a_col) | |
| Write one column. More... | |
| addRow () | |
| getOrderedExportableFields () | |
| write () | |
| initMembers () | |
| Init member object. More... | |
| initGroups () | |
Protected Attributes | |
| ilLanguage | $lng |
| ilTree | $tree |
| ilAccessHandler | $access |
| array | $agreement = [] |
| ilUserFormSettings | $settings |
| ilPrivacySettings | $privacy |
| ilCSVWriter | $csv = null |
| ilExcel | $worksheet = null |
Private Member Functions | |
| fetchUsers () | |
| readCourseData (array $a_user_ids) | |
| Read All User related course data. More... | |
| readCourseSpecificFieldsData () | |
| addCourseField (int $a_usr_id, string $a_field, int $row, int $col) | |
| Fill course specific fields. More... | |
| addUserDefinedField (ilUserDefinedData $udf_data, string $a_field, int $row, int $col) | |
| Add user defined fields. More... | |
Private Attributes | |
| int | $ref_id |
| int | $obj_id |
| string | $type |
| int | $export_type |
| ilParticipants | $members |
| array | $groups = [] |
| array | $groups_participants = [] |
| array | $groups_rights = [] |
| string | $filename = null |
| array | $user_ids = array() |
| array | $user_course_data = array() |
| array | $user_course_fields = array() |
| array | $user_profile_data = array() |
Class for generation of member export files.
Definition at line 26 of file class.ilMemberExport.php.
| ilMemberExport::__construct | ( | int | $a_ref_id, |
| int | $a_type = self::EXPORT_CSV |
||
| ) |
Definition at line 56 of file class.ilMemberExport.php.
References $DIC, ilObject\_lookupType(), ilMemberAgreement\_readByObjId(), ILIAS\Repository\access(), ilPrivacySettings\getInstance(), initGroups(), initMembers(), ILIAS\Repository\lng(), and ILIAS\Repository\settings().
Here is the call graph for this function:
|
protected |
Write one column.
Definition at line 163 of file class.ilMemberExport.php.
References EXPORT_CSV, EXPORT_EXCEL, and getExportType().
Referenced by addCourseField(), addUserDefinedField(), and write().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Fill course specific fields.
Definition at line 463 of file class.ilMemberExport.php.
References addCol().
Referenced by write().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 176 of file class.ilMemberExport.php.
References EXPORT_CSV, EXPORT_EXCEL, and getExportType().
Referenced by write().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Add user defined fields.
Definition at line 489 of file class.ilMemberExport.php.
References addCol(), ilUserDefinedData\get(), and ilUserDefinedData\getUserId().
Referenced by write().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMemberExport::create | ( | ) |
Definition at line 123 of file class.ilMemberExport.php.
References createCSV(), createExcel(), EXPORT_CSV, EXPORT_EXCEL, fetchUsers(), and getExportType().
Here is the call graph for this function:| ilMemberExport::createCSV | ( | ) |
Definition at line 154 of file class.ilMemberExport.php.
References write().
Referenced by create().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMemberExport::createExcel | ( | ) |
Definition at line 145 of file class.ilMemberExport.php.
References getFilename(), ILIAS\Repository\lng(), and write().
Referenced by create().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 401 of file class.ilMemberExport.php.
References ilObjUser\_readUsersProfileData(), ilUtil\_sortIds(), filterUsers(), readCourseData(), readCourseSpecificFieldsData(), and ILIAS\Repository\settings().
Referenced by create().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMemberExport::filterUsers | ( | array | $a_usr_ids | ) |
| int[] | $a_usr_ids |
Definition at line 83 of file class.ilMemberExport.php.
References ILIAS\Repository\access().
Referenced by fetchUsers().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMemberExport::getCSVString | ( | ) |
Definition at line 137 of file class.ilMemberExport.php.
| ilMemberExport::getExportType | ( | ) |
Definition at line 113 of file class.ilMemberExport.php.
References $export_type.
Referenced by addCol(), addRow(), and create().
Here is the caller graph for this function:| ilMemberExport::getFilename | ( | ) |
Definition at line 98 of file class.ilMemberExport.php.
References $filename.
Referenced by createExcel().
Here is the caller graph for this function:| ilMemberExport::getObjId | ( | ) |
Definition at line 118 of file class.ilMemberExport.php.
References $obj_id.
Referenced by initMembers().
Here is the caller graph for this function:
|
protected |
Definition at line 188 of file class.ilMemberExport.php.
References $privacy, ilCourseDefinedFieldDefinition\_getFields(), ilUserDefinedFields\_getInstance(), ilExportFieldsInfo\_getInstanceByType(), ilObject\_lookupType(), ilPrivacySettings\courseConfirmationRequired(), ilPrivacySettings\getInstance(), and ILIAS\Repository\settings().
Referenced by write().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMemberExport::getRefId | ( | ) |
| ilMemberExport::getType | ( | ) |
Definition at line 108 of file class.ilMemberExport.php.
References $type.
Referenced by initMembers(), and readCourseData().
Here is the caller graph for this function:
|
protected |
Definition at line 525 of file class.ilMemberExport.php.
References $groups, ilGroupParticipants\_getInstanceByObjId(), and ILIAS\Repository\access().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Init member object.
Definition at line 515 of file class.ilMemberExport.php.
References ilCourseParticipants\_getInstanceByObjId(), ilGroupParticipants\_getInstanceByObjId(), getObjId(), and getType().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Read All User related course data.
| int[] | |
| string |
Definition at line 439 of file class.ilMemberExport.php.
References getType(), ilParticipants\IL_CRS_ADMIN, ilParticipants\IL_CRS_MEMBER, ilParticipants\IL_CRS_TUTOR, ilParticipants\IL_GRP_ADMIN, and ilParticipants\IL_GRP_MEMBER.
Referenced by fetchUsers().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 455 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:| ilMemberExport::setFilename | ( | string | $a_file | ) |
Definition at line 93 of file class.ilMemberExport.php.
|
protected |
Definition at line 224 of file class.ilMemberExport.php.
References $GLOBALS, $groups, ilUserDefinedFields\_getInstance(), ilCourseDefinedFieldDefinition\_lookupName(), addCol(), addCourseField(), addRow(), addUserDefinedField(), ilDatePresentation\formatPeriod(), ILIAS\Survey\Mode\getId(), getOrderedExportableFields(), IL_CAL_DATETIME, IL_CAL_UNIX, ilParticipants\IL_CRS_ADMIN, ilParticipants\IL_CRS_MEMBER, ilParticipants\IL_CRS_TUTOR, ilParticipants\IL_GRP_ADMIN, ilParticipants\IL_GRP_MEMBER, ILIAS\Repository\int(), ILIAS\Repository\lng(), ilBookingEntry\lookupManagedBookingsForObject(), ilObjUser\lookupOrgUnitsRepresentation(), and ilDatePresentation\setUseRelativeDates().
Referenced by createCSV(), and createExcel().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 43 of file class.ilMemberExport.php.
|
protected |
Definition at line 44 of file class.ilMemberExport.php.
|
protected |
Definition at line 48 of file class.ilMemberExport.php.
|
private |
Definition at line 34 of file class.ilMemberExport.php.
Referenced by getExportType().
|
private |
Definition at line 39 of file class.ilMemberExport.php.
Referenced by getFilename().
|
private |
Definition at line 36 of file class.ilMemberExport.php.
Referenced by initGroups(), and write().
|
private |
Definition at line 37 of file class.ilMemberExport.php.
|
private |
Definition at line 38 of file class.ilMemberExport.php.
|
protected |
Definition at line 41 of file class.ilMemberExport.php.
|
private |
Definition at line 35 of file class.ilMemberExport.php.
|
private |
Definition at line 32 of file class.ilMemberExport.php.
Referenced by getObjId().
|
protected |
Definition at line 47 of file class.ilMemberExport.php.
Referenced by getOrderedExportableFields().
|
private |
Definition at line 31 of file class.ilMemberExport.php.
Referenced by getRefId().
|
protected |
Definition at line 46 of file class.ilMemberExport.php.
|
protected |
Definition at line 42 of file class.ilMemberExport.php.
|
private |
Definition at line 33 of file class.ilMemberExport.php.
Referenced by getType().
|
private |
Definition at line 52 of file class.ilMemberExport.php.
|
private |
Definition at line 53 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.
|
protected |
Definition at line 49 of file class.ilMemberExport.php.
| const ilMemberExport::EXPORT_CSV = 1 |
Definition at line 28 of file class.ilMemberExport.php.
| const ilMemberExport::EXPORT_EXCEL = 2 |
Definition at line 29 of file class.ilMemberExport.php.
Referenced by addCol(), addRow(), create(), and ilMemberExportGUI\exportExcel().