ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
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 ()
 
 presentAsImageOnly ()
 If the copyright does not have an image, null is returned. More...
 
 presentAsLinkOnly ()
 If the copyright has no link, its full name is returned as a disabled link. More...
 
 presentAsString ()
 The copyright without image in a reduced presentation, for displaying copyright where no UI components can be used (e.g. More...
 
 isDefault ()
 
 isOutdated ()
 
 identifier ()
 
 title ()
 
 description ()
 
 presentAsUIComponents ()
 The copyright as UI Components, as it should be presented in the UI almost everywhere. More...
 
 presentAsImageOnly ()
 The copyright just as its image, for use e.g. More...
 
 presentAsLinkOnly ()
 The copyright just as a link, for use e.g. 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 }

◆ presentAsImageOnly()

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

If the copyright does not have an image, null is returned.

Implements ILIAS\MetaData\Services\CopyrightHelper\CopyrightInterface.

Definition at line 84 of file Copyright.php.

84 : ?Icon
85 {
86 return $this->renderer->toImageOnly($this->entry->copyrightData());
87 }

References renderer().

+ Here is the call graph for this function:

◆ presentAsLinkOnly()

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

If the copyright has no link, its full name is returned as a disabled link.

If it also does not have a full name, null is returned.

Implements ILIAS\MetaData\Services\CopyrightHelper\CopyrightInterface.

Definition at line 93 of file Copyright.php.

93 : ?Link
94 {
95 return $this->renderer->toLinkOnly($this->entry->copyrightData());
96 }

References renderer().

+ Here is the call graph for this function:

◆ 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 98 of file Copyright.php.

98 : string
99 {
100 return $this->renderer->toString($this->entry->copyrightData());
101 }

References renderer().

+ Here is the call graph for this function:

◆ presentAsUIComponents()

ILIAS\MetaData\Services\CopyrightHelper\Copyright::presentAsUIComponents ( )
Returns
Icon[]|Link[]|Content[]

Implements ILIAS\MetaData\Services\CopyrightHelper\CopyrightInterface.

Definition at line 76 of file Copyright.php.

76 : array
77 {
78 return $this->renderer->toUIComponents($this->entry->copyrightData());
79 }

References 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: