ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.StandardGUIRequest.php
Go to the documentation of this file.
1<?php
2
19namespace ILIAS\MediaPool;
20
22
24{
25 use BaseGUIRequest;
26
27 public function __construct(
28 \ILIAS\HTTP\Services $http,
30 ?array $passed_query_params = null,
31 ?array $passed_post_data = null
32 ) {
33 $this->initRequest(
34 $http,
36 $passed_query_params,
37 $passed_post_data
38 );
39 }
40
41 public function getNewType(): string
42 {
43 return $this->str("new_type");
44 }
45
46 public function getMode(): string
47 {
48 return $this->str("mep_mode");
49 }
50
51 public function getExportFormat(): string
52 {
53 return $this->str("format");
54 }
55
56 public function getUploadHash(): string
57 {
58 $hash = $this->str("mep_hash");
59 if ($hash === "") {
60 $hash = $this->str("ilfilehash");
61 }
62 return $hash;
63 }
64
65 public function getItemId(): int
66 {
67 return $this->int("mepitem_id");
68 }
69
71 public function getItemIds(): array
72 {
73 $items = $this->intArray("id");
74 if (count($items) === 0) {
75 $id = $this->int("id");
76 if ($id > 0) {
77 return [$id];
78 }
79 }
80 return $items;
81 }
82
83 public function getRefId(): int
84 {
85 return $this->int("ref_id");
86 }
87
88 public function getOldNr(): int
89 {
90 return $this->int("old_nr");
91 }
92
93 public function getFolderEditMode(): bool
94 {
95 return (bool) $this->int("foldereditmode");
96 }
97
98 public function getForceFilter(): int
99 {
100 return $this->int("force_filter");
101 }
102
103 public function getFolderId($par): int
104 {
105 return $this->int($par);
106 }
107
108 public function getImportLang(): string
109 {
110 return $this->str("import_lang");
111 }
112
114 public function getFiles(): array
115 {
116 return $this->strArray("file");
117 }
118
119 public function getFileAction(): string
120 {
121 return $this->str("action");
122 }
123}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
Builds a Color from either hex- or rgb values.
Definition: Factory.php:31
__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: deliver.php:30
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.
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.