ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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)
 

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()

ILIAS\StaticURL\Response\Factory::can ( string  $uri_path)

◆ cannot()

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

Definition at line 33 of file Factory.php.

33 : CannotHandle
34 {
35 return new CannotHandle();
36 }

Referenced by ILIAS\PermanentLink\StaticURLHandler\handle(), ILIAS\Certificate\StaticUrlHandler\handle(), ILIAS\Exercise\PermanentLink\StaticURLHandler\handle(), ilFileStaticURLHandler\handle(), and ILIAS\StaticURL\Handler\LegacyGotoHandler\handle().

+ Here is the caller graph for this function:

◆ 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 if (!$this->context->isUserLoggedIn() && !$this->context->isPublicSectionActive()) {
44 return new CannotReach();
45 }
46
47 return new MaybeCanHandlerAfterLogin();
48 }

Referenced by ILIAS\PermanentLink\StaticURLHandler\handle(), ILIAS\Certificate\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: