ILIAS  trunk Revision v12.0_alpha-1540-g00f839d5fa1
ILIAS\Registration\URL\StaticUrlHandler Class Reference
+ Inheritance diagram for ILIAS\Registration\URL\StaticUrlHandler:
+ Collaboration diagram for ILIAS\Registration\URL\StaticUrlHandler:

Public Member Functions

 getNamespace ()
 
 handle (Request $request, Context $context, Factory $response_factory)
 
- Public Member Functions inherited from ILIAS\StaticURL\Handler\BaseHandler
 __construct ()
 
 canHandle (Request $request)
 
- Public Member Functions inherited from ILIAS\StaticURL\Handler\Handler
 __construct ()
 
 getNamespace ()
 
 canHandle (Request $request)
 
 handle (Request $request, Context $context, Factory $response_factory)
 

Data Fields

const string NAMESPACE = 'registration'
 

Detailed Description

Definition at line 30 of file StaticUrlHandler.php.

Member Function Documentation

◆ getNamespace()

ILIAS\Registration\URL\StaticUrlHandler::getNamespace ( )

Implements ILIAS\StaticURL\Handler\Handler.

Definition at line 34 of file StaticUrlHandler.php.

34 : string
35 {
36 return self::NAMESPACE;
37 }

References ILIAS\Registration\URL\StaticUrlHandler\NAMESPACE.

◆ handle()

ILIAS\Registration\URL\StaticUrlHandler::handle ( Request  $request,
Context  $context,
Factory  $response_factory 
)

Implements ILIAS\StaticURL\Handler\Handler.

Definition at line 39 of file StaticUrlHandler.php.

39 : Response
40 {
41 $registration_settings = new \ilRegistrationSettings();
42 if ($registration_settings->getRegistrationType() === \ilRegistrationSettings::IL_REG_DISABLED) {
43 return $response_factory->cannot();
44 }
45
46 return $response_factory->can($context->ctrl()->getLinkTargetByClass(
47 [
48 \ilStartUpGUI::class,
49 \ilAccountRegistrationGUI::class
50 ]
51 ));
52 }

References ILIAS\StaticURL\Response\Factory\can(), ILIAS\StaticURL\Response\Factory\cannot(), ILIAS\StaticURL\Context\ctrl(), and ilRegistrationSettings\IL_REG_DISABLED.

+ Here is the call graph for this function:

Field Documentation

◆ NAMESPACE

const string ILIAS\Registration\URL\StaticUrlHandler::NAMESPACE = 'registration'

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