|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
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 |
| Profile | $profile |
| 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 (ProfileData $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 31 of file class.ilMemberExport.php.
| ilMemberExport::__construct | ( | int | $a_ref_id, |
| int | $a_type = self::EXPORT_CSV |
||
| ) |
Definition at line 62 of file class.ilMemberExport.php.
References $DIC, ilObject\_lookupType(), ilMemberAgreement\_readByObjId(), ILIAS\Repository\access(), ilPrivacySettings\getInstance(), initGroups(), initMembers(), ILIAS\Repository\lng(), ILIAS\Repository\profile(), and ILIAS\Repository\settings().
Here is the call graph for this function:
|
protected |
Write one column.
Definition at line 170 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 466 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 183 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 492 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:| ilMemberExport::create | ( | ) |
Definition at line 130 of file class.ilMemberExport.php.
References createCSV(), createExcel(), EXPORT_CSV, EXPORT_EXCEL, fetchUsers(), and getExportType().
Referenced by ilPRGMembersExportGUI\exportAssignments().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMemberExport::createCSV | ( | ) |
Definition at line 161 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 152 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 404 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 90 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 144 of file class.ilMemberExport.php.
Referenced by ilPRGMembersExportGUI\exportAssignments().
Here is the caller graph for this function:| ilMemberExport::getExportType | ( | ) |
Definition at line 120 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 105 of file class.ilMemberExport.php.
References $filename.
Referenced by createExcel().
Here is the caller graph for this function:| ilMemberExport::getObjId | ( | ) |
Definition at line 125 of file class.ilMemberExport.php.
References $obj_id.
Referenced by initMembers().
Here is the caller graph for this function:
|
protected |
Definition at line 195 of file class.ilMemberExport.php.
References $privacy, ilCourseDefinedFieldDefinition\_getFields(), ilExportFieldsInfo\_getInstanceByType(), ilObject\_lookupType(), ilPrivacySettings\courseConfirmationRequired(), ilPrivacySettings\getInstance(), ILIAS\Repository\profile(), 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 115 of file class.ilMemberExport.php.
References $type.
Referenced by initMembers(), and readCourseData().
Here is the caller graph for this function:
|
protected |
Definition at line 527 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 517 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 442 of file class.ilMemberExport.php.
References $user_id, 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 458 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 100 of file class.ilMemberExport.php.
|
protected |
Definition at line 230 of file class.ilMemberExport.php.
References $GLOBALS, $groups, 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(), ILIAS\Repository\profile(), 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 48 of file class.ilMemberExport.php.
|
protected |
Definition at line 50 of file class.ilMemberExport.php.
|
protected |
Definition at line 54 of file class.ilMemberExport.php.
|
private |
Definition at line 39 of file class.ilMemberExport.php.
Referenced by getExportType().
|
private |
Definition at line 44 of file class.ilMemberExport.php.
Referenced by getFilename().
|
private |
Definition at line 41 of file class.ilMemberExport.php.
Referenced by initGroups(), and write().
|
private |
Definition at line 42 of file class.ilMemberExport.php.
|
private |
Definition at line 43 of file class.ilMemberExport.php.
|
protected |
Definition at line 46 of file class.ilMemberExport.php.
|
private |
Definition at line 40 of file class.ilMemberExport.php.
|
private |
Definition at line 37 of file class.ilMemberExport.php.
Referenced by getObjId().
|
protected |
Definition at line 53 of file class.ilMemberExport.php.
Referenced by getOrderedExportableFields().
|
protected |
Definition at line 49 of file class.ilMemberExport.php.
|
private |
Definition at line 36 of file class.ilMemberExport.php.
Referenced by getRefId().
|
protected |
Definition at line 52 of file class.ilMemberExport.php.
|
protected |
Definition at line 47 of file class.ilMemberExport.php.
|
private |
Definition at line 38 of file class.ilMemberExport.php.
Referenced by getType().
|
private |
Definition at line 58 of file class.ilMemberExport.php.
|
private |
Definition at line 59 of file class.ilMemberExport.php.
|
private |
Definition at line 57 of file class.ilMemberExport.php.
|
private |
Definition at line 60 of file class.ilMemberExport.php.
|
protected |
Definition at line 55 of file class.ilMemberExport.php.
| const ilMemberExport::EXPORT_CSV = 1 |
Definition at line 33 of file class.ilMemberExport.php.
| const ilMemberExport::EXPORT_EXCEL = 2 |
Definition at line 34 of file class.ilMemberExport.php.
Referenced by addCol(), addRow(), create(), and ilMemberExportGUI\exportExcel().