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 ()
 @inheritDoc More...
 
 title ()
 @inheritDoc More...
 
 id ()
 @inheritDoc More...
 
 criteria ()
 @inheritDoc More...
 
 content ()
 
 title ()
 
 id ()
 
 criteria ()
 

Private Attributes

 $entity
 
 $criteria
 
 $criterionTypeFactory
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ content()

ilTermsOfServiceHistorizedDocument::content ( )

@inheritDoc

Implements ilTermsOfServiceSignableDocument.

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

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

◆ criteria()

ilTermsOfServiceHistorizedDocument::criteria ( )

@inheritDoc

Implements ilTermsOfServiceSignableDocument.

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

60 : array
61 {
62 $criteria = [];
63 foreach ($this->criteria as $criterion) {
65 $criterion['id'],
66 $criterion['value']
67 );
68 }
69
70 return $criteria;
71 }

References $criteria, and criteria().

Referenced by __construct(), and criteria().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ id()

ilTermsOfServiceHistorizedDocument::id ( )

@inheritDoc

Implements ilTermsOfServiceSignableDocument.

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

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

◆ title()

ilTermsOfServiceHistorizedDocument::title ( )

@inheritDoc

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: