ILIAS  release_7 Revision v7.30-3-g800a261c036
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 
9 {
11  private $entity;
13  private $criteria;
16 
23  public function __construct(
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) {
65  $criterion['id'],
66  $criterion['value']
67  );
68  }
69 
70  return $criteria;
71  }
72 }
Class ilTermsOfServiceHistorizedCriterion.
Class ilTermsOfServiceHistorizedDocument.
__construct(ilTermsOfServiceAcceptanceEntity $entity, ilTermsOfServiceAcceptanceHistoryCriteriaBag $criteria, ilTermsOfServiceCriterionTypeFactoryInterface $criterionTypeFactory)
ilTermsOfServiceHistorizedDocument constructor.
Class ilTermsOfServiceAcceptanceEntity.
Interface ilTermsOfServiceSignableDocument.