ILIAS  release_8 Revision v8.24
class.TableGUIRequest.php
Go to the documentation of this file.
1<?php
2
19namespace ILIAS\Table;
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 getExportMode(string $prefix): int
42 {
43 return $this->int($prefix . "_xpt");
44 }
45
46 public function getTemplate(string $prefix): string
47 {
48 return $this->str($prefix . "_tpl");
49 }
50
51 public function getRows(string $prefix): ?int
52 {
53 $rows = $this->str($prefix . "_trows");
54 if ($rows == "") {
55 return null;
56 }
57 return (int) $rows;
58 }
59
60 public function getPostVar(): string
61 {
62 return $this->str("postvar");
63 }
64
65 public function getNavPar(string $np, int $nr = 0): string
66 {
67 if ($nr > 0) {
68 $np .= (string) $nr;
69 }
70 return $this->str($np);
71 }
72
73 public function getFF(string $id): array
74 {
75 return $this->strArray("tblff" . $id);
76 }
77
78 public function getFS(string $id): array
79 {
80 return $this->strArray("tblfs" . $id);
81 }
82
83 public function getFSH(string $id): bool
84 {
85 return (bool) $this->int("tblfsh" . $id);
86 }
87
88 public function getFSF(string $id): bool
89 {
90 return (bool) $this->int("tblfsf" . $id);
91 }
92
93 public function getTemplCreate(): string
94 {
95 return $this->str("tbltplcrt");
96 }
97
98 public function getTemplDelete(): string
99 {
100 return $this->str("tbltpldel");
101 }
102
103 public function getTableId(): string
104 {
105 return $this->str("table_id");
106 }
107
108 public function getUserId(): int
109 {
110 return $this->int("user_id");
111 }
112}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
Builds data types.
Definition: Factory.php:21
getNavPar(string $np, int $nr=0)
__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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ChatMainBarProvider \MainMenu\Provider.
$http
Definition: raiseError.php:7
$rows
Definition: xhr_table.php:10