ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Copyright.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
29 
30 class Copyright implements CopyrightInterface
31 {
34 
36 
37  public function __construct(
38  RendererInterface $renderer,
39  IdentifierHandler $identifier_handler,
40  EntryInterface $entry
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()
__construct(RendererInterface $renderer, IdentifierHandler $identifier_handler, EntryInterface $entry)
Definition: Copyright.php:37
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