ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
BuildExportFieldArray.php
Go to the documentation of this file.
1<?php
2
3/*
4 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
5 * Click nbfs://nbhost/SystemFileSystem/Templates/Scripting/EmptyPHP.php to edit this template
6 */
7
8declare(strict_types=1);
9
10namespace ILIAS\User;
11
17
18trait BuildExportFieldArray
19{
24 private function getExportFieldArray(
25 Language $lng,
26 Profile $profile,
27 SettingsImplementation $settings
28 ): array {
29 return array_reduce(
30 array_merge(
31 $profile->getVisibleFields(Context::Export),
32 $settings->getExportableSettings()
33 ),
34 function (array $c, Property $v) use ($lng): array {
35 $c[$v->getIdentifier()] = $v->getLabel($lng);
36 return $c;
37 },
38 [
39 'usr_id' => $lng->txt('usr_id'),
40 'login' => $lng->txt('login'),
41 'last_login' => $lng->txt('last_login'),
42 'last_update' => $lng->txt('last_update'),
43 'create_date' => $lng->txt('create_date'),
44 'time_limit_unlimited' => $lng->txt('time_limit_unlimited'),
45 'time_limit_from' => $lng->txt('time_limit_from'),
46 'time_limit_until' => $lng->txt('time_limit_until'),
47 'time_limit_message' => $lng->txt('time_limit_message'),
48 'active' => $lng->txt('active'),
49 'approve_date' => $lng->txt('approve_date'),
50 'agree_date' => $lng->txt('agree_date'),
51 'auth_mode' => $lng->txt('auth_mode'),
52 'ext_account' => $lng->txt('user_ext_account'),
53 'feedhash' => $lng->txt('feedhash')
54 ]
55 );
56 }
57}
$c
Definition: deliver.php:25
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: UserEvent.php:21
global $lng
Definition: privfeed.php:31