ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
class.ilTermsOfServiceHistorizedDocument.php
Go to the documentation of this file.
1
<?php declare(strict_types=1);
2
/* Copyright (c) 1998-2020 ILIAS open source, Extended GPL, see docs/LICENSE */
3
8
class
ilTermsOfServiceHistorizedDocument
implements
ilTermsOfServiceSignableDocument
9
{
11
private
$entity
;
13
private
$criteria
;
15
private
$criterionTypeFactory
;
16
23
public
function
__construct
(
24
ilTermsOfServiceAcceptanceEntity
$entity
,
25
ilTermsOfServiceAcceptanceHistoryCriteriaBag
$criteria
,
26
ilTermsOfServiceCriterionTypeFactoryInterface
$criterionTypeFactory
27
) {
28
$this->entity =
$entity
;
29
$this->
criteria
=
$criteria
;
30
$this->criterionTypeFactory =
$criterionTypeFactory
;
31
}
32
36
public
function
content
() : string
37
{
38
return
$this->entity->getTitle();
39
}
40
44
public
function
title
() : string
45
{
46
return
$this->entity->getTitle();
47
}
48
52
public
function
id
() : int
53
{
54
return
$this->entity->getDocumentId();
55
}
56
60
public
function
criteria
() : array
61
{
62
$criteria
= [];
63
foreach
($this->
criteria
as $criterion) {
64
$criteria
[] =
new
ilTermsOfServiceHistorizedCriterion
(
65
$criterion[
'id'
],
66
$criterion[
'value'
]
67
);
68
}
69
70
return
$criteria
;
71
}
72
}
ilTermsOfServiceHistorizedDocument\id
id()
Definition:
class.ilTermsOfServiceHistorizedDocument.php:52
ilTermsOfServiceHistorizedDocument\$criterionTypeFactory
$criterionTypeFactory
Definition:
class.ilTermsOfServiceHistorizedDocument.php:15
ilTermsOfServiceHistorizedDocument\$entity
$entity
Definition:
class.ilTermsOfServiceHistorizedDocument.php:11
ilTermsOfServiceHistorizedCriterion
Class ilTermsOfServiceHistorizedCriterion.
Definition:
class.ilTermsOfServiceHistorizedCriterion.php:8
ilTermsOfServiceHistorizedDocument\content
content()
Definition:
class.ilTermsOfServiceHistorizedDocument.php:36
ilTermsOfServiceHistorizedDocument
Class ilTermsOfServiceHistorizedDocument.
Definition:
class.ilTermsOfServiceHistorizedDocument.php:8
ilTermsOfServiceHistorizedDocument\$criteria
$criteria
Definition:
class.ilTermsOfServiceHistorizedDocument.php:13
ilTermsOfServiceHistorizedDocument\title
title()
Definition:
class.ilTermsOfServiceHistorizedDocument.php:44
ilTermsOfServiceHistorizedDocument\__construct
__construct(ilTermsOfServiceAcceptanceEntity $entity, ilTermsOfServiceAcceptanceHistoryCriteriaBag $criteria, ilTermsOfServiceCriterionTypeFactoryInterface $criterionTypeFactory)
ilTermsOfServiceHistorizedDocument constructor.
Definition:
class.ilTermsOfServiceHistorizedDocument.php:23
ilTermsOfServiceAcceptanceHistoryCriteriaBag
Class ilTermsOfServiceAcceptanceHistoryCriteriaBag.
Definition:
class.ilTermsOfServiceAcceptanceHistoryCriteriaBag.php:8
ilTermsOfServiceAcceptanceEntity
Class ilTermsOfServiceAcceptanceEntity.
Definition:
class.ilTermsOfServiceAcceptanceEntity.php:8
ilTermsOfServiceSignableDocument
Interface ilTermsOfServiceSignableDocument.
Definition:
interface.ilTermsOfServiceSignableDocument.php:8
ilTermsOfServiceHistorizedDocument\criteria
criteria()
Definition:
class.ilTermsOfServiceHistorizedDocument.php:60
ilTermsOfServiceCriterionTypeFactoryInterface
Interface ilTermsOfServiceCriterionTypeFactoryInterface.
Definition:
interface.ilTermsOfServiceCriterionTypeFactoryInterface.php:8
Services
TermsOfService
classes
Document
class.ilTermsOfServiceHistorizedDocument.php
Generated on Sun Aug 31 2025 21:01:33 for ILIAS by
1.8.13 (using
Doxyfile
)