ILIAS  release_8 Revision v8.24
class.StandardGUIRequest.php
Go to the documentation of this file.
1<?php
2
19namespace ILIAS\MediaCast;
20
22
24{
26
27 public function __construct(
28 \ILIAS\HTTP\Services $http,
29 \ILIAS\Refinery\Factory $refinery,
30 ?array $passed_query_params = null,
31 ?array $passed_post_data = null
32 ) {
33 $this->initRequest(
34 $http,
38 );
39 }
40
41 public function getRefId(): int
42 {
43 return $this->int("ref_id");
44 }
45
46 public function getUserId(): int
47 {
48 return $this->int("user_id");
49 }
50
51 public function getItemId(): int
52 {
53 return $this->int("item_id");
54 }
55
56 public function getPurpose(): string
57 {
58 return $this->str("purpose");
59 }
60
61 public function getPresentation(): bool
62 {
63 return (bool) $this->int("presentation");
64 }
65
66 public function getEvent(): string
67 {
68 return $this->str("event");
69 }
70
71 public function getPlayer(): string
72 {
73 return $this->str("player");
74 }
75
76 public function getMobId(): int
77 {
78 return $this->int("mob_id");
79 }
80
81 public function getAutoplay(): bool
82 {
83 return (bool) $this->int("autoplay");
84 }
85
87 public function getItemIds(): array
88 {
89 return $this->intArray("item_id");
90 }
91
92 public function getTargetPurpose(): string
93 {
94 return $this->str("target_purpose");
95 }
96
97 public function getTargetFormat(): string
98 {
99 return $this->str("target_format");
100 }
101
102 public function getSeconds(): int
103 {
104 return $this->int("sec");
105 }
106
107 public function getSettingsPurpose(string $purpose): string
108 {
109 return $this->str($purpose);
110 }
111
112 public function getDefaultAccess(): string
113 {
114 return $this->str("defaultaccess");
115 }
116
117 public function getMimeTypes(): string
118 {
119 return $this->str("mimetypes");
120 }
121}
__construct(\ILIAS\HTTP\Services $http, \ILIAS\Refinery\Factory $refinery, ?array $passed_query_params=null, ?array $passed_post_data=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Refinery Factory $refinery
trait BaseGUIRequest
Base gui request wrapper.
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.
Class ChatMainBarProvider \MainMenu\Provider.
$http
Definition: raiseError.php:7