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

Definition at line 50 of file Factory.php.

Referenced by ILIAS\PermanentLink\StaticURLHandler\handle(), ILIAS\Exercise\PermanentLink\StaticURLHandler\handle(), ilKSDocumentationGotoLink\handle(), ILIAS\Test\StaticURLHandler\handle(), ILIAS\User\StaticURLHandler\handle(), and ilFileStaticURLHandler\handle().

50  : CanHandleWithURIPath
51  {
52  return new CanHandleWithURIPath($uri_path);
53  }
+ Here is the caller graph for this function:

◆ cannot()

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

Definition at line 33 of file Factory.php.

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

33  : CannotHandle
34  {
35  return new CannotHandle();
36  }
+ Here is the caller graph for this function:

◆ loginFirst()

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

Definition at line 38 of file Factory.php.

Referenced by ILIAS\PermanentLink\StaticURLHandler\handle(), ILIAS\Exercise\PermanentLink\StaticURLHandler\handle(), and ilFileStaticURLHandler\handle().

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  }
+ Here is the caller graph for this function:

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