ILIAS  release_7 Revision v7.30-3-g800a261c036
ilTermsOfServiceHistorizedDocument Class Reference

Class ilTermsOfServiceHistorizedDocument. More...

+ Inheritance diagram for ilTermsOfServiceHistorizedDocument:
+ Collaboration diagram for ilTermsOfServiceHistorizedDocument:

Public Member Functions

 __construct (ilTermsOfServiceAcceptanceEntity $entity, ilTermsOfServiceAcceptanceHistoryCriteriaBag $criteria, ilTermsOfServiceCriterionTypeFactoryInterface $criterionTypeFactory)
 ilTermsOfServiceHistorizedDocument constructor. More...
 
 content ()
 
 title ()
 
 id ()
 
 criteria ()
 

Private Attributes

 $entity
 
 $criteria
 
 $criterionTypeFactory
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ content()

ilTermsOfServiceHistorizedDocument::content ( )

Implements ilTermsOfServiceSignableDocument.

Definition at line 36 of file class.ilTermsOfServiceHistorizedDocument.php.

36  : string
37  {
38  return $this->entity->getTitle();
39  }

◆ criteria()

ilTermsOfServiceHistorizedDocument::criteria ( )

Implements ilTermsOfServiceSignableDocument.

Definition at line 60 of file class.ilTermsOfServiceHistorizedDocument.php.

References $criteria.

Referenced by __construct().

60  : array
61  {
62  $criteria = [];
63  foreach ($this->criteria as $criterion) {
65  $criterion['id'],
66  $criterion['value']
67  );
68  }
69 
70  return $criteria;
71  }
Class ilTermsOfServiceHistorizedCriterion.
+ Here is the caller graph for this function:

◆ id()

ilTermsOfServiceHistorizedDocument::id ( )

Implements ilTermsOfServiceSignableDocument.

Definition at line 52 of file class.ilTermsOfServiceHistorizedDocument.php.

52  : int
53  {
54  return $this->entity->getDocumentId();
55  }

◆ title()

ilTermsOfServiceHistorizedDocument::title ( )

Implements ilTermsOfServiceSignableDocument.

Definition at line 44 of file class.ilTermsOfServiceHistorizedDocument.php.

44  : string
45  {
46  return $this->entity->getTitle();
47  }

Field Documentation

◆ $criteria

ilTermsOfServiceHistorizedDocument::$criteria
private

Definition at line 13 of file class.ilTermsOfServiceHistorizedDocument.php.

Referenced by __construct(), and criteria().

◆ $criterionTypeFactory

ilTermsOfServiceHistorizedDocument::$criterionTypeFactory
private

Definition at line 15 of file class.ilTermsOfServiceHistorizedDocument.php.

Referenced by __construct().

◆ $entity

ilTermsOfServiceHistorizedDocument::$entity
private

Definition at line 11 of file class.ilTermsOfServiceHistorizedDocument.php.

Referenced by __construct().


The documentation for this class was generated from the following file: