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

Private Attributes

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

Detailed Description

Definition at line 29 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 
)

Definition at line 55 of file CalendarStaticURLHandler.php.

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

References $context, ILIAS\StaticURL\Response\Factory\can(), and ILIAS\StaticURL\Request\Request\getAdditionalParameters().

+ Here is the call graph for this function:

Field Documentation

◆ BOOKINGS

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

Definition at line 33 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: