From 912bb8933f546176a567153fa5b0a2cefb42bf6c Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sun, 22 May 2016 16:41:12 +0200 Subject: [PATCH] #14; Simplification des noms des modules --- config/modules.json | 4 ++-- manager/module/chart.php | 4 ++-- test-charts/all.php | 4 ++-- test-charts/{communication-direction.php => direction.php} | 2 +- test-charts/{communication-type.php => type.php} | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) rename test-charts/{communication-direction.php => direction.php} (97%) rename test-charts/{communication-type.php => type.php} (97%) diff --git a/config/modules.json b/config/modules.json index edbc85a..0a39688 100755 --- a/config/modules.json +++ b/config/modules.json @@ -106,7 +106,7 @@ "chart": { - "communication_direction": { + "direction": { "description": "Renvoie les données pour un graphique sur les sens de communications", "permissions": ["admin"], "parameters": { @@ -114,7 +114,7 @@ } }, - "communication_type": { + "type": { "description": "Renvoie les données pour un graphique sur les types de communications", "permissions": ["admin"], "parameters": { diff --git a/manager/module/chart.php b/manager/module/chart.php index 8e18421..324c97a 100755 --- a/manager/module/chart.php +++ b/manager/module/chart.php @@ -14,7 +14,7 @@ /* RETOURNE UN JEU DE DONNEES POUR LE SENS DE COMMUNICATION (MANQUE/ENTRANT/SORTANT) * */ - public static function communication_direction($params){ + public static function direction($params){ extract($params); $subject = intval($subject); @@ -80,7 +80,7 @@ /* RETOURNE UN JEU DE DONNEES POUR LE TYPE DE COMMUNICATION (APPEL/SMS) * */ - public static function communication_type($params){ + public static function type($params){ extract($params); $subject = intval($subject); diff --git a/test-charts/all.php b/test-charts/all.php index 8256769..62c1b8c 100644 --- a/test-charts/all.php +++ b/test-charts/all.php @@ -66,7 +66,7 @@ =========================================================*/ /* (1) On rédige la requête */ var request = { - path: 'chart/communication_direction', + path: 'chart/direction', subject: 273 } @@ -102,7 +102,7 @@ =========================================================*/ /* (1) On rédige la requête */ var request = { - path: 'chart/communication_type', + path: 'chart/type', subject: 273 } diff --git a/test-charts/communication-direction.php b/test-charts/direction.php similarity index 97% rename from test-charts/communication-direction.php rename to test-charts/direction.php index e38b2c3..e4beee0 100644 --- a/test-charts/communication-direction.php +++ b/test-charts/direction.php @@ -21,7 +21,7 @@ =========================================================*/ /* (1) On rédige la requête */ var request = { - path: 'chart/communication_direction', + path: 'chart/direction', subject: 273 } diff --git a/test-charts/communication-type.php b/test-charts/type.php similarity index 97% rename from test-charts/communication-type.php rename to test-charts/type.php index 89abc92..efca11e 100644 --- a/test-charts/communication-type.php +++ b/test-charts/type.php @@ -21,7 +21,7 @@ =========================================================*/ /* (1) On rédige la requête */ var request = { - path: 'chart/communication_type', + path: 'chart/type', subject: 273 }