ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Copyright.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
29
31{
33 protected IdentifierHandler $identifier_handler;
34
36
37 public function __construct(
39 IdentifierHandler $identifier_handler,
41 ) {
42 $this->renderer = $renderer;
43 $this->identifier_handler = $identifier_handler;
44
45 $this->entry = $entry;
46 }
47
48 public function isDefault(): bool
49 {
50 return $this->entry->isDefault();
51 }
52
53 public function isOutdated(): bool
54 {
55 return $this->entry->isOutdated();
56 }
57
58 public function identifier(): string
59 {
60 return $this->identifier_handler->buildIdentifierFromEntryID($this->entry->id());
61 }
62
63 public function title(): string
64 {
65 return $this->entry->title();
66 }
67
68 public function description(): string
69 {
70 return $this->entry->description();
71 }
72
79 public function presentAsUIComponents(): array
80 {
81 return $this->renderer->toUIComponents($this->entry->copyrightData());
82 }
83
88 public function presentAsString(): string
89 {
90 return $this->renderer->toString($this->entry->copyrightData());
91 }
92}
renderer()
presentAsUIComponents()
The copyright as UI Components, as it should be presented in the UI almost everywhere.
Definition: Copyright.php:79
presentAsString()
The copyright without image in a reduced presentation, for displaying copyright where no UI component...
Definition: Copyright.php:88
__construct(RendererInterface $renderer, IdentifierHandler $identifier_handler, EntryInterface $entry)
Definition: Copyright.php:37
This describes how an icon could be modified during construction of UI.
Definition: Icon.php:29