ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (int $a_usr_id, int $a_obj_id) | |
setAccepted (bool $a_status) | |
set accepted More... | |
setAcceptanceTime (int $a_timest) | |
set acceptance time More... | |
agreementRequired () | |
Checks whether the agreement is accepted This function return always true if no acceptance is required by global setting. More... | |
isAccepted () | |
getAcceptanceTime () | |
save () | |
save acceptance settings More... | |
delete () | |
Delete entry. More... | |
read () | |
Read user entries. More... | |
Static Public Member Functions | |
static | _readByObjId (int $a_obj_id) |
Read user data by object id. More... | |
static | _hasAgreementsByObjId (int $a_obj_id) |
Check if there is any user agreement. More... | |
static | _hasAgreements () |
Check if there is any user agreement. More... | |
static | _hasAccepted (int $a_usr_id, int $a_obj_id) |
Check if user has accepted agreement. More... | |
static | lookupAcceptedAgreements (int $a_obj_id) |
Lookup users who have accepted the agreement. More... | |
static | _deleteByUser (int $a_usr_id) |
Delete all entries by user. More... | |
static | _deleteByObjId (int $a_obj_id) |
Delete all entries by obj_id. More... | |
static | _reset () |
Reset all. More... | |
static | _resetContainer (int $a_container_id) |
Reset all agreements for a specific container. More... | |
Private Attributes | |
ilDBInterface | $db |
int | $user_id |
int | $obj_id |
string | $type |
ilPrivacySettings | $privacy |
bool | $accepted = false |
int | $acceptance_time = 0 |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning
Definition at line 25 of file class.ilMemberAgreement.php.
ilMemberAgreement::__construct | ( | int | $a_usr_id, |
int | $a_obj_id | ||
) |
Definition at line 35 of file class.ilMemberAgreement.php.
References $DIC, $ilDB, ilCourseDefinedFieldDefinition\_hasFields(), ilObject\_lookupType(), ilPrivacySettings\getInstance(), and read().
|
static |
Delete all entries by obj_id.
Definition at line 162 of file class.ilMemberAgreement.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilObjectCustomUserFieldsGUI\deleteFields(), ilObjectCustomUserFieldsGUI\saveField(), ilObjectCustomUserFieldsGUI\saveFields(), and ilObjectCustomUserFieldsGUI\updateField().
|
static |
|
static |
Check if user has accepted agreement.
Definition at line 108 of file class.ilMemberAgreement.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilObjGroupGUI\checkAgreement(), and ilObjCourseGUI\checkAgreement().
|
static |
Check if there is any user agreement.
Definition at line 93 of file class.ilMemberAgreement.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilCustomUserFieldsGUI\initFieldDefinition(), ilCustomUserFieldsGUI\initForm(), and ilObjPrivacySecurityGUI\initPrivacyForm().
|
static |
Check if there is any user agreement.
Definition at line 77 of file class.ilMemberAgreement.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilObjectCustomUserFieldsGUI\show().
|
static |
Read user data by object id.
Definition at line 56 of file class.ilMemberAgreement.php.
References $DIC, $ilDB, $query, $res, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Referenced by ilMemberExport\__construct().
|
static |
Reset all.
Set all aggrement to 0. This is called after global settings have been modified.
Definition at line 176 of file class.ilMemberAgreement.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilCustomUserFieldsGUI\create(), ilObjPrivacySecurityGUI\save_privacy(), ilObjUserFolderGUI\saveGlobalUserSettingsObject(), and ilCustomUserFieldsGUI\update().
|
static |
ilMemberAgreement::agreementRequired | ( | ) |
Checks whether the agreement is accepted This function return always true if no acceptance is required by global setting.
Definition at line 221 of file class.ilMemberAgreement.php.
References $accepted, and ilCourseDefinedFieldDefinition\_hasFields().
ilMemberAgreement::delete | ( | ) |
ilMemberAgreement::getAcceptanceTime | ( | ) |
Definition at line 237 of file class.ilMemberAgreement.php.
References $acceptance_time.
Referenced by save().
ilMemberAgreement::isAccepted | ( | ) |
Definition at line 232 of file class.ilMemberAgreement.php.
References $accepted.
Referenced by save().
|
static |
Lookup users who have accepted the agreement.
Definition at line 128 of file class.ilMemberAgreement.php.
References $DIC, $ilDB, $query, $res, ilDBConstants\FETCHMODE_ASSOC, and ILIAS\Repository\int().
Referenced by ilBookingReservationsTableGUI\getItems(), ilTrQuery\getUDFAndHandlePrivacy(), and ilParticipantTableGUI\initSettings().
ilMemberAgreement::read | ( | ) |
Read user entries.
Definition at line 272 of file class.ilMemberAgreement.php.
References $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by __construct().
ilMemberAgreement::save | ( | ) |
save acceptance settings
Definition at line 245 of file class.ilMemberAgreement.php.
References $query, getAcceptanceTime(), and isAccepted().
ilMemberAgreement::setAcceptanceTime | ( | int | $a_timest | ) |
set acceptance time
Definition at line 212 of file class.ilMemberAgreement.php.
ilMemberAgreement::setAccepted | ( | bool | $a_status | ) |
set accepted
Definition at line 204 of file class.ilMemberAgreement.php.
Referenced by ilRegistrationGUI\setAccepted().
|
private |
Definition at line 33 of file class.ilMemberAgreement.php.
Referenced by getAcceptanceTime().
|
private |
Definition at line 32 of file class.ilMemberAgreement.php.
Referenced by agreementRequired(), and isAccepted().
|
private |
Definition at line 27 of file class.ilMemberAgreement.php.
|
private |
Definition at line 29 of file class.ilMemberAgreement.php.
|
private |
Definition at line 31 of file class.ilMemberAgreement.php.
|
private |
Definition at line 30 of file class.ilMemberAgreement.php.
|
private |
Definition at line 28 of file class.ilMemberAgreement.php.