ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 bool $limit_exhausted = false;
40
41 public function __construct(
42 string $block_id,
44 array $item_ref_ids,
46 array $objective_ids = []
47 ) {
48 $this->block_id = $block_id;
49 $this->block = $block;
50 $this->item_ref_ids = $item_ref_ids;
51 $this->limit_exhausted = $limit_exhausted;
52 $this->objective_ids = $objective_ids;
53 }
54 public function getId(): string
55 {
56 return $this->block_id;
57 }
58
59 public function getBlock(): Block
60 {
61 return $this->block;
62 }
63
64 public function getLimitExhausted(): bool
65 {
67 }
68
72 public function getItemRefIds(): array
73 {
75 }
76
80 public function getObjectiveIds(): array
81 {
83 }
84
85 public function setPosition(int $pos): void
86 {
87 $this->pos = $pos;
88 }
89
90 public function getPosition(): int
91 {
92 return $this->pos;
93 }
94
95 public function setPageEmbedded(bool $embedded): void
96 {
97 $this->page_embedded = $embedded;
98 }
99
100 public function getPageEmbedded(): bool
101 {
103 }
104}
__construct(string $block_id, Block $block, array $item_ref_ids, bool $limit_exhausted, array $objective_ids=[])