|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Collaboration diagram for ilMemberAgreement:Public Member Functions | |
| __construct ($a_usr_id, $a_obj_id) | |
| Constructor. More... | |
| setAccepted ($a_status) | |
| set accepted More... | |
| setAcceptanceTime ($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 () | |
| Is accepted. More... | |
| getAcceptanceTime () | |
| get Acceptance time More... | |
| save () | |
| save Acceptance settings More... | |
| delete () | |
| Delete entry. More... | |
| read () | |
| Read user entries. More... | |
Static Public Member Functions | |
| static | _readByObjId ($a_obj_id) |
| Read user data by object id. More... | |
| static | _hasAgreementsByObjId ($a_obj_id) |
| Check if there is any user agreement. More... | |
| static | _hasAgreements () |
| Check if there is any user agreement. More... | |
| static | _hasAccepted ($a_usr_id, $a_obj_id) |
| Check if user has accepted agreement. More... | |
| static | lookupAcceptedAgreements ($a_obj_id) |
| Lookup users who have accepted the agreement. More... | |
| static | _deleteByUser ($a_usr_id) |
| Delete all entries by user. More... | |
| static | _deleteByObjId ($a_obj_id) |
| Delete all entries by obj_id. More... | |
| static | _reset () |
| Reset all. More... | |
| static | _resetContainer ($a_container_id) |
| Reset all agreements for a specific container. More... | |
Private Attributes | |
| $db | |
| $user_id | |
| $obj_id | |
| $type | |
| $privacy | |
| $accepted = false | |
| $acceptance_time = 0 | |
Definition at line 35 of file class.ilMemberAgreement.php.
| ilMemberAgreement::__construct | ( | $a_usr_id, | |
| $a_obj_id | |||
| ) |
Constructor.
@access public
| int | usr_id |
| int | obj_id |
Definition at line 54 of file class.ilMemberAgreement.php.
References $DIC, $ilDB, ilPrivacySettings\_getInstance(), ilCourseDefinedFieldDefinition\_hasFields(), ilObject\_lookupType(), and read().
Here is the call graph for this function:
|
static |
Delete all entries by obj_id.
@access public static
| int | obj_id |
Definition at line 216 of file class.ilMemberAgreement.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilObjectCustomUserFieldsGUI\deleteFields(), ilObjectCustomUserFieldsGUI\saveField(), ilObjectCustomUserFieldsGUI\saveFields(), and ilObjectCustomUserFieldsGUI\updateField().
Here is the caller graph for this function:
|
static |
Delete all entries by user.
@access public static
| int | user id |
Definition at line 196 of file class.ilMemberAgreement.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilCourseTest\testMemberAgreement().
Here is the caller graph for this function:
|
static |
Check if user has accepted agreement.
@access public
Definition at line 148 of file class.ilMemberAgreement.php.
References $DIC, $ilDB, $query, $res, ilDBConstants\FETCHMODE_OBJECT, and true.
Referenced by ilObjCourseGUI\checkAgreement(), ilObjGroupGUI\checkAgreement(), and ilCourseTest\testMemberAgreement().
Here is the caller graph for this function:
|
static |
Check if there is any user agreement.
@access public
| int | obj_id |
Definition at line 127 of file class.ilMemberAgreement.php.
References $DIC, $ilDB, $query, $res, and true.
Referenced by ilCustomUserFieldsGUI\initFieldDefinition(), ilCustomUserFieldsGUI\initForm(), ilObjPrivacySecurityGUI\showPrivacy(), and ilCourseTest\testMemberAgreement().
Here is the caller graph for this function:
|
static |
Check if there is any user agreement.
@access public
| int | obj_id |
Definition at line 105 of file class.ilMemberAgreement.php.
References $DIC, $ilDB, $query, $res, and true.
Referenced by ilObjectCustomUserFieldsGUI\show(), and ilCourseTest\testMemberAgreement().
Here is the caller graph for this function:
|
static |
Read user data by object id.
@access public
| int | obj_id |
Definition at line 80 of file class.ilMemberAgreement.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilMemberExport\__construct().
Here is the caller graph for this function:
|
static |
Reset all.
Set all aggrement to 0. This is called after global settings have been modified.
@access public
Definition at line 237 of file class.ilMemberAgreement.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilCustomUserFieldsGUI\create(), ilObjPrivacySecurityGUI\save_privacy(), ilObjUserFolderGUI\saveGlobalUserSettingsObject(), and ilCustomUserFieldsGUI\update().
Here is the caller graph for this function:
|
static |
Reset all agreements for a specific container.
@access public static
| int | obj_id of container |
Definition at line 256 of file class.ilMemberAgreement.php.
| ilMemberAgreement::agreementRequired | ( | ) |
Checks whether the agreement is accepted This function return always true if no acceptance is required by global setting.
@access public
Definition at line 299 of file class.ilMemberAgreement.php.
References ilCourseDefinedFieldDefinition\_hasFields().
Here is the call graph for this function:| ilMemberAgreement::delete | ( | ) |
Delete entry.
@access public
Definition at line 362 of file class.ilMemberAgreement.php.
| ilMemberAgreement::getAcceptanceTime | ( | ) |
get Acceptance time
@access public
Definition at line 326 of file class.ilMemberAgreement.php.
References $acceptance_time.
| ilMemberAgreement::isAccepted | ( | ) |
Is accepted.
@access public
Definition at line 314 of file class.ilMemberAgreement.php.
References $accepted.
Referenced by save().
Here is the caller graph for this function:
|
static |
Lookup users who have accepted the agreement.
| int | $a_obj_id |
Definition at line 168 of file class.ilMemberAgreement.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_ASSOC.
Referenced by ilBookingReservationsTableGUI\getItems(), ilTrQuery\getUDFAndHandlePrivacy(), and ilParticipantTableGUI\initSettings().
Here is the caller graph for this function:| ilMemberAgreement::read | ( | ) |
Read user entries.
@access private
Definition at line 380 of file class.ilMemberAgreement.php.
References $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by __construct().
Here is the caller graph for this function:| ilMemberAgreement::save | ( | ) |
save Acceptance settings
@access public
Definition at line 337 of file class.ilMemberAgreement.php.
References $DIC, $ilDB, $query, and isAccepted().
Here is the call graph for this function:| ilMemberAgreement::setAcceptanceTime | ( | $a_timest | ) |
set acceptance time
@access public
| int | unix time of acceptance |
Definition at line 288 of file class.ilMemberAgreement.php.
| ilMemberAgreement::setAccepted | ( | $a_status | ) |
set accepted
@access public
| bool | status |
Definition at line 276 of file class.ilMemberAgreement.php.
|
private |
Definition at line 45 of file class.ilMemberAgreement.php.
Referenced by getAcceptanceTime().
|
private |
Definition at line 44 of file class.ilMemberAgreement.php.
Referenced by isAccepted().
|
private |
Definition at line 37 of file class.ilMemberAgreement.php.
|
private |
Definition at line 39 of file class.ilMemberAgreement.php.
|
private |
Definition at line 42 of file class.ilMemberAgreement.php.
|
private |
Definition at line 40 of file class.ilMemberAgreement.php.
|
private |
Definition at line 38 of file class.ilMemberAgreement.php.