ILIAS
Release_3_10_x_branch Revision 61812
|
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. |
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 | _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 Member Functions | |
read () | |
Read user entries. |
Private Attributes | |
$db | |
$user_id | |
$obj_id | |
$privacy | |
$accepted = false | |
$acceptance_time = 0 |
Definition at line 35 of file class.ilCourseAgreement.php.
ilCourseAgreement::__construct | ( | $a_usr_id, | |
$a_obj_id | |||
) |
Constructor.
public
int | usr_id |
int | obj_id |
Definition at line 53 of file class.ilCourseAgreement.php.
References ilPrivacySettings\_getInstance(), ilCourseDefinedFieldDefinition\_hasFields(), and read().
|
static |
Delete all entries by obj_id.
public static
int | obj_id |
Definition at line 180 of file class.ilCourseAgreement.php.
Referenced by ilCourseUserFieldsGUI\delete(), ilCourseUserFieldsGUI\save(), and ilCourseUserFieldsGUI\updateField().
|
static |
Delete all entries by user.
public static
int | user id |
Definition at line 162 of file class.ilCourseAgreement.php.
|
static |
Check if user has accepted agreement.
public
Definition at line 140 of file class.ilCourseAgreement.php.
References $res, and DB_FETCHMODE_OBJECT.
Referenced by ilObjCourseGUI\checkAgreement().
|
static |
Check if there is any user agreement.
public
int | obj_id |
Definition at line 121 of file class.ilCourseAgreement.php.
References $res.
Referenced by ilObjUserFolderGUI\__showSelectTable(), ilObjUserFolderGUI\__showTextTable(), and ilObjPrivacySecurityGUI\showPrivacy().
|
static |
Check if there is any user agreement.
public
int | obj_id |
Definition at line 101 of file class.ilCourseAgreement.php.
References $res.
Referenced by ilCourseUserFieldsGUI\show().
|
static |
Read user data by object id.
public
int | obj_id |
Definition at line 77 of file class.ilCourseAgreement.php.
References $res, 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 200 of file class.ilCourseAgreement.php.
Referenced by ilObjPrivacySecurityGUI\save_privacy(), ilObjUserFolderGUI\saveFieldObject(), ilObjUserFolderGUI\saveGlobalUserSettingsObject(), and ilObjUserFolderGUI\updateFieldsObject().
|
static |
Reset all agreements for a specific container.
public static
int | obj_id of container |
Definition at line 217 of file class.ilCourseAgreement.php.
ilCourseAgreement::agreementRequired | ( | ) |
Checks whether the agreement is accepted This function return always true if no acceptance is required by global setting.
public
Definition at line 258 of file class.ilCourseAgreement.php.
References ilCourseDefinedFieldDefinition\_hasFields().
ilCourseAgreement::delete | ( | ) |
Delete entry.
public
Definition at line 317 of file class.ilCourseAgreement.php.
ilCourseAgreement::getAcceptanceTime | ( | ) |
get Acceptance time
public
Definition at line 286 of file class.ilCourseAgreement.php.
References $acceptance_time.
Referenced by save().
ilCourseAgreement::isAccepted | ( | ) |
Is accepted.
public
Definition at line 274 of file class.ilCourseAgreement.php.
References $accepted.
Referenced by save().
|
private |
Read user entries.
private
Definition at line 332 of file class.ilCourseAgreement.php.
References $res, and DB_FETCHMODE_OBJECT.
Referenced by __construct().
ilCourseAgreement::save | ( | ) |
save Acceptance settings
public
Definition at line 297 of file class.ilCourseAgreement.php.
References getAcceptanceTime(), and isAccepted().
ilCourseAgreement::setAcceptanceTime | ( | $a_timest | ) |
set acceptance time
public
int | unix time of acceptance |
Definition at line 247 of file class.ilCourseAgreement.php.
ilCourseAgreement::setAccepted | ( | $a_status | ) |
set accepted
public
bool | status |
Definition at line 235 of file class.ilCourseAgreement.php.
Referenced by ilCourseRegistrationGUI\setAccepted().
|
private |
Definition at line 44 of file class.ilCourseAgreement.php.
Referenced by getAcceptanceTime().
|
private |
Definition at line 43 of file class.ilCourseAgreement.php.
Referenced by isAccepted().
|
private |
Definition at line 37 of file class.ilCourseAgreement.php.
|
private |
Definition at line 39 of file class.ilCourseAgreement.php.
|
private |
Definition at line 41 of file class.ilCourseAgreement.php.
|
private |
Definition at line 38 of file class.ilCourseAgreement.php.