ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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 getTemplate(string $prefix): string
51  {
52  return $this->str($prefix . "_tpl");
53  }
54 
55  public function getRows(string $prefix): ?int
56  {
57  $rows = $this->str($prefix . "_trows");
58  if ($rows == "") {
59  return null;
60  }
61  return (int) $rows;
62  }
63 
64  public function getPostVar(): string
65  {
66  return $this->str("postvar");
67  }
68 
69  public function getNavPar(string $np, int $nr = 0): string
70  {
71  if ($nr > 0) {
72  $np .= (string) $nr;
73  }
74  return $this->str($np);
75  }
76 
77  public function getFF(string $id): array
78  {
79  return $this->strArray("tblff" . $id);
80  }
81 
82  public function getFS(string $id): array
83  {
84  return $this->strArray("tblfs" . $id);
85  }
86 
87  public function getFSH(string $id): bool
88  {
89  return (bool) $this->int("tblfsh" . $id);
90  }
91 
92  public function getFSF(string $id): bool
93  {
94  return (bool) $this->int("tblfsf" . $id);
95  }
96 
97  public function getTemplCreate(): string
98  {
99  return $this->str("tbltplcrt");
100  }
101 
102  public function getTemplDelete(): string
103  {
104  return $this->str("tbltpldel");
105  }
106 
107  public function getTableId(): string
108  {
109  return $this->str("table_id");
110  }
111 
112  public function getUserId(): int
113  {
114  return $this->int("user_id");
115  }
116 }
Interface Observer Contains several chained tasks and infos about them.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$http
Definition: deliver.php:14
trait BaseGUIRequest
Base gui request wrapper.
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:24
__construct(\ILIAS\HTTP\Services $http, \ILIAS\Refinery\Factory $refinery, ?array $passed_query_params=null, ?array $passed_post_data=null)