ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Profile.php
Go to the documentation of this file.
1<?php
2
19namespace ILIAS\User\Profile;
20
22use ILIAS\User\Profile\Fields\Field as ProfileField;
23
24interface Profile
25{
29 public function getFields(
30 array $groups_to_skip = [],
31 array $fields_to_skip = []
32 ): array;
33
37 public function getVisibleFields(
39 ?\ilObjUser $user = null,
40 array $groups_to_skip = [],
41 array $fields_to_skip = []
42 ): array;
43
44 public function getFieldByIdentifier(string $identifier): ?ProfileField;
45
46 public function addFieldsToForm(
47 \ilPropertyFormGUI $form,
49 bool $do_require,
50 ?\ilObjUser $current_user,
51 array $fields_to_skip = []
53
54 public function addFormValuesToUser(
55 \ilPropertyFormGUI $form,
57 \ilObjUser $current_user
58 ): \ilObjUser;
59
60 public function getDataFor(
61 int $usr_id
62 ): Data;
63
69 public function getDataForMultiple(
70 array $usr_ids
71 ): \Generator;
72
73 public function isProfileIncomplete(\ilObjUser $user): bool;
74
75 public function userFieldVisibleToUser(
76 string $definition_class
77 ): bool;
78
79 public function userFieldEditableByUser(string $definition_class): bool;
80
84 public function getIgnorableRequiredFields(): array;
85
90 public function getAllUserDefinedFields(): array;
97 ): array;
98
102 public function tempStorePicture(
103 \ilPropertyFormGUI $form
105}
User class.
This class represents a property form user interface.
getVisibleUserDefinedFields(Context $context)
getFieldByIdentifier(string $identifier)
userFieldEditableByUser(string $definition_class)
userFieldVisibleToUser(string $definition_class)
addFormValuesToUser(\ilPropertyFormGUI $form, Context $context, \ilObjUser $current_user)
tempStorePicture(\ilPropertyFormGUI $form)
getVisibleFields(Context $context, ?\ilObjUser $user=null, array $groups_to_skip=[], array $fields_to_skip=[])
addFieldsToForm(\ilPropertyFormGUI $form, Context $context, bool $do_require, ?\ilObjUser $current_user, array $fields_to_skip=[])
isProfileIncomplete(\ilObjUser $user)
getDataForMultiple(array $usr_ids)
getFields(array $groups_to_skip=[], array $fields_to_skip=[])
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$context
Definition: webdav.php:31