From 1dbd519a93e7cd8cb08bd4c2e129ee4dcd60f69d Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Mon, 24 Oct 2011 09:03:14 +0000 Subject: [PATCH] Ajout service export --- library/WsScore/Export/Versions.ini | 3 +++ library/WsScore/Export/v0.1/Export.ini | 0 library/WsScore/Export/v0.1/Export.php | 34 ++++++++++++++++++++++++++ library/WsScore/Export/v0.1/Types.php | 15 ++++++++++++ library/WsScore/Services.ini | 6 ++++- 5 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 library/WsScore/Export/Versions.ini create mode 100644 library/WsScore/Export/v0.1/Export.ini create mode 100644 library/WsScore/Export/v0.1/Export.php create mode 100644 library/WsScore/Export/v0.1/Types.php diff --git a/library/WsScore/Export/Versions.ini b/library/WsScore/Export/Versions.ini new file mode 100644 index 00000000..d3dd5a9a --- /dev/null +++ b/library/WsScore/Export/Versions.ini @@ -0,0 +1,3 @@ +[0.1] +actif = true; +defaut = true; \ No newline at end of file diff --git a/library/WsScore/Export/v0.1/Export.ini b/library/WsScore/Export/v0.1/Export.ini new file mode 100644 index 00000000..e69de29b diff --git a/library/WsScore/Export/v0.1/Export.php b/library/WsScore/Export/v0.1/Export.php new file mode 100644 index 00000000..94cbc2d7 --- /dev/null +++ b/library/WsScore/Export/v0.1/Export.php @@ -0,0 +1,34 @@ + array( + 'entete' => array("codNaf", "libNaf"), + 'sql' => "SELECT codNaf5 AS codNaf, libNaf5 AS libNaf FROM jo.tabNaf5 UNION SELECT codNaf700 AS codNaf, libNaf700 AS libNaf FROM jo.tabNaf4 ORDER BY codNaf", + ), + ); + + /** + * Retourne la liste des élements disponible + * @return Elements[] + */ + public function getElements() + { + + } + + /** + * Enter description here ... + * @param string $key + * @return string + */ + public function getDataCSV($key) + { + + } + + +} \ No newline at end of file diff --git a/library/WsScore/Export/v0.1/Types.php b/library/WsScore/Export/v0.1/Types.php new file mode 100644 index 00000000..53fcc3db --- /dev/null +++ b/library/WsScore/Export/v0.1/Types.php @@ -0,0 +1,15 @@ +