ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilWebLinkBaseItem.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
25abstract class ilWebLinkBaseItem
26{
27 protected string $title;
28 protected string $target;
29 protected bool $active;
30
34 protected array $parameters;
35 protected ?string $description;
36
44 public function __construct(
45 string $title,
46 ?string $description,
47 string $target,
48 bool $active,
49 array $parameters
50 ) {
51 $this->title = $title;
52 $this->target = $target;
53 $this->active = $active;
54 $this->description = $description;
55 $this->parameters = $parameters;
56 }
57
58 abstract public function isInternal(): bool;
59
60 public function getTitle(): string
61 {
62 return $this->title;
63 }
64
65 public function getDescription(): ?string
66 {
67 return $this->description;
68 }
69
70 public function getTarget(): string
71 {
72 return $this->target;
73 }
74
75 public function isActive(): bool
76 {
77 return $this->active;
78 }
79
83 public function getParameters(): array
84 {
85 return $this->parameters;
86 }
87}
Base class for Web Link items.
__construct(string $title, ?string $description, string $target, bool $active, array $parameters)