ILIAS
eassessment Revision 61809
|
Public Member Functions | |
__construct ($a_usr_id, $a_obj_id) | |
Constructor. | |
setAccepted ($a_status) | |
set accepted | |
setAcceptanceTime ($a_timest) | |
set acceptance time | |
agreementRequired () | |
Checks whether the agreement is accepted This function return always true if no acceptance is required by global setting. | |
isAccepted () | |
Is accepted. | |
getAcceptanceTime () | |
get Acceptance time | |
save () | |
save Acceptance settings | |
delete () | |
Delete entry. | |
read () | |
Read user entries. |
Static Public Member Functions | |
static | _readByObjId ($a_obj_id) |
Read user data by object id. | |
static | _hasAgreementsByObjId ($a_obj_id) |
Check if there is any user agreement. | |
static | _hasAgreements () |
Check if there is any user agreement. | |
static | _hasAccepted ($a_usr_id, $a_obj_id) |
Check if user has accepted agreement. | |
static | lookupAcceptedAgreements ($a_obj_id) |
Lookup users who have accepted the agreement. | |
static | _deleteByUser ($a_usr_id) |
Delete all entries by user. | |
static | _deleteByObjId ($a_obj_id) |
Delete all entries by obj_id. | |
static | _reset () |
Reset all. | |
static | _resetContainer ($a_container_id) |
Reset all agreements for a specific container. |
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.
public
int | usr_id |
int | obj_id |
Definition at line 54 of file class.ilMemberAgreement.php.
References $ilDB, ilPrivacySettings\_getInstance(), ilCourseDefinedFieldDefinition\_hasFields(), ilObject\_lookupType(), and read().
|
static |
Delete all entries by obj_id.
public static
int | obj_id |
Definition at line 205 of file class.ilMemberAgreement.php.
References $ilDB, $query, and $res.
Referenced by ilObjectCustomUserFieldsGUI\deleteFields(), ilObjectCustomUserFieldsGUI\saveFields(), and ilObjectCustomUserFieldsGUI\updateField().
|
static |
Delete all entries by user.
public static
int | user id |
Definition at line 187 of file class.ilMemberAgreement.php.
References $ilDB, $query, and $res.
Referenced by ilCourseTest\testMemberAgreement().
|
static |
Check if user has accepted agreement.
public
Definition at line 142 of file class.ilMemberAgreement.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilObjGroupGUI\checkAgreement(), ilObjCourseGUI\checkAgreement(), and ilCourseTest\testMemberAgreement().
|
static |
Check if there is any user agreement.
public
int | obj_id |
Definition at line 123 of file class.ilMemberAgreement.php.
References $ilDB, $query, and $res.
Referenced by ilObjUserFolderGUI\__showSelectTable(), ilObjUserFolderGUI\__showTextTable(), ilObjUserFolderGUI\__showWysiwygTable(), ilObjPrivacySecurityGUI\showPrivacy(), and ilCourseTest\testMemberAgreement().
|
static |
Check if there is any user agreement.
public
int | obj_id |
Definition at line 103 of file class.ilMemberAgreement.php.
References $ilDB, $query, and $res.
Referenced by ilObjectCustomUserFieldsGUI\show(), and ilCourseTest\testMemberAgreement().
|
static |
Read user data by object id.
public
int | obj_id |
Definition at line 79 of file class.ilMemberAgreement.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilMemberExport\__construct().
|
static |
Reset all.
Set all aggrement to 0. This is called after global settings have been modified.
public
Definition at line 225 of file class.ilMemberAgreement.php.
References $ilDB, $query, and $res.
Referenced by ilObjPrivacySecurityGUI\save_privacy(), ilObjUserFolderGUI\saveFieldObject(), and ilObjUserFolderGUI\saveGlobalUserSettingsObject().
|
static |
Reset all agreements for a specific container.
public static
int | obj_id of container |
Definition at line 242 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.
public
Definition at line 283 of file class.ilMemberAgreement.php.
References ilCourseDefinedFieldDefinition\_hasFields().
ilMemberAgreement::delete | ( | ) |
ilMemberAgreement::getAcceptanceTime | ( | ) |
get Acceptance time
public
Definition at line 311 of file class.ilMemberAgreement.php.
References $acceptance_time.
Referenced by save().
ilMemberAgreement::isAccepted | ( | ) |
Is accepted.
public
Definition at line 299 of file class.ilMemberAgreement.php.
References $accepted.
Referenced by save().
|
static |
Lookup users who have accepted the agreement.
int | $a_obj_id |
Definition at line 160 of file class.ilMemberAgreement.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_ASSOC.
Referenced by ilTrQuery\getUserDataForObject(), ilGroupParticipantsTableGUI\initAcceptedAgreements(), and ilCourseParticipantsTableGUI\initAcceptedAgreements().
ilMemberAgreement::read | ( | ) |
Read user entries.
private
Definition at line 361 of file class.ilMemberAgreement.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by __construct().
ilMemberAgreement::save | ( | ) |
save Acceptance settings
public
Definition at line 322 of file class.ilMemberAgreement.php.
References $ilDB, $query, $res, getAcceptanceTime(), and isAccepted().
ilMemberAgreement::setAcceptanceTime | ( | $a_timest | ) |
set acceptance time
public
int | unix time of acceptance |
Definition at line 272 of file class.ilMemberAgreement.php.
ilMemberAgreement::setAccepted | ( | $a_status | ) |
set accepted
public
bool | status |
Definition at line 260 of file class.ilMemberAgreement.php.
Referenced by ilRegistrationGUI\setAccepted().
|
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.