ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ILIAS\Calendar\URL\CalendarStaticURLHandler Class Reference
+ Inheritance diagram for ILIAS\Calendar\URL\CalendarStaticURLHandler:
+ Collaboration diagram for ILIAS\Calendar\URL\CalendarStaticURLHandler:

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)
 

Private Attributes

const CALENDAR_NAMESPACE = 'calendar'
 
const BOOKINGS = 'bookings'
 

Detailed Description

Definition at line 30 of file CalendarStaticURLHandler.php.

Member Function Documentation

◆ getNamespace()

ILIAS\Calendar\URL\CalendarStaticURLHandler::getNamespace ( )

◆ handle()

ILIAS\Calendar\URL\CalendarStaticURLHandler::handle ( Request  $request,
Context  $context,
Factory  $response_factory 
)

Implements ILIAS\StaticURL\Handler\Handler.

Definition at line 56 of file CalendarStaticURLHandler.php.

56 : Response
57 {
58 $additional_params = $request->getAdditionalParameters()[0] ?? '';
59 $uri = match ($additional_params) {
60 self::BOOKINGS => $context->ctrl()->getLinkTargetByClass(
61 [
62 \ilDashboardGUI::class,
63 \ilCalendarPresentationGUI::class,
64 \ilConsultationHoursGUI::class
65 ],
66 'appointments'
67 ),
68 default => $context->ctrl()->getLinkTargetByClass(
69 [
70 \ilDashboardGUI::class
71 ],
72 ''
73 )
74 };
75 return $response_factory->can($uri);
76 }
$request
@ilCtrl_Calls ilObjLearningSequenceContentGUI: ilObjLearningSequenceConditionsGUI
Definition: ltiauth.php:39

References $request, ILIAS\StaticURL\Response\Factory\can(), and ILIAS\StaticURL\Context\ctrl().

+ Here is the call graph for this function:

Field Documentation

◆ BOOKINGS

const ILIAS\Calendar\URL\CalendarStaticURLHandler::BOOKINGS = 'bookings'
private

Definition at line 34 of file CalendarStaticURLHandler.php.

◆ CALENDAR_NAMESPACE

const ILIAS\Calendar\URL\CalendarStaticURLHandler::CALENDAR_NAMESPACE = 'calendar'
private

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