summaryrefslogtreecommitdiff
path: root/src/controller
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2026-01-29 22:51:19 +0100
committerpolo <ordipolo@gmx.fr>2026-01-29 22:51:19 +0100
commite3a42c8342bba0db15e2ca9a78911121e5d539da (patch)
treedf2b669452ba82774d741a4b9e48948b8dc45a0a /src/controller
parentf007bac3b9172711dc0fcca1306270ab99dbd8a4 (diff)
downloadfullcalendar-master.tar.gz
fullcalendar-master.tar.bz2
fullcalendar-master.zip
classe CalendarModalView, contrôles getElementOrThrow et assertElementTypeHEADmaster
Diffstat (limited to 'src/controller')
-rw-r--r--src/controller/calendar.php27
1 files changed, 18 insertions, 9 deletions
diff --git a/src/controller/calendar.php b/src/controller/calendar.php
index c15141a..47dc8b7 100644
--- a/src/controller/calendar.php
+++ b/src/controller/calendar.php
@@ -47,9 +47,9 @@ if($_SERVER['REQUEST_METHOD'] === 'GET' && isset($_GET['action']) && $_GET['acti
47 [ 47 [
48 'id' => 1, 48 'id' => 1,
49 'title' => 'Évènement1', 49 'title' => 'Évènement1',
50 'description' => 'blablabla', 50 'description' => 'non allDay quelques heures',
51 'start' => '2025-06-03T05:00:00Z', // Z indique que l'heure est en UTC 51 'start' => '2026-01-03T05:00:00Z', // Z indique que l'heure est en UTC
52 'end' => '2025-06-03T09:00:00Z', 52 'end' => '2026-01-03T09:00:00Z',
53 'allDay' => false, 53 'allDay' => false,
54 'color' => '#ffa500', // couleur hexa, éviter les couleurs CSS qui ne fonctionnent pas dans value="" en HTML 54 'color' => '#ffa500', // couleur hexa, éviter les couleurs CSS qui ne fonctionnent pas dans value="" en HTML
55 //'url' => 'https://dev.nageurs-bigoudens.fr', // comportement: https://fullcalendar.io/docs/eventClick 55 //'url' => 'https://dev.nageurs-bigoudens.fr', // comportement: https://fullcalendar.io/docs/eventClick
@@ -57,21 +57,30 @@ if($_SERVER['REQUEST_METHOD'] === 'GET' && isset($_GET['action']) && $_GET['acti
57 [ 57 [
58 'id' => 2, 58 'id' => 2,
59 'title' => 'Évènement2', 59 'title' => 'Évènement2',
60 'description' => 'truc machin', 60 'description' => 'non allDay sur plusieurs jours',
61 'start' => '2025-06-06T08:00:00Z', 61 'start' => '2026-01-06T08:00:00Z',
62 'end' => '2025-06-07T08:00:00Z', 62 'end' => '2026-01-07T08:00:00Z',
63 'allDay' => false, 63 'allDay' => false,
64 'color' => '#e01b24', 64 'color' => '#e01b24',
65 ], 65 ],
66 [ 66 [
67 'id' => 3, 67 'id' => 3,
68 'title' => 'Évènement3', 68 'title' => 'Évènement3',
69 'description' => 'ça va chier', 69 'description' => 'allDay un jour',
70 'start' => '2025-06-08', 70 'start' => '2026-01-08',
71 'end' => '2025-06-09', 71 'end' => '2026-01-09',
72 'allDay' => true, // pas d'heure 72 'allDay' => true, // pas d'heure
73 'color' => '#008000', 73 'color' => '#008000',
74 ], 74 ],
75 [
76 'id' => 4,
77 'title' => 'Évènement4',
78 'description' => 'allDay plusieurs jours',
79 'start' => '2026-01-21',
80 'end' => '2026-01-23',
81 'allDay' => true, // pas d'heure
82 'color' => '#0080f0',
83 ],
75 ]; 84 ];
76 85
77 header('Content-Type: application/json'); 86 header('Content-Type: application/json');