|
ILIAS
release_8 Revision v8.24
|
Class ilTermsOfServiceHelper. More...
Collaboration diagram for ilTermsOfServiceHelper:Public Member Functions | |
| __construct (?ilTermsOfServiceDataGatewayFactory $dataGatewayFactory=null, ?ilTermsOfServiceDocumentEvaluation $termsOfServiceEvaluation=null, ?ilTermsOfServiceCriterionTypeFactoryInterface $criterionTypeFactory=null, ?ilObjTermsOfService $tos=null) | |
| isGloballyEnabled () | |
| deleteAcceptanceHistoryByUser (int $userId) | |
| getCurrentAcceptanceForUser (ilObjUser $user) | |
| getById (int $id) | |
| trackAcceptance (ilObjUser $user, ilTermsOfServiceSignableDocument $document) | |
| resetAcceptance (ilObjUser $user) | |
| isIncludedUser (ilObjUser $user) | |
| hasToResignAcceptance (ilObjUser $user, ilLogger $logger) | |
Static Public Member Functions | |
| static | isEnabled () |
Private Member Functions | |
| getEntityFactory () | |
| getDataGatewayFactory () | |
Class ilTermsOfServiceHelper.
Definition at line 25 of file class.ilTermsOfServiceHelper.php.
| ilTermsOfServiceHelper::__construct | ( | ?ilTermsOfServiceDataGatewayFactory | $dataGatewayFactory = null, |
| ?ilTermsOfServiceDocumentEvaluation | $termsOfServiceEvaluation = null, |
||
| ?ilTermsOfServiceCriterionTypeFactoryInterface | $criterionTypeFactory = null, |
||
| ?ilObjTermsOfService | $tos = null |
||
| ) |
Definition at line 32 of file class.ilTermsOfServiceHelper.php.
References $criterionTypeFactory, $dataGatewayFactory, $DIC, $termsOfServiceEvaluation, $tos, and ilTermsOfServiceDataGatewayFactory\setDatabaseAdapter().
Here is the call graph for this function:| ilTermsOfServiceHelper::deleteAcceptanceHistoryByUser | ( | int | $userId | ) |
| int | $userId |
Definition at line 76 of file class.ilTermsOfServiceHelper.php.
References getDataGatewayFactory(), and getEntityFactory().
Here is the call graph for this function:| ilTermsOfServiceHelper::getById | ( | int | $id | ) |
| int | $id |
Definition at line 102 of file class.ilTermsOfServiceHelper.php.
References $id, getDataGatewayFactory(), and getEntityFactory().
Here is the call graph for this function:| ilTermsOfServiceHelper::getCurrentAcceptanceForUser | ( | ilObjUser | $user | ) |
| ilObjUser | $user |
Definition at line 89 of file class.ilTermsOfServiceHelper.php.
References getDataGatewayFactory(), getEntityFactory(), and ilObject\getId().
Referenced by hasToResignAcceptance().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 222 of file class.ilTermsOfServiceHelper.php.
References $dataGatewayFactory.
Referenced by deleteAcceptanceHistoryByUser(), getById(), getCurrentAcceptanceForUser(), and trackAcceptance().
Here is the caller graph for this function:
|
private |
Definition at line 217 of file class.ilTermsOfServiceHelper.php.
Referenced by deleteAcceptanceHistoryByUser(), getById(), getCurrentAcceptanceForUser(), and trackAcceptance().
Here is the caller graph for this function:Definition at line 163 of file class.ilTermsOfServiceHelper.php.
References ilLogger\debug(), ilObjUser\getAgreeDate(), getCurrentAcceptanceForUser(), ilObject\getId(), ilObjUser\getLogin(), isGloballyEnabled(), and isIncludedUser().
Here is the call graph for this function:
|
static |
Definition at line 62 of file class.ilTermsOfServiceHelper.php.
Referenced by ILIAS\Awareness\User\Collector\collectUsers(), ilObjUser\hasToAcceptTermsOfService(), ilAccountRegistrationGUI\initForm(), ilAccountRegistrationGUI\saveForm(), and ilPersonalProfileGUI\showUserAgreement().
Here is the caller graph for this function:| ilTermsOfServiceHelper::isGloballyEnabled | ( | ) |
Definition at line 67 of file class.ilTermsOfServiceHelper.php.
Referenced by hasToResignAcceptance().
Here is the caller graph for this function:| ilTermsOfServiceHelper::isIncludedUser | ( | ilObjUser | $user | ) |
Definition at line 145 of file class.ilTermsOfServiceHelper.php.
References ANONYMOUS_USER_ID, ilObject\getId(), ilObjUser\getLogin(), ilObjUser\isAnonymous(), and SYSTEM_USER_ID.
Referenced by hasToResignAcceptance().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTermsOfServiceHelper::resetAcceptance | ( | ilObjUser | $user | ) |
Definition at line 139 of file class.ilTermsOfServiceHelper.php.
References ilObjUser\setAgreeDate(), and ilObjUser\update().
Here is the call graph for this function:| ilTermsOfServiceHelper::trackAcceptance | ( | ilObjUser | $user, |
| ilTermsOfServiceSignableDocument | $document | ||
| ) |
| ilObjUser | $user | |
| ilTermsOfServiceSignableDocument | $document |
| ilTermsOfServiceMissingDatabaseAdapterException | |
| ilTermsOfServiceUnexpectedCriteriaBagContentException |
Definition at line 116 of file class.ilTermsOfServiceHelper.php.
References ilTermsOfServiceSignableDocument\content(), ilTermsOfServiceSignableDocument\criteria(), getDataGatewayFactory(), getEntityFactory(), ilObject\getId(), ilObjUser\hasToAcceptTermsOfServiceInSession(), ilTermsOfServiceSignableDocument\id(), ilTermsOfServiceSignableDocument\title(), and ilObjUser\writeAccepted().
Here is the call graph for this function:
|
protected |
Definition at line 29 of file class.ilTermsOfServiceHelper.php.
Referenced by __construct().
|
protected |
Definition at line 27 of file class.ilTermsOfServiceHelper.php.
Referenced by __construct(), and getDataGatewayFactory().
|
protected |
Definition at line 28 of file class.ilTermsOfServiceHelper.php.
Referenced by __construct().
|
protected |
Definition at line 30 of file class.ilTermsOfServiceHelper.php.
Referenced by __construct().