ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
class.ItemBlock.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
29{
30 protected array $objective_ids = [];
31 protected bool $page_embedded = false;
32 protected int $pos = 0;
36 protected array $item_ref_ids = [];
37 protected Block $block;
38 protected string $block_id = "";
39 protected string $render_id = "";
40 protected bool $limit_exhausted = false;
41
42 public function __construct(
43 string $block_id,
45 array $item_ref_ids,
47 array $objective_ids = []
48 ) {
49 $this->block_id = $block_id;
50 $this->render_id = $block_id;
51 $this->block = $block;
52 $this->item_ref_ids = $item_ref_ids;
53 $this->limit_exhausted = $limit_exhausted;
54 $this->objective_ids = $objective_ids;
55 }
56 public function getId(): string
57 {
58 return $this->block_id;
59 }
60
61 public function setRenderId(string $render_id): void
62 {
63 $this->render_id = $render_id;
64 }
65
66 public function getRenderId(): string
67 {
68 return $this->render_id;
69 }
70
71 public function getBlock(): Block
72 {
73 return $this->block;
74 }
75
76 public function getLimitExhausted(): bool
77 {
79 }
80
84 public function getItemRefIds(): array
85 {
87 }
88
92 public function getObjectiveIds(): array
93 {
95 }
96
97 public function setPosition(int $pos): void
98 {
99 $this->pos = $pos;
100 }
101
102 public function getPosition(): int
103 {
104 return $this->pos;
105 }
106
107 public function setPageEmbedded(bool $embedded): void
108 {
109 $this->page_embedded = $embedded;
110 }
111
112 public function getPageEmbedded(): bool
113 {
115 }
116}
__construct(string $block_id, Block $block, array $item_ref_ids, bool $limit_exhausted, array $objective_ids=[])