ILIAS  release_8 Revision v8.24
class.StandardGUIRequest.php
Go to the documentation of this file.
1<?php
2
19namespace ILIAS\News;
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 getNewsId(): int
47 {
48 $id = $this->int("news_id");
49 if ($id === 0) {
50 $id = $this->int("id");
51 }
52 return $id;
53 }
54
55 public function getNewsPage(): int
56 {
57 return $this->int("news_page");
58 }
59
60 public function getNewsRefId(): int
61 {
62 return $this->int("news_ref_id");
63 }
64
65 public function getNewsContext(): string
66 {
67 return $this->str("news_context");
68 }
69
70 public function getDeleteMedia(): int
71 {
72 return $this->int("media_delete");
73 }
74
75 public function getRenderedNews(): array
76 {
77 return $this->intArray("rendered_news");
78 }
79
80 public function getNewsAction(): string
81 {
82 return $this->str("news_action");
83 }
84
85 public function getId(): int
86 {
87 return $this->int("id");
88 }
89
90 public function getCmd(): string
91 {
92 return $this->str("cmd");
93 }
94
95 public function getDashboardPeriod(): string
96 {
97 return $this->str("news_pd_period");
98 }
99
100 public function getNewsPer(): string
101 {
102 return $this->str("news_per");
103 }
104
105 public function getNewsIds(): array
106 {
107 return $this->intArray("news_id");
108 }
109}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
Builds data types.
Definition: Factory.php:21
__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...
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