ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.TableGUIRequest.php
Go to the documentation of this file.
1<?php
2
19namespace ILIAS\Table;
20
22
28{
30
31 public function __construct(
34 ?array $passed_query_params = null,
35 ?array $passed_post_data = null
36 ) {
37 $this->initRequest(
38 $http,
40 $passed_query_params,
41 $passed_post_data
42 );
43 }
44
45 public function getExportMode(string $prefix): int
46 {
47 return $this->int($prefix . "_xpt");
48 }
49
50 public function getRows(string $prefix): ?int
51 {
52 $rows = $this->str($prefix . "_trows");
53 if ($rows == "") {
54 return null;
55 }
56 return (int) $rows;
57 }
58
59 public function getPostVar(): string
60 {
61 return $this->str("postvar");
62 }
63
64 public function getNavPar(string $np, int $nr = 0): string
65 {
66 if ($nr > 0) {
67 $np .= (string) $nr;
68 }
69 return $this->str($np);
70 }
71
72 public function getFF(string $id): array
73 {
74 return $this->strArray("tblff" . $id);
75 }
76
77 public function getFS(string $id): array
78 {
79 return $this->strArray("tblfs" . $id);
80 }
81
82 public function getFSH(string $id): bool
83 {
84 return (bool) $this->int("tblfsh" . $id);
85 }
86
87 public function getFSF(string $id): bool
88 {
89 return (bool) $this->int("tblfsf" . $id);
90 }
91
92 public function getTableId(): string
93 {
94 return $this->str("table_id");
95 }
96
97 public function getUserId(): int
98 {
99 return $this->int("user_id");
100 }
101}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
Builds data types.
Definition: Factory.php:36
trait BaseGUIRequest
Base gui request wrapper.
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)
$http
Definition: deliver.php:30
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...
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.