ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
ILIAS\MetaData\Services\CopyrightHelper\Copyright Class Reference
+ Inheritance diagram for ILIAS\MetaData\Services\CopyrightHelper\Copyright:
+ Collaboration diagram for ILIAS\MetaData\Services\CopyrightHelper\Copyright:

Public Member Functions

 __construct (RendererInterface $renderer, IdentifierHandler $identifier_handler, EntryInterface $entry)
 
 isDefault ()
 
 isOutdated ()
 
 identifier ()
 
 title ()
 
 description ()
 
 presentAsUIComponents ()
 The copyright as UI Components, as it should be presented in the UI almost everywhere. More...
 
 presentAsString ()
 The copyright without image in a reduced presentation, for displaying copyright where no UI components can be used (e.g. More...
 

Protected Attributes

RendererInterface $renderer
 
IdentifierHandler $identifier_handler
 
EntryInterface $entry
 

Detailed Description

Definition at line 30 of file Copyright.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\MetaData\Services\CopyrightHelper\Copyright::__construct ( RendererInterface  $renderer,
IdentifierHandler  $identifier_handler,
EntryInterface  $entry 
)

Member Function Documentation

◆ description()

ILIAS\MetaData\Services\CopyrightHelper\Copyright::description ( )

Implements ILIAS\MetaData\Services\CopyrightHelper\CopyrightInterface.

Definition at line 68 of file Copyright.php.

68  : string
69  {
70  return $this->entry->description();
71  }

◆ identifier()

ILIAS\MetaData\Services\CopyrightHelper\Copyright::identifier ( )

Implements ILIAS\MetaData\Services\CopyrightHelper\CopyrightInterface.

Definition at line 58 of file Copyright.php.

58  : string
59  {
60  return $this->identifier_handler->buildIdentifierFromEntryID($this->entry->id());
61  }

◆ isDefault()

ILIAS\MetaData\Services\CopyrightHelper\Copyright::isDefault ( )

Implements ILIAS\MetaData\Services\CopyrightHelper\CopyrightInterface.

Definition at line 48 of file Copyright.php.

48  : bool
49  {
50  return $this->entry->isDefault();
51  }

◆ isOutdated()

ILIAS\MetaData\Services\CopyrightHelper\Copyright::isOutdated ( )

Implements ILIAS\MetaData\Services\CopyrightHelper\CopyrightInterface.

Definition at line 53 of file Copyright.php.

53  : bool
54  {
55  return $this->entry->isOutdated();
56  }

◆ presentAsString()

ILIAS\MetaData\Services\CopyrightHelper\Copyright::presentAsString ( )

The copyright without image in a reduced presentation, for displaying copyright where no UI components can be used (e.g.

exports of tables).

Implements ILIAS\MetaData\Services\CopyrightHelper\CopyrightInterface.

Definition at line 88 of file Copyright.php.

References renderer().

88  : string
89  {
90  return $this->renderer->toString($this->entry->copyrightData());
91  }
renderer()
+ Here is the call graph for this function:

◆ presentAsUIComponents()

ILIAS\MetaData\Services\CopyrightHelper\Copyright::presentAsUIComponents ( )

The copyright as UI Components, as it should be presented in the UI almost everywhere.

If only a string can be returned, it is returned in a legacy UI component.

Returns
Image[]|Link[]|Content[]

Implements ILIAS\MetaData\Services\CopyrightHelper\CopyrightInterface.

Definition at line 79 of file Copyright.php.

References renderer().

79  : array
80  {
81  return $this->renderer->toUIComponents($this->entry->copyrightData());
82  }
renderer()
+ Here is the call graph for this function:

◆ title()

ILIAS\MetaData\Services\CopyrightHelper\Copyright::title ( )

Implements ILIAS\MetaData\Services\CopyrightHelper\CopyrightInterface.

Definition at line 63 of file Copyright.php.

63  : string
64  {
65  return $this->entry->title();
66  }

Field Documentation

◆ $entry

EntryInterface ILIAS\MetaData\Services\CopyrightHelper\Copyright::$entry
protected

◆ $identifier_handler

IdentifierHandler ILIAS\MetaData\Services\CopyrightHelper\Copyright::$identifier_handler
protected

◆ $renderer

RendererInterface ILIAS\MetaData\Services\CopyrightHelper\Copyright::$renderer
protected

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