ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.InternalGUIService.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Style\Content;
22 
26 
32 {
34 
37 
40 
41  public function __construct(
43  InternalDataService $data_service,
44  InternalDomainService $domain_service
45  ) {
46  $this->data_service = $data_service;
47  $this->domain_service = $domain_service;
48  $this->initGUIServices($DIC);
50  $this->domain_service,
51  $this
52  );
53  $this->image = new ImageUIFactory(
54  $this->domain_service,
55  $this
56  );
57  }
58 
59  public function characteristic(
61  return $this->characteristic;
62  }
63 
64  public function image(
65  ): ImageUIFactory {
66  return $this->image;
67  }
68 
69  public function standardRequest(
70  ?array $passed_query_params = null,
71  ?array $passed_post_data = null
73  return new StandardGUIRequest(
74  $this->http(),
75  $this->domain_service->refinery(),
76  $passed_query_params,
77  $passed_post_data
78  );
79  }
80 
81  // get class name of object settings gui class
82  public function objectSettingsClass(bool $lower = true): string
83  {
84  $class = ilObjectContentStyleSettingsGUI::class;
85  if ($lower) {
86  $class = strtolower($class);
87  }
88  return $class;
89  }
90 
91  // get instance of objecgt settings gui class
92  public function objectSettingsGUI(
93  ?int $selected_style_id,
94  int $ref_id,
95  int $obj_id = 0
98  $this->domain_service,
99  $this,
100  $selected_style_id,
101  $ref_id,
102  $obj_id
103  );
104  }
105 }
objectSettingsGUI(?int $selected_style_id, int $ref_id, int $obj_id=0)
initGUIServices(\ILIAS\DI\Container $DIC)
Content style internal ui factory.
standardRequest(?array $passed_query_params=null, ?array $passed_post_data=null)
__construct(Container $DIC, InternalDataService $data_service, InternalDomainService $domain_service)
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:35
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
$ref_id
Definition: ltiauth.php:65
static http()
Fetches the global http state from ILIAS.
global $DIC
Definition: shib_login.php:22