ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Configuration.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
29final class Configuration
30{
31 public function __construct(
32 private ResourceCollection $collection,
33 private ResourceStakeholder $stakeholder,
34 private string $title,
35 private Mode $mode = Mode::DATA_TABLE,
36 private int $items_per_page = 100,
37 private bool $user_can_upload = false,
38 private bool $user_can_administrate = false,
39 ) {
40 }
41
43 {
44 return $this->collection;
45 }
46
48 {
49 return $this->stakeholder;
50 }
51
52 public function getTitle(): string
53 {
54 return $this->title;
55 }
56
57 public function getDescription(): ?string
58 {
59 return null;
60 }
61
62 public function getItemsPerPage(): int
63 {
64 return $this->items_per_page;
65 }
66
67 public function getMode(): Mode
68 {
69 return $this->mode;
70 }
71
72 public function canUserUpload(): bool
73 {
74 return $this->user_can_upload;
75 }
76
77 public function canUserAdministrate(): bool
78 {
79 return $this->user_can_administrate;
80 }
81}
__construct(private ResourceCollection $collection, private ResourceStakeholder $stakeholder, private string $title, private Mode $mode=Mode::DATA_TABLE, private int $items_per_page=100, private bool $user_can_upload=false, private bool $user_can_administrate=false,)