ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.TableGUIRequest.php
Go to the documentation of this file.
1 <?php
2 
19 namespace 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,
39  $refinery,
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 }
Interface Observer Contains several chained tasks and infos about them.
$http
Definition: deliver.php:30
trait BaseGUIRequest
Base gui request wrapper.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getNavPar(string $np, int $nr=0)
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.
Builds data types.
Definition: Factory.php:35
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
__construct(\ILIAS\HTTP\Services $http, \ILIAS\Refinery\Factory $refinery, ?array $passed_query_params=null, ?array $passed_post_data=null)