ILIAS  trunk Revision v12.0_alpha-1540-g00f839d5fa1
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 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 
)

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 }

References ILIAS\StaticURL\Response\Factory\can(), ILIAS\StaticURL\Context\ctrl(), 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 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: