ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
ILIAS\Refinery\Encode\Transformation\URL\CalendarStaticURLHandler Class Reference
+ Inheritance diagram for ILIAS\Refinery\Encode\Transformation\URL\CalendarStaticURLHandler:
+ Collaboration diagram for ILIAS\Refinery\Encode\Transformation\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\Refinery\Encode\Transformation\URL\CalendarStaticURLHandler::getNamespace ( )

Definition at line 50 of file CalendarStaticURLHandler.php.

50  : string
51  {
52  return self::CALENDAR_NAMESPACE;
53  }

◆ handle()

ILIAS\Refinery\Encode\Transformation\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

Field Documentation

◆ BOOKINGS

const ILIAS\Refinery\Encode\Transformation\URL\CalendarStaticURLHandler::BOOKINGS = 'bookings'
private

Definition at line 33 of file CalendarStaticURLHandler.php.

◆ CALENDAR_NAMESPACE

const ILIAS\Refinery\Encode\Transformation\URL\CalendarStaticURLHandler::CALENDAR_NAMESPACE = 'calendar'
private

Definition at line 31 of file CalendarStaticURLHandler.php.


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