ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.SettingsTemplateGUIRequest.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
21 namespace ILIAS\Administration;
22 
24 
26 {
28 
29  public function __construct(
32  ?array $passed_query_params = null,
33  ?array $passed_post_data = null
34  ) {
35  $this->initRequest(
36  $http,
37  $refinery,
40  );
41  }
42 
43  public function getRefId(): int
44  {
45  return $this->int("ref_id");
46  }
47 
48  public function getTemplateId(): int
49  {
50  return $this->int("templ_id");
51  }
52 
53  public function getTab(string $id): int
54  {
55  return $this->int("tab_" . $id);
56  }
57 
58  public function getSetting(string $id): int
59  {
60  return $this->int("set_" . $id);
61  }
62 
63  public function getValue(string $id): string
64  {
65  return $this->str("value_" . $id);
66  }
67 
68  public function getHide(string $id): bool
69  {
70  return (bool) $this->int("hide_" . $id);
71  }
72 
74  public function getTemplateIds(): array
75  {
76  return $this->intArray("tid");
77  }
78 }
__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...
Class ChatMainBarProvider .
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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.
trait BaseGUIRequest
Base gui request wrapper.
$http
Definition: raiseError.php:7
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
Refinery Factory $refinery