ILIAS  release_8 Revision v8.24
class.StandardGUIRequest.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
21namespace ILIAS\Block;
22
24
26{
28
34 public function __construct(
35 \ILIAS\HTTP\Services $http,
36 \ILIAS\Refinery\Factory $refinery,
37 ?array $passed_query_params = null,
38 ?array $passed_post_data = null
39 ) {
40 $this->initRequest(
41 $http,
45 );
46 }
47
48 public function getBlockType(): string
49 {
50 return $this->str("block_type");
51 }
52
53 public function getRefId(): int
54 {
55 return $this->int("ref_id");
56 }
57
58 public function getNavPar(string $par): string
59 {
60 return $this->str($par);
61 }
62
63 public function getNavPage(string $par): string
64 {
65 return $this->str($par . "page");
66 }
67
68 public function getColSide(): string
69 {
70 return $this->str("col_side");
71 }
72
73 public function getBlockId(): string
74 {
75 return $this->str("block_id");
76 }
77
78 public function getBlock(): string
79 {
80 return $this->str("block");
81 }
82}
__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