ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.StandardGUIRequest.php
Go to the documentation of this file.
1 <?php
2 
19 namespace ILIAS\PersonalWorkspace;
20 
22 
24 {
26 
27  public function __construct(
30  ?array $passed_query_params = null,
31  ?array $passed_post_data = null
32  ) {
33  $this->initRequest(
34  $http,
35  $refinery,
38  );
39  }
40 
41  public function getWspId(): int
42  {
43  return $this->int("wsp_id");
44  }
45 
46  public function getRefId(): int
47  {
48  return $this->int("ref_id");
49  }
50 
51  public function getPrtId(): int
52  {
53  return $this->int("prt_id");
54  }
55 
56  public function getBlogGtp(): int
57  {
58  return $this->int("gtp");
59  }
60 
61  public function getBlogEdt(): string
62  {
63  return $this->str("edt");
64  }
65 
66  public function getBackUrl(): string
67  {
68  return $this->str("back_url");
69  }
70 
71  public function getSelectPar(): string
72  {
73  return $this->str("select_par");
74  }
75 
79  public function getItemIds(): array
80  {
81  $ids = $this->intArray("id");
82  if (count($ids) == 0) {
83  $id = $this->int("item_ref_id");
84  if ($id > 0) {
85  $ids = [$id];
86  }
87  }
88  return $ids;
89  }
90 
91  public function getSortation(): int
92  {
93  return $this->int("sortation");
94  }
95 
96  public function getNewType(): string
97  {
98  return $this->str("new_type");
99  }
100 
101  public function getUser(): int
102  {
103  return $this->int("user");
104  }
105 
106  public function getAction(): string
107  {
108  return $this->str("action");
109  }
110 
111  public function getObjId(): int
112  {
113  return $this->int("obj_id");
114  }
115 
116  public function getShareId(): int
117  {
118  return $this->int("shr_id");
119  }
120 
121  public function getNode(): int
122  {
123  return $this->int("node");
124  }
125 
126  public function getPasteExpand(string $mode): string
127  {
128  return $this->str('paste_' . $mode . '_repexpand');
129  }
130 }
Class ChatMainBarProvider .
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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.
__construct(\ILIAS\HTTP\Services $http, \ILIAS\Refinery\Factory $refinery, ?array $passed_query_params=null, ?array $passed_post_data=null)
trait BaseGUIRequest
Base gui request wrapper.
$http
Definition: raiseError.php:7
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
Refinery Factory $refinery