ILIAS  release_8 Revision v8.23
ilTermsOfServiceHistorizedDocument Class Reference

Class ilTermsOfServiceHistorizedDocument. More...

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

Public Member Functions

 __construct (ilTermsOfServiceAcceptanceEntity $entity, ilTermsOfServiceAcceptanceHistoryCriteriaBag $criteria)
 
 content ()
 
 title ()
 
 id ()
 
 criteria ()
 

Private Attributes

ilTermsOfServiceAcceptanceEntity $entity
 
ilTermsOfServiceAcceptanceHistoryCriteriaBag $criteria
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilTermsOfServiceHistorizedDocument::__construct ( ilTermsOfServiceAcceptanceEntity  $entity,
ilTermsOfServiceAcceptanceHistoryCriteriaBag  $criteria 
)

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

References $criteria, $entity, and criteria().

33  {
34  $this->entity = $entity;
35  $this->criteria = $criteria;
36  }
ilTermsOfServiceAcceptanceHistoryCriteriaBag $criteria
+ Here is the call graph for this function:

Member Function Documentation

◆ content()

ilTermsOfServiceHistorizedDocument::content ( )

Implements ilTermsOfServiceSignableDocument.

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

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

◆ criteria()

ilTermsOfServiceHistorizedDocument::criteria ( )
Returns
ilTermsOfServiceEvaluableCriterion[]

Implements ilTermsOfServiceSignableDocument.

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

Referenced by __construct().

53  : array
54  {
55  return array_map(static function (array $criterion): ilTermsOfServiceHistorizedCriterion {
57  $criterion['id'],
58  $criterion['value']
59  );
60  }, $this->criteria->getArrayCopy());
61  }
+ Here is the caller graph for this function:

◆ id()

ilTermsOfServiceHistorizedDocument::id ( )

Implements ilTermsOfServiceSignableDocument.

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

48  : int
49  {
50  return $this->entity->getDocumentId();
51  }

◆ title()

ilTermsOfServiceHistorizedDocument::title ( )

Implements ilTermsOfServiceSignableDocument.

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

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

Field Documentation

◆ $criteria

ilTermsOfServiceAcceptanceHistoryCriteriaBag ilTermsOfServiceHistorizedDocument::$criteria
private

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

Referenced by __construct().

◆ $entity

ilTermsOfServiceAcceptanceEntity ilTermsOfServiceHistorizedDocument::$entity
private

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

Referenced by __construct().


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