14declare(strict_types=1);
20use ILIAS\Repository\RetrievalBase;
31 protected string $parent_node_name
45 foreach (
$data as $row) {
52 return count($this->collectData());
57 return $field ===
"id";
62 if ($this->data !==
null) {
66 $alias_item = new \ilMediaAliasItem(
67 $this->content_obj->getDomDoc(),
68 $this->content_obj->hier_id,
70 $this->content_obj->getPCId(),
71 $this->parent_node_name
74 foreach ($alias_item->getMapAreas() as $area) {
75 $link = $area[
"Link"] ?? [];
76 $link_type = strtolower($link[
"LinkType"] ??
"");
77 $link_type = match ($link_type) {
83 "id" => (
int) $area[
"Nr"],
84 "title" => $link[
"Title"] ??
"",
85 "shape" => $area[
"Shape"],
86 "coords" => implode(
", ", explode(
",", $area[
"Coords"])),
87 "highlight_mode" => $area[
"HighlightMode"],
88 "highlight_class" => $area[
"HighlightClass"],
89 "link_type" => $link_type,
90 "href" => $link[
"Href"] ??
"",
91 "target" => $link[
"Target"] ??
"",
92 "type" => $link[
"Type"] ??
"",
93 "target_frame" => $link[
"TargetFrame"] ??
""
99 static fn(array $left, array $right):
int => strcasecmp($left[
"title"], $right[
"title"])
102 return $this->data =
$data;
count(array $filter=[], array $parameters=[])
__construct(protected \ilPCInteractiveImage|\ilPCMediaObject $content_obj, protected string $parent_node_name)
getData(array $fields, ?Range $range=null, ?Order $order=null, array $filter=[], array $parameters=[])
isFieldNumeric(string $field)
Both the subject and the direction need to be specified when expressing an order.
A simple class to express a naive range of whole positive numbers.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...