ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
class.ilTermsOfServiceHistorizedDocument.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
25
class
ilTermsOfServiceHistorizedDocument
implements
ilTermsOfServiceSignableDocument
26
{
27
private
ilTermsOfServiceAcceptanceEntity
$entity
;
28
private
ilTermsOfServiceAcceptanceHistoryCriteriaBag
$criteria
;
29
30
public
function
__construct
(
31
ilTermsOfServiceAcceptanceEntity
$entity,
32
ilTermsOfServiceAcceptanceHistoryCriteriaBag
$criteria
33
) {
34
$this->entity =
$entity
;
35
$this->
criteria
=
$criteria
;
36
}
37
38
public
function
content
(): string
39
{
40
return
$this->entity->getTitle();
41
}
42
43
public
function
title
(): string
44
{
45
return
$this->entity->getTitle();
46
}
47
48
public
function
id
():
int
49
{
50
return
$this->entity->getDocumentId();
51
}
52
53
public
function
criteria
(): array
54
{
55
return
array_map(
static
function
(array $criterion):
ilTermsOfServiceHistorizedCriterion
{
56
return
new
ilTermsOfServiceHistorizedCriterion
(
57
$criterion[
'id'
],
58
$criterion[
'value'
]
59
);
60
}, $this->
criteria
->getArrayCopy());
61
}
62
}
ilTermsOfServiceHistorizedDocument\$criteria
ilTermsOfServiceAcceptanceHistoryCriteriaBag $criteria
Definition:
class.ilTermsOfServiceHistorizedDocument.php:28
ilTermsOfServiceHistorizedDocument\id
id()
Definition:
class.ilTermsOfServiceHistorizedDocument.php:48
ilTermsOfServiceHistorizedCriterion
Class ilTermsOfServiceHistorizedCriterion.
Definition:
class.ilTermsOfServiceHistorizedCriterion.php:25
ilTermsOfServiceHistorizedDocument\content
content()
Definition:
class.ilTermsOfServiceHistorizedDocument.php:38
ilTermsOfServiceHistorizedDocument\__construct
__construct(ilTermsOfServiceAcceptanceEntity $entity, ilTermsOfServiceAcceptanceHistoryCriteriaBag $criteria)
Definition:
class.ilTermsOfServiceHistorizedDocument.php:30
ilTermsOfServiceHistorizedDocument\$entity
ilTermsOfServiceAcceptanceEntity $entity
Definition:
class.ilTermsOfServiceHistorizedDocument.php:27
ilTermsOfServiceHistorizedDocument
Class ilTermsOfServiceHistorizedDocument.
Definition:
class.ilTermsOfServiceHistorizedDocument.php:25
ilTermsOfServiceHistorizedDocument\title
title()
Definition:
class.ilTermsOfServiceHistorizedDocument.php:43
ilTermsOfServiceAcceptanceHistoryCriteriaBag
Class ilTermsOfServiceAcceptanceHistoryCriteriaBag.
Definition:
class.ilTermsOfServiceAcceptanceHistoryCriteriaBag.php:25
ilTermsOfServiceAcceptanceEntity
Class ilTermsOfServiceAcceptanceEntity.
Definition:
class.ilTermsOfServiceAcceptanceEntity.php:25
ilTermsOfServiceSignableDocument
Interface ilTermsOfServiceSignableDocument.
Definition:
interface.ilTermsOfServiceSignableDocument.php:25
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ilTermsOfServiceHistorizedDocument\criteria
criteria()
Definition:
class.ilTermsOfServiceHistorizedDocument.php:53
Services
TermsOfService
classes
Document
class.ilTermsOfServiceHistorizedDocument.php
Generated on Sun Aug 31 2025 22:02:36 for ILIAS by
1.8.13 (using
Doxyfile
)