ILIAS
Release_4_0_x_branch Revision 61816
|
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 | _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 | |
$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 $ilDB, 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.
References $ilDB, $query, and $res.
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.
References $ilDB, $query, and $res.
Referenced by ilCourseTest\testMemberAgreement().
|
static |
Check if user has accepted agreement.
public
Definition at line 140 of file class.ilCourseAgreement.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilObjCourseGUI\checkAgreement(), and ilCourseTest\testMemberAgreement().
|
static |
Check if there is any user agreement.
public
int | obj_id |
Definition at line 121 of file class.ilCourseAgreement.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 101 of file class.ilCourseAgreement.php.
References $ilDB, $query, and $res.
Referenced by ilCourseUserFieldsGUI\show(), and ilCourseTest\testMemberAgreement().
|
static |
Read user data by object id.
public
int | obj_id |
Definition at line 77 of file class.ilCourseAgreement.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 200 of file class.ilCourseAgreement.php.
References $ilDB, $query, and $res.
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 | ( | ) |
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().
ilCourseAgreement::read | ( | ) |
Read user entries.
private
Definition at line 336 of file class.ilCourseAgreement.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by __construct().
ilCourseAgreement::save | ( | ) |
save Acceptance settings
public
Definition at line 297 of file class.ilCourseAgreement.php.
References $ilDB, $query, $res, 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.