ILIAS  trunk Revision v12.0_alpha-1227-g7ff6d300864
ILIAS\StaticURL\Response\Factory Class Reference
+ Collaboration diagram for ILIAS\StaticURL\Response\Factory:

Public Member Functions

 __construct (private Context $context)
 
 cannot ()
 
 loginFirst ()
 
 can (string $uri_path, bool $shift=false)
 

Detailed Description

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

Definition at line 26 of file Factory.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\StaticURL\Response\Factory::__construct ( private Context  $context)

Definition at line 28 of file Factory.php.

30 {
31 }

Member Function Documentation

◆ can()

◆ cannot()

◆ loginFirst()

ILIAS\StaticURL\Response\Factory::loginFirst ( )

Definition at line 38 of file Factory.php.

38 : MaybeCanHandlerAfterLogin|CannotReach
39 {
40 if ($this->context->isUserLoggedIn()) {
41 return new CannotReach();
42 }
43
44 return new MaybeCanHandlerAfterLogin();
45 }

Referenced by ILIAS\Badge\URL\StaticUrlHandler\handle(), ILIAS\PermanentLink\StaticURLHandler\handle(), ILIAS\Certificate\StaticUrlHandler\handle(), ILIAS\Contact\URL\StaticUrlHandler\handle(), ILIAS\Exercise\PermanentLink\StaticURLHandler\handle(), and ilFileStaticURLHandler\handle().

+ Here is the caller graph for this function:

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