ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
CopyrightData.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
26{
27 protected string $full_name;
28 protected ?URI $link;
29 protected ?URI $image_link = null;
30 protected string $image_file = '';
31 protected string $alt_text;
33
34 public function __construct(
35 string $full_name,
36 ?URI $link,
38 string $image_file,
39 string $alt_text,
41 ) {
42 $this->full_name = $full_name;
43 $this->link = $link;
44 $this->alt_text = $alt_text;
45 $this->image_link = $image_link;
46 $this->image_file = $image_file;
47 $this->fall_back_to_default_image = $fall_back_to_default_image;
48 }
49
50 public function fullName(): string
51 {
52 return $this->full_name;
53 }
54
55 public function link(): ?URI
56 {
57 return $this->link;
58 }
59
60 public function hasImage(): bool
61 {
62 return $this->isImageLink() || $this->imageFile() !== '';
63 }
64
65 public function isImageLink(): bool
66 {
67 return !is_null($this->imageLink());
68 }
69
70 public function imageLink(): ?URI
71 {
72 return $this->image_link;
73 }
74
75 public function imageFile(): string
76 {
77 return $this->image_file;
78 }
79
80 public function altText(): string
81 {
82 return $this->alt_text;
83 }
84
85 public function fallBackToDefaultImage(): bool
86 {
88 }
89}
The scope of this class is split ilias-conform URI's into components.
Definition: URI.php:35
__construct(string $full_name, ?URI $link, ?URI $image_link, string $image_file, string $alt_text, bool $fall_back_to_default_image)