From bea9900e3d1869fd39b940e40275a9652ff63c08 Mon Sep 17 00:00:00 2001 From: benoitpotier Date: Mon, 10 Apr 2017 17:11:03 +0200 Subject: [PATCH] changement des urls de library --- bin/buildCache.php | 28 ++++++++++----------- bin/buildCodeRatios.php | 10 ++++---- bin/buildLog.php | 2 +- bin/loadCodeRatios.php | 2 +- library/WsScore/Entreprise/v0.7/Service.php | 2 +- library/WsScore/Entreprise/v0.8/Service.php | 4 +-- library/WsScore/Entreprise/v0.9/Service.php | 8 +++--- 7 files changed, 28 insertions(+), 28 deletions(-) diff --git a/bin/buildCache.php b/bin/buildCache.php index 69919335..5c69145a 100644 --- a/bin/buildCache.php +++ b/bin/buildCache.php @@ -61,7 +61,7 @@ if( $opts->generate == 'Tribunaux' ) { $stmt->execute(); $result = $stmt->fetchAll(\PDO::FETCH_OBJ); - $fp = fopen(APPLICATION_PATH . '/../library/Metier/Table/BodaccTribunaux.php','w'); + $fp = fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/BodaccTribunaux.php','w'); fwrite($fp, "generate == 'FctDir' ) { $stmt->execute(); $result = $stmt->fetchAll(\PDO::FETCH_OBJ); - $fp=fopen(APPLICATION_PATH . '/../library/Metier/Table/FctDir.php','w'); + $fp=fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/FctDir.php','w'); fwrite($fp, "generate == 'Evenements' ) { $stmt->execute(); $result = $stmt->fetchAll(\PDO::FETCH_OBJ); - $fp = fopen(APPLICATION_PATH . '/../library/Metier/Table/Evenements.php','w'); + $fp = fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/Evenements.php','w'); fwrite($fp, "generate == 'Devises' ) { $stmt->execute(); $result = $stmt->fetchAll(\PDO::FETCH_OBJ); - $fp = fopen(APPLICATION_PATH . '/../library/Metier/Table/Devises.php','w'); + $fp = fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/Devises.php','w'); fwrite($fp, "generate == 'RncsTribunaux' ) { $stmt->execute(); $result = $stmt->fetchAll(\PDO::FETCH_OBJ); - $fp = fopen(APPLICATION_PATH . '/../library/Metier/Table/RncsTribunaux.php','w'); + $fp = fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/RncsTribunaux.php','w'); fwrite($fp, "generate == 'DevisesInpi' ) { $stmt->execute(); $result = $stmt->fetchAll(\PDO::FETCH_OBJ); - $fp = fopen(APPLICATION_PATH . '/../library/Metier/Table/DevisesInpi.php','w'); + $fp = fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/DevisesInpi.php','w'); fwrite($fp, "generate == 'Jugements' ) { $stmt->execute(); $result = $stmt->fetchAll(\PDO::FETCH_OBJ); - $fp = fopen(APPLICATION_PATH . '/../library/Metier/Table/Jugements.php','w'); + $fp = fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/Jugements.php','w'); fwrite($fp, "generate == 'PaysInpi' ) { $stmt->execute(); $result = $stmt->fetchAll(\PDO::FETCH_OBJ); - $fp = fopen(APPLICATION_PATH . '/../library/Metier/Table/PaysInpi.php','w'); + $fp = fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/PaysInpi.php','w'); fwrite($fp, "generate == 'CodesNaf' ) { $stmt->execute(); $result = $stmt->fetchAll(\PDO::FETCH_OBJ); - $fp = fopen(APPLICATION_PATH . '/../library/Metier/Table/CodesNaf.php','w'); + $fp = fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/CodesNaf.php','w'); fwrite($fp, "generate == 'CodesNace' ) { $stmt->execute(); $result = $stmt->fetchAll(\PDO::FETCH_OBJ); - $fp = fopen(APPLICATION_PATH . '/../library/Metier/Table/CodesNace.php','w'); + $fp = fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/CodesNace.php','w'); fwrite($fp, "generate == 'CodesNafa' ) { $stmt->execute(); $result = $stmt->fetchAll(\PDO::FETCH_OBJ); - $fp = fopen(APPLICATION_PATH . '/../library/Metier/Table/CodesNafa.php','w'); + $fp = fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/CodesNafa.php','w'); fwrite($fp, "generate == 'CodesFJ' ) { $stmt->execute(); $result = $stmt->fetchAll(\PDO::FETCH_OBJ); - $fp = fopen(APPLICATION_PATH . '/../library/Metier/Table/CodesFJ.php','w'); + $fp = fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/CodesFJ.php','w'); fwrite($fp, "generate == 'AffairesTypes' ) { $stmt->execute(); $result = $stmt->fetchAll(\PDO::FETCH_OBJ); - $fp = fopen(APPLICATION_PATH . '/../library/Metier/Table/AffairesTypes.php','w'); + $fp = fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/AffairesTypes.php','w'); fwrite($fp, "generate == 'ProcolDelete' ) { $stmt->execute(); $result = $stmt->fetchAll(\PDO::FETCH_OBJ); - $fp = fopen(APPLICATION_PATH . '/../library/Metier/Defaillance/ProcolDelete.php', 'w'); + $fp = fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Defaillance/ProcolDelete.php', 'w'); fwrite($fp, "ratios)) { - $configFile = APPLICATION_PATH.'/../library/Metier/Scores/MRatios.php'; + $configFile = APPLICATION_PATH.'/../vendor/scores/library/src/Metier/Scores/MRatios.php'; $fp = fopen($configFile, 'w'); fwrite($fp, 'formules)) { // Select the right table in database in function of type switch ($type) { case 'score': - $file = APPLICATION_PATH.'/../library/Metier/Scores/Formule/Score_'.$version.'.php'; + $file = APPLICATION_PATH.'/../vendor/scores/library/src/Metier/Scores/Formule/Score_'.$version.'.php'; $tableFormu = 'jo.scores_formules_'.$version; $tableComment = 'jo.scores_commentaires_'.$version; break; case 'valo': - $file = APPLICATION_PATH.'/../library/Metier/Scores/Formule/Valo_'.$version.'.php'; + $file = APPLICATION_PATH.'/../vendor/scores/library/src/Metier/Scores/Formule/Valo_'.$version.'.php'; $tableFormu = 'jo.valo_formules_'.$version; $tableComment = 'jo.valo_commentaires_'.$version; break; @@ -791,7 +791,7 @@ if ( isset($opts->comments) ) { $tableComment = 'jo.valo_commentaires_'.$version; break; } - $path = APPLICATION_PATH.'/../library/Metier/Scores/Comment'; + $path = APPLICATION_PATH.'/../vendor/scores/library/src/Metier/Scores/Comment'; // Read comments text $stmt = $conn->executeQuery("SELECT code, langue, cycle, ligne, commentaire, tri, deleted @@ -841,7 +841,7 @@ if ( isset($opts->comments) ) { // --- Gestion des éléments de cache if ( $opts->tabcache) { - $pathCache = APPLICATION_PATH . '/../library/Metier/Scores/Data'; + $pathCache = APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Scores/Data'; // Variables $fp = fopen($pathCache . '/Variables.php','w'); diff --git a/bin/buildLog.php b/bin/buildLog.php index 32bba05b..e1f5a9cc 100644 --- a/bin/buildLog.php +++ b/bin/buildLog.php @@ -31,7 +31,7 @@ if ($opts->log) { $stmt = $conn->prepare($sql); $stmt->execute(); - $outPath = APPLICATION_PATH . '/../library/Scores/Account/Log/List.php'; + $outPath = APPLICATION_PATH . '/../vendor/scores/library/src/Scores/Account/Log/List.php'; $outFile = $outPath . '/Config.php'; if ($stmt->rowCount() > 0) { $result = $stmt->fetchAll(\PDO::FETCH_OBJ); diff --git a/bin/loadCodeRatios.php b/bin/loadCodeRatios.php index 0c09032c..bb42b86e 100644 --- a/bin/loadCodeRatios.php +++ b/bin/loadCodeRatios.php @@ -286,7 +286,7 @@ else echo "\n***********************************************\n"; } - $pathCache = APPLICATION_PATH . '/../library/Metier/Scores/Variables'; + $pathCache = APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Scores/Variables'; $copy_fic = $nomfichier; if($nomfichier) // Si le nom du fichier comprend 'scores' ou 'valo'... diff --git a/library/WsScore/Entreprise/v0.7/Service.php b/library/WsScore/Entreprise/v0.7/Service.php index 26d0845e..6a24786b 100644 --- a/library/WsScore/Entreprise/v0.7/Service.php +++ b/library/WsScore/Entreprise/v0.7/Service.php @@ -3534,7 +3534,7 @@ class Entreprise extends Scores_Ws_Server $this->permission('ratios'); global $tva, $tabFormules, $mBil, $tabBilan, $efftr, $tabInfla; - $tabFormules = include APPLICATION_PATH . '/../library/Metier/Scores/Data/TabFormules.php'; + $tabFormules = include APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Scores/Data/TabFormules.php'; //Initialisation if (empty($page)) $page = 'ratios'; diff --git a/library/WsScore/Entreprise/v0.8/Service.php b/library/WsScore/Entreprise/v0.8/Service.php index 26e5b952..90b1a219 100644 --- a/library/WsScore/Entreprise/v0.8/Service.php +++ b/library/WsScore/Entreprise/v0.8/Service.php @@ -2766,7 +2766,7 @@ class Entreprise extends Scores_Ws_Server $output->Indiscore = $Indiscore; //Tableau d'infos sur les formules - $tabFormules = include APPLICATION_PATH . '/../library/Metier/Scores/Data/Formules.php'; + $tabFormules = include APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Scores/Data/Formules.php'; $tabBorneMin = $tabBorneMax = array(); foreach ($tabFormules as $formule) { $id = $formule['id']*1; @@ -4684,7 +4684,7 @@ class Entreprise extends Scores_Ws_Server /** * Tableau d'infos sur les formules */ - $tabFormules = include APPLICATION_PATH . '/../library/Metier/Scores/Data/Formules.php'; + $tabFormules = include APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Scores/Data/Formules.php'; $tabBorneMin = $tabBorneMax = array(); foreach ($tabFormules as $formule) { $tabFormulesInfos[$id] = $formule; //Pour la gestion des unités des ratios secteur diff --git a/library/WsScore/Entreprise/v0.9/Service.php b/library/WsScore/Entreprise/v0.9/Service.php index d69dc978..9995347a 100644 --- a/library/WsScore/Entreprise/v0.9/Service.php +++ b/library/WsScore/Entreprise/v0.9/Service.php @@ -881,8 +881,8 @@ class Entreprise extends Scores_Ws_Server } } - $status = include APPLICATION_PATH . '/../library/Metier/Ctx/AffaireStatus.php'; - $categories = include APPLICATION_PATH . '/../library/Metier/Table/AffairesTypes.php'; + $status = include APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Ctx/AffaireStatus.php'; + $categories = include APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/AffairesTypes.php'; $affaireList = array(); if ($stmt->rowCount() > 0) { @@ -1048,8 +1048,8 @@ class Entreprise extends Scores_Ws_Server } // --- Formattage - $status = include APPLICATION_PATH . '/../library/Metier/Ctx/AffaireStatus.php'; - $categories = include APPLICATION_PATH . '/../library/Metier/Table/AffairesTypes.php'; + $status = include APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Ctx/AffaireStatus.php'; + $categories = include APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/AffairesTypes.php'; $output = new GreffeAffaireDetail(); $output->Id = $affaireResult->id;