ILIAS
release_8 Revision v8.19
|
Class for generation of member export files. More...
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().
|
protected |
Write one column.
Definition at line 163 of file class.ilMemberExport.php.
References getExportType().
Referenced by addCourseField(), addUserDefinedField(), and write().
|
private |
Fill course specific fields.
Definition at line 463 of file class.ilMemberExport.php.
References addCol().
Referenced by write().
|
protected |
Definition at line 176 of file class.ilMemberExport.php.
References getExportType().
Referenced by write().
|
private |
Add user defined fields.
Definition at line 489 of file class.ilMemberExport.php.
References addCol(), ilUserDefinedData\get(), and ilUserDefinedData\getUserId().
Referenced by write().
ilMemberExport::create | ( | ) |
Definition at line 123 of file class.ilMemberExport.php.
References createCSV(), createExcel(), fetchUsers(), and getExportType().
ilMemberExport::createCSV | ( | ) |
Definition at line 154 of file class.ilMemberExport.php.
References write().
Referenced by create().
ilMemberExport::createExcel | ( | ) |
Definition at line 145 of file class.ilMemberExport.php.
References getFilename(), ILIAS\Repository\lng(), and write().
Referenced by create().
|
private |
Definition at line 401 of file class.ilMemberExport.php.
References $user_ids, ilObjUser\_readUsersProfileData(), ilUtil\_sortIds(), filterUsers(), readCourseData(), readCourseSpecificFieldsData(), and ILIAS\Repository\settings().
Referenced by create().
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().
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().
ilMemberExport::getFilename | ( | ) |
Definition at line 98 of file class.ilMemberExport.php.
References $filename.
Referenced by createExcel().
ilMemberExport::getObjId | ( | ) |
Definition at line 118 of file class.ilMemberExport.php.
References $obj_id.
Referenced by initMembers().
|
protected |
Definition at line 188 of file class.ilMemberExport.php.
References ilCourseDefinedFieldDefinition\_getFields(), ilUserDefinedFields\_getInstance(), ilExportFieldsInfo\_getInstanceByType(), ilObject\_lookupType(), ilPrivacySettings\courseConfirmationRequired(), ilPrivacySettings\getInstance(), and ILIAS\Repository\settings().
Referenced by write().
ilMemberExport::getRefId | ( | ) |
ilMemberExport::getType | ( | ) |
Definition at line 108 of file class.ilMemberExport.php.
References $type.
Referenced by initMembers(), and readCourseData().
|
protected |
Definition at line 525 of file class.ilMemberExport.php.
References ilGroupParticipants\_getInstanceByObjId(), and ILIAS\Repository\access().
Referenced by __construct().
|
protected |
Init member object.
Definition at line 515 of file class.ilMemberExport.php.
References ilCourseParticipants\_getInstanceByObjId(), ilGroupParticipants\_getInstanceByObjId(), getObjId(), and getType().
Referenced by __construct().
|
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().
|
private |
Definition at line 455 of file class.ilMemberExport.php.
References ilCourseUserData\_getValuesByObjId().
Referenced by fetchUsers().
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, 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().
|
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.
|
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.
|
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.
Referenced by fetchUsers().
|
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 ilMemberExportGUI\exportExcel().