From 6d073119cb8e8cd7f4c51938d8550cbaebd29cf8 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 27 Oct 2022 16:57:05 -0400 Subject: [PATCH] Rough in views for EventData --- .../{Event_DataController.php => EventDataController.php} | 0 web/api/app/Model/{Event_Data.php => EventData.php} | 0 web/api/app/View/EventData/json/add.ctp | 1 + web/api/app/View/EventData/json/edit.ctp | 1 + web/api/app/View/EventData/json/index.ctp | 5 +++++ web/api/app/View/EventData/json/view.ctp | 1 + web/api/app/View/EventData/xml/add.ctp | 2 ++ web/api/app/View/EventData/xml/edit.ctp | 2 ++ web/api/app/View/EventData/xml/index.ctp | 2 ++ web/api/app/View/EventData/xml/view.ctp | 2 ++ 10 files changed, 16 insertions(+) rename web/api/app/Controller/{Event_DataController.php => EventDataController.php} (100%) rename web/api/app/Model/{Event_Data.php => EventData.php} (100%) create mode 100644 web/api/app/View/EventData/json/add.ctp create mode 100644 web/api/app/View/EventData/json/edit.ctp create mode 100644 web/api/app/View/EventData/json/index.ctp create mode 100644 web/api/app/View/EventData/json/view.ctp create mode 100644 web/api/app/View/EventData/xml/add.ctp create mode 100644 web/api/app/View/EventData/xml/edit.ctp create mode 100644 web/api/app/View/EventData/xml/index.ctp create mode 100644 web/api/app/View/EventData/xml/view.ctp diff --git a/web/api/app/Controller/Event_DataController.php b/web/api/app/Controller/EventDataController.php similarity index 100% rename from web/api/app/Controller/Event_DataController.php rename to web/api/app/Controller/EventDataController.php diff --git a/web/api/app/Model/Event_Data.php b/web/api/app/Model/EventData.php similarity index 100% rename from web/api/app/Model/Event_Data.php rename to web/api/app/Model/EventData.php diff --git a/web/api/app/View/EventData/json/add.ctp b/web/api/app/View/EventData/json/add.ctp new file mode 100644 index 000000000..d2d25dc95 --- /dev/null +++ b/web/api/app/View/EventData/json/add.ctp @@ -0,0 +1 @@ +echo json_encode($event_data); diff --git a/web/api/app/View/EventData/json/edit.ctp b/web/api/app/View/EventData/json/edit.ctp new file mode 100644 index 000000000..d2d25dc95 --- /dev/null +++ b/web/api/app/View/EventData/json/edit.ctp @@ -0,0 +1 @@ +echo json_encode($event_data); diff --git a/web/api/app/View/EventData/json/index.ctp b/web/api/app/View/EventData/json/index.ctp new file mode 100644 index 000000000..f96996061 --- /dev/null +++ b/web/api/app/View/EventData/json/index.ctp @@ -0,0 +1,5 @@ +Paginator->params(); + echo json_encode($array); +?> diff --git a/web/api/app/View/EventData/json/view.ctp b/web/api/app/View/EventData/json/view.ctp new file mode 100644 index 000000000..b320feb4d --- /dev/null +++ b/web/api/app/View/EventData/json/view.ctp @@ -0,0 +1 @@ +echo json_encode($event); diff --git a/web/api/app/View/EventData/xml/add.ctp b/web/api/app/View/EventData/xml/add.ctp new file mode 100644 index 000000000..d6a9155e9 --- /dev/null +++ b/web/api/app/View/EventData/xml/add.ctp @@ -0,0 +1,2 @@ +$xml = Xml::fromArray(array('response' => $event_data)); +echo $xml->asXML(); diff --git a/web/api/app/View/EventData/xml/edit.ctp b/web/api/app/View/EventData/xml/edit.ctp new file mode 100644 index 000000000..d6a9155e9 --- /dev/null +++ b/web/api/app/View/EventData/xml/edit.ctp @@ -0,0 +1,2 @@ +$xml = Xml::fromArray(array('response' => $event_data)); +echo $xml->asXML(); diff --git a/web/api/app/View/EventData/xml/index.ctp b/web/api/app/View/EventData/xml/index.ctp new file mode 100644 index 000000000..d6a9155e9 --- /dev/null +++ b/web/api/app/View/EventData/xml/index.ctp @@ -0,0 +1,2 @@ +$xml = Xml::fromArray(array('response' => $event_data)); +echo $xml->asXML(); diff --git a/web/api/app/View/EventData/xml/view.ctp b/web/api/app/View/EventData/xml/view.ctp new file mode 100644 index 000000000..7f64e422f --- /dev/null +++ b/web/api/app/View/EventData/xml/view.ctp @@ -0,0 +1,2 @@ +$xml = Xml::fromArray(array('response' => $event)); +echo $xml->asXML();