ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilTermsOfServiceHelper. More...
Public Member Functions | |
__construct (\ilDBInterface $database=null, \ilTermsOfServiceDataGatewayFactory $dataGatewayFactory=null) | |
ilTermsOfServiceHelper constructor. More... | |
deleteAcceptanceHistoryByUser (int $userId) | |
getCurrentAcceptanceForUser (\ilObjUser $user) | |
getById (int $id) | |
trackAcceptance (\ilObjUser $user, \ilTermsOfServiceSignableDocument $document) | |
Static Public Member Functions | |
static | isEnabled () |
static | setStatus (bool $status) |
Protected Attributes | |
$database | |
$dataGatewayFactory | |
Private Member Functions | |
getEntityFactory () | |
getDataGatewayFactory () | |
Class ilTermsOfServiceHelper.
Definition at line 8 of file class.ilTermsOfServiceHelper.php.
ilTermsOfServiceHelper::__construct | ( | \ilDBInterface | $database = null , |
\ilTermsOfServiceDataGatewayFactory | $dataGatewayFactory = null |
||
) |
ilTermsOfServiceHelper constructor.
\ilDBInterface | null | $database | |
\ilTermsOfServiceDataGatewayFactory | null | $dataGatewayFactory |
Definition at line 21 of file class.ilTermsOfServiceHelper.php.
References $database, $dataGatewayFactory, and $DIC.
ilTermsOfServiceHelper::deleteAcceptanceHistoryByUser | ( | int | $userId | ) |
int | $userId |
Definition at line 63 of file class.ilTermsOfServiceHelper.php.
References getDataGatewayFactory(), and getEntityFactory().
ilTermsOfServiceHelper::getById | ( | int | $id | ) |
int | $id |
Definition at line 89 of file class.ilTermsOfServiceHelper.php.
References getDataGatewayFactory(), and getEntityFactory().
ilTermsOfServiceHelper::getCurrentAcceptanceForUser | ( | \ilObjUser | $user | ) |
\ilObjUser | $user |
Definition at line 76 of file class.ilTermsOfServiceHelper.php.
References getDataGatewayFactory(), getEntityFactory(), and ilObject\getId().
|
private |
Definition at line 136 of file class.ilTermsOfServiceHelper.php.
References $dataGatewayFactory.
Referenced by deleteAcceptanceHistoryByUser(), getById(), getCurrentAcceptanceForUser(), and trackAcceptance().
|
private |
Definition at line 128 of file class.ilTermsOfServiceHelper.php.
Referenced by deleteAcceptanceHistoryByUser(), getById(), getCurrentAcceptanceForUser(), and trackAcceptance().
|
static |
Definition at line 42 of file class.ilTermsOfServiceHelper.php.
References $DIC.
Referenced by ilAccountRegistrationGUI\__initForm(), ilObjUser\_writeHistory(), ilAwarenessUserCollector\collectUsers(), ilObjUser\hasToAcceptTermsOfService(), ilObjUser\hasToAcceptTermsOfServiceInSession(), ilAccountRegistrationGUI\saveForm(), ilStartUpGUI\showTermsOfService(), ilStartUpGUI\showTermsOfServiceLink(), and ilPersonalProfileGUI\showUserAgreement().
|
static |
bool | $status |
Definition at line 52 of file class.ilTermsOfServiceHelper.php.
References $DIC.
Referenced by ilObjTermsOfService\saveStatus().
ilTermsOfServiceHelper::trackAcceptance | ( | \ilObjUser | $user, |
\ilTermsOfServiceSignableDocument | $document | ||
) |
\ilObjUser | $user | |
\ilTermsOfServiceSignableDocument | $document |
Definition at line 102 of file class.ilTermsOfServiceHelper.php.
References ilTermsOfServiceSignableDocument\content(), ilTermsOfServiceSignableDocument\criteria(), getDataGatewayFactory(), getEntityFactory(), ilObject\getId(), ilObjUser\hasToAcceptTermsOfServiceInSession(), ilTermsOfServiceSignableDocument\id(), ilTermsOfServiceSignableDocument\title(), and ilObjUser\writeAccepted().
|
protected |
Definition at line 11 of file class.ilTermsOfServiceHelper.php.
Referenced by __construct().
|
protected |
Definition at line 14 of file class.ilTermsOfServiceHelper.php.
Referenced by __construct(), and getDataGatewayFactory().