ILIAS  trunk Revision v12.0_alpha-16-g3e876e53c80
ILIAS\StaticURL\StaticURLConfig Class Reference
+ Inheritance diagram for ILIAS\StaticURL\StaticURLConfig:
+ Collaboration diagram for ILIAS\StaticURL\StaticURLConfig:

Public Member Functions

 get (Config $config)
 
 get (Config $config)
 

Detailed Description

Author
Fabian Schmid fabia.nosp@m.n@sr.nosp@m..solu.nosp@m.tion.nosp@m.s

Definition at line 29 of file StaticURLConfig.php.

Member Function Documentation

◆ get()

ILIAS\StaticURL\StaticURLConfig::get ( Config  $config)

Implements ILIAS\StaticURL\Configuration.

Definition at line 31 of file StaticURLConfig.php.

31 : mixed
32 {
33 return match ($config) {
34 Config::BASE_URL => \ILIAS_HTTP_PATH,
35 Config::REWRITE_POSSIBLE => \ilRobotSettings::getInstance()?->robotSupportEnabled() ?? false,
36 Config::SHORTLINK_NAMESPACE => Handler::SHORTLINK_NAMESPACE,
37 Config::STATIC_LINK_ENDPOINT => $this->get(Config::REWRITE_POSSIBLE)
40 Config::ULTRA_SHORT => false,
41 default => null,
42 };
43 }
static getInstance()
get singleton instance

References ilRobotSettings\getInstance(), ILIAS\StaticURL\Builder\StandardURIBuilder\LONG, and ILIAS\StaticURL\Builder\StandardURIBuilder\SHORT.

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: