ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.AdminGUIRequest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
26{
28
29 public function __construct(
32 ?array $passed_query_params = null,
33 ?array $passed_post_data = null
34 ) {
35 $this->initRequest(
36 $http,
38 $passed_query_params,
39 $passed_post_data
40 );
41 }
42
43 public function getRefId(): int
44 {
45 return $this->int("ref_id");
46 }
47
48 public function getObjId(): int
49 {
50 return $this->int("obj_id");
51 }
52
53 public function getItemRefId(): int
54 {
55 return $this->int("item_ref_id");
56 }
57
58 public function getAdminMode(): string
59 {
60 return $this->str("admin_mode");
61 }
62
63 public function getCType(): string
64 {
65 return $this->str("ctype");
66 }
67
68 public function getCName(): string
69 {
70 return $this->str("cname");
71 }
72
73 public function getSlotId(): string
74 {
75 return $this->str("slot_id");
76 }
77
78 public function getPluginId(): string
79 {
80 return $this->str("plugin_id");
81 }
82
83 public function getJumpToUserId(): int
84 {
85 return $this->int("jmpToUser");
86 }
87
88 public function getNewType(): string
89 {
90 return $this->str("new_type");
91 }
92
93 // @return int[]
94 public function getSelectedIds(): array
95 {
96 $ids = $this->intArray("id");
97 if (count($ids) === 0) {
98 if ($this->getItemRefId() > 0) {
99 return [$this->getItemRefId()];
100 }
101 }
102 return $ids;
103 }
104}
__construct(\ILIAS\HTTP\Services $http, \ILIAS\Refinery\Factory $refinery, ?array $passed_query_params=null, ?array $passed_post_data=null)
Builds data types.
Definition: Factory.php:36
trait BaseGUIRequest
Base gui request wrapper.
$http
Definition: deliver.php:30
initRequest(HTTP\Services $http, Refinery\Factory $refinery, ?array $passed_query_params=null, ?array $passed_post_data=null)
Query params and post data parameters are used for testing.
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.