Fix var type for logger

This commit is contained in:
Michael RICOIS 2017-02-13 16:56:06 +01:00
parent cc4592eddd
commit b8cd36c2a2
19 changed files with 63 additions and 65 deletions

View File

@ -106,7 +106,7 @@ class AuthController extends Zend_Controller_Action
try { try {
$ws = new Scores_Ws_Client('gestion', '0.3'); $ws = new Scores_Ws_Client('gestion', '0.3');
$InfosLogin = $ws->getInfosLogin($parameters); $InfosLogin = $ws->getInfosLogin($parameters);
$this->logger->info($InfosLogin); $this->logger->info(print_r($InfosLogin,1));
if ( is_string($InfosLogin) || $InfosLogin->error->errnum != 0 ) { if ( is_string($InfosLogin) || $InfosLogin->error->errnum != 0 ) {
$this->view->Error = true; $this->view->Error = true;
} else { } else {

View File

@ -792,7 +792,7 @@ class DashboardController extends Zend_Controller_Action
$user = $ws->getUser($login); $user = $ws->getUser($login);
$options = json_decode($user, true); $options = json_decode($user, true);
$this->logger->info($user); $this->logger->info(print_r($user,1));
$this->view->assign('droits', explode(' ',$options['droits'])); $this->view->assign('droits', explode(' ',$options['droits']));
$this->view->assign('prefs', explode(' ',$options['pref'])); $this->view->assign('prefs', explode(' ',$options['pref']));
@ -878,7 +878,7 @@ class DashboardController extends Zend_Controller_Action
} }
} }
$this->logger->info($output); $this->logger->info(print_r($output,1));
$this->view->assign('output', $output); $this->view->assign('output', $output);
} }
@ -993,7 +993,7 @@ class DashboardController extends Zend_Controller_Action
//Liste des periodes de facturation //Liste des periodes de facturation
$contrats = $ws->getClientTarifs($idClient); $contrats = $ws->getClientTarifs($idClient);
$this->logger->info($contrats); $this->logger->info(print_r($contrats,1));
$this->view->assign('contrats', $contrats->item); $this->view->assign('contrats', $contrats->item);
//Liste des services //Liste des services

View File

@ -465,7 +465,7 @@ class EvaluationController extends Zend_Controller_Action
$email = $request->getParam('email', ''); $email = $request->getParam('email', '');
$infos = $ws->getRapport($siren, 3, 0, $plus, $ref, $encours, $email); $infos = $ws->getRapport($siren, 3, 0, $plus, $ref, $encours, $email);
$this->logger->info($infos); $this->logger->info(print_r($infos,1));
if ($infos === false) { if ($infos === false) {
$this->forward('soap', 'error'); $this->forward('soap', 'error');
} }

View File

@ -746,7 +746,7 @@ class FinanceController extends Zend_Controller_Action
if ($result === false) { if ($result === false) {
$this->view->msg = "Erreur lors de l'enregistrement des informations"; $this->view->msg = "Erreur lors de l'enregistrement des informations";
} else { } else {
$this->logger->info($result); $this->logger->info(printr_($result,1));
$this->view->ref = strtoupper($result); $this->view->ref = strtoupper($result);
$this->view->fileref = $params['siren'] . '_' . $params['format'] . '_' . $this->view->fileref = $params['siren'] . '_' . $params['format'] . '_' .
substr($params['dateCloture'],6,4) . substr($params['dateCloture'],3,2) . substr($params['dateCloture'],6,4) . substr($params['dateCloture'],3,2) .

View File

@ -465,7 +465,7 @@ class IdentiteController extends Zend_Controller_Action
$ws = new WsScores(); $ws = new WsScores();
$infos = $ws->getEtablissementsGeo($siren, $actif, $position, $nbAffichage); $infos = $ws->getEtablissementsGeo($siren, $actif, $position, $nbAffichage);
$this->logger->info($infos); $this->logger->info(print_r($infos,1));
if ($infos === false) $this->forward('soap', 'error'); if ($infos === false) $this->forward('soap', 'error');
$etabs = $infos->result->item; $etabs = $infos->result->item;
@ -531,7 +531,7 @@ class IdentiteController extends Zend_Controller_Action
'gps' => $gps, 'gps' => $gps,
); );
} }
$this->logger->info($marks); $this->logger->info(print_r($marks,1));
} }
$this->view->assign('marks', json_encode($marks)); $this->view->assign('marks', json_encode($marks));
} }
@ -1081,7 +1081,7 @@ class IdentiteController extends Zend_Controller_Action
$ws = new WsScores(); $ws = new WsScores();
$result = $ws->getLienRef($id); $result = $ws->getLienRef($id);
$this->logger->info($result); $this->logger->info(print_r($result,1));
$this->view->assign('result', $result); $this->view->assign('result', $result);
$this->view->assign('idFiche', $id); $this->view->assign('idFiche', $id);
@ -1497,7 +1497,7 @@ class IdentiteController extends Zend_Controller_Action
$result = $ws->getGroupesArbo($siren, $pctMin, 10, $stopAtIsin); $result = $ws->getGroupesArbo($siren, $pctMin, 10, $stopAtIsin);
if ( $result!==false ) { if ( $result!==false ) {
$infos = json_decode($result, true); $infos = json_decode($result, true);
$this->logger->info($infos); $this->logger->info(print_r($infos,1));
if (count($infos)>0) { if (count($infos)>0) {
$name = $infos['name']; $name = $infos['name'];
@ -1545,7 +1545,7 @@ class IdentiteController extends Zend_Controller_Action
if ( $result!==false ) { if ( $result!==false ) {
$infos = json_decode($result, true); $infos = json_decode($result, true);
$this->logger->info($infos); $this->logger->info(print_r($infos,1));
if (count($infos)>0) { if (count($infos)>0) {
$sirenTxt = substr($infos['siren'],0,3).' '.substr($infos['siren'],3,3).' '.substr($infos['siren'],6,3); $sirenTxt = substr($infos['siren'],0,3).' '.substr($infos['siren'],3,3).' '.substr($infos['siren'],6,3);
@ -1662,7 +1662,7 @@ class IdentiteController extends Zend_Controller_Action
$ws = new WsScores(); $ws = new WsScores();
$result = $ws->getContactEt($companyId, $filter); $result = $ws->getContactEt($companyId, $filter);
$this->logger->info($result); $this->logger->info(print_r($result,1));
if ($result->nbReponses>0) { if ($result->nbReponses>0) {
$this->view->assign('contacts', $result->result->item); $this->view->assign('contacts', $result->result->item);
@ -1726,7 +1726,7 @@ class IdentiteController extends Zend_Controller_Action
$ws = new WsScores(); $ws = new WsScores();
$result = $ws->getEntrepriseAvisRncs($siren); $result = $ws->getEntrepriseAvisRncs($siren);
$this->logger->info($result); $this->logger->info(print_r($result,1));
if ( $result === false ) { if ( $result === false ) {
$this->view->assign('error', true); $this->view->assign('error', true);
@ -1905,7 +1905,7 @@ class IdentiteController extends Zend_Controller_Action
$ws = new WsScores(); $ws = new WsScores();
$result = $ws->getEntrepriseAvisRncs($siren); $result = $ws->getEntrepriseAvisRncs($siren);
$this->logger->info($result); $this->logger->info(print_r($result,1));
if ( $result === false ) { if ( $result === false ) {
$this->view->assign('error', true); $this->view->assign('error', true);

View File

@ -108,7 +108,7 @@ class JuridiqueController extends Zend_Controller_Action
$infos = $ws->getAnnoncesLegales($siren, $idAnn, null, $position, $nbAffichage); $infos = $ws->getAnnoncesLegales($siren, $idAnn, null, $position, $nbAffichage);
break; break;
} }
$this->logger->info($infos); $this->logger->info(print_r($infos,1));
if ($infos === false) { if ($infos === false) {
$this->forward('soap', 'error'); $this->forward('soap', 'error');
} }
@ -169,7 +169,7 @@ class JuridiqueController extends Zend_Controller_Action
foreach($objAnnonces->$classType as $ann) { foreach($objAnnonces->$classType as $ann) {
$annonces[] = $objAnnonces->getAnnonceResume($ann); $annonces[] = $objAnnonces->getAnnonceResume($ann);
} }
$this->logger->info($annonces); $this->logger->info(print_r($annonces,1));
$this->view->assign('annonces', $annonces); $this->view->assign('annonces', $annonces);
} }
$this->view->headScript()->appendFile($this->theme->pathScript.'/annonces.js', 'text/javascript'); $this->view->headScript()->appendFile($this->theme->pathScript.'/annonces.js', 'text/javascript');
@ -245,7 +245,7 @@ class JuridiqueController extends Zend_Controller_Action
$infos = $ws->getAnnoncesLegales($siren, $idAnn, null, $position, $nbAffichage); $infos = $ws->getAnnoncesLegales($siren, $idAnn, null, $position, $nbAffichage);
break; break;
} }
$this->logger->info($infos); $this->logger->info(print_r($infos,1));
if ($infos === false) { if ($infos === false) {
$this->forward('soap', 'error'); $this->forward('soap', 'error');
} }
@ -274,7 +274,7 @@ class JuridiqueController extends Zend_Controller_Action
foreach($objAnnonces->$classType as $ann) { foreach($objAnnonces->$classType as $ann) {
if($ann->id==$idAnn) break; if($ann->id==$idAnn) break;
} }
$this->logger->info($ann); $this->logger->info(print_r($ann,1));
$annonce = array( $annonce = array(
'Desc' => $objAnnonces->getAnnonceDesc($ann), 'Desc' => $objAnnonces->getAnnonceDesc($ann),
'Entree' => $objAnnonces->getAnnonceEntree($ann), 'Entree' => $objAnnonces->getAnnonceEntree($ann),
@ -525,7 +525,7 @@ class JuridiqueController extends Zend_Controller_Action
if ($infos === false) $this->_forward('soap', 'error'); if ($infos === false) $this->_forward('soap', 'error');
$competences = $infos->result->item; $competences = $infos->result->item;
$this->logger->info($infos); $this->logger->info(print_r($infos,1));
if( $type=='tri' || $type=='cfe' ) { if( $type=='tri' || $type=='cfe' ) {
$i=0; $i=0;
foreach($competences as $comp){ foreach($competences as $comp){
@ -560,7 +560,7 @@ class JuridiqueController extends Zend_Controller_Action
$ws = new WsScores(); $ws = new WsScores();
$infos = $ws->getListeConventions($siren); $infos = $ws->getListeConventions($siren);
$conventions = $infos->result->item; $conventions = $infos->result->item;
$this->logger->info($conventions); $this->logger->info(print_r($conventions,1));
$this->view->assign('conventions', $conventions); $this->view->assign('conventions', $conventions);
$this->view->assign('exportObjet', $infos); $this->view->assign('exportObjet', $infos);
} }
@ -590,7 +590,7 @@ class JuridiqueController extends Zend_Controller_Action
$this->view->assign('marques', $marques); $this->view->assign('marques', $marques);
$this->view->assign('idObject', $idObject); $this->view->assign('idObject', $idObject);
$this->view->assign('exportObjet', $marques); $this->view->assign('exportObjet', $marques);
$this->logger->info($infos); $this->logger->info(print_r($infos,1));
} }
/** /**
@ -676,7 +676,7 @@ class JuridiqueController extends Zend_Controller_Action
$ws = new WsScores(); $ws = new WsScores();
$result = $ws->getAnnoncesNum($siren); $result = $ws->getAnnoncesNum($siren);
$this->logger->info($result); $this->logger->info(print_r($result,1));
$numWS = array(); $numWS = array();
if (count($result->item)>0) { if (count($result->item)>0) {
foreach ($result->item as $item) { foreach ($result->item as $item) {

View File

@ -92,7 +92,7 @@ class MandataireController extends Zend_Controller_Action
if ($idMandataire != '') { if ($idMandataire != '') {
$idMandataire = (int)substr($idMandataire,1); $idMandataire = (int)substr($idMandataire,1);
$reponse = $ws->getMandataire($idMandataire); $reponse = $ws->getMandataire($idMandataire);
$this->logger->info($reponse); $this->logger->info(print_r($reponse,1));
if ($reponse!==false) { if ($reponse!==false) {
$tabMandataires = json_decode($reponse, true); $tabMandataires = json_decode($reponse, true);
} else { } else {

View File

@ -141,7 +141,7 @@ class PiecesController extends Zend_Controller_Action
//Affichage des actes disponible //Affichage des actes disponible
$ws = new WsScores(); $ws = new WsScores();
$responses = $ws->getPiecesActes($siren); $responses = $ws->getPiecesActes($siren);
$this->logger->info($responses); $this->logger->info(print_r($responses,1));
/* /*
* Construire la réponse pour affichage * Construire la réponse pour affichage
@ -836,10 +836,10 @@ class PiecesController extends Zend_Controller_Action
$params->companyId = $siren; $params->companyId = $siren;
$result = $ws->getAssoActes($params); $result = $ws->getAssoActes($params);
$actes = array(); $actes = array();
$this->logger->info($result); $this->logger->info(print_r($result,1));
if (count($result->item) > 0) { if (count($result->item) > 0) {
foreach ($result->item as $item) { foreach ($result->item as $item) {
$this->logger->info($item); $this->logger->info(print_r($item,1));
if ( $user->checkPerm('actes') ) { if ( $user->checkPerm('actes') ) {
$href = $this->view->url(array('controller'=>'pieces', 'action'=>'associationacte', $href = $this->view->url(array('controller'=>'pieces', 'action'=>'associationacte',
'siren'=>$siren, 'date'=> $item->Date), 'default', true); 'siren'=>$siren, 'date'=> $item->Date), 'default', true);
@ -936,7 +936,7 @@ class PiecesController extends Zend_Controller_Action
$ws = new WsScores(); $ws = new WsScores();
$reponse = $ws->getPiecesBilans($siren); $reponse = $ws->getPiecesBilans($siren);
$listBilans = $reponse->result->item; $listBilans = $reponse->result->item;
$this->logger->info($listBilans); $this->logger->info(print_r($listBilans,1));
$decision = ''; $decision = '';
foreach ( $listBilans as $item) { foreach ( $listBilans as $item) {

View File

@ -219,7 +219,7 @@ class PrintController extends Zend_Controller_Action
} }
$this->view->assign('controller', $elements['controller']); $this->view->assign('controller', $elements['controller']);
$this->view->assign('action', $elements['action']); $this->view->assign('action', $elements['action']);
$this->logger->info($elements['params']); $this->logger->info(print_r($elements['params'],1));
$this->view->assign('params', $elements['params']); $this->view->assign('params', $elements['params']);
} }

View File

@ -296,7 +296,7 @@ class RechercheController extends Zend_Controller_Action
$request = $this->getRequest(); $request = $this->getRequest();
if ($request->isPost() && $form->isValid($request->getParams())) { if ($request->isPost() && $form->isValid($request->getParams())) {
$this->logger->info($form->getValues()); $this->logger->info(print_r($form->getValues(),1));
$c = Zend_Registry::get('config'); $c = Zend_Registry::get('config');
$path = $c->profil->path->shared.'/persist/log'; $path = $c->profil->path->shared.'/persist/log';

View File

@ -1362,7 +1362,7 @@ class SaisieController extends Zend_Controller_Action
$params['step'] $params['step']
); );
$this->logger->info($response); $this->logger->info(print_r($response,1));
if (is_int($response)) { if (is_int($response)) {
$this->view->assign('result', array('status'=>'OK')); $this->view->assign('result', array('status'=>'OK'));
@ -1451,7 +1451,7 @@ class SaisieController extends Zend_Controller_Action
if ( $lienRef !== null ) { if ( $lienRef !== null ) {
$this->logger->info('lienRef:'.$lienRef); $this->logger->info('lienRef:'.$lienRef);
$result = $ws->getLienRef($lienRef); $result = $ws->getLienRef($lienRef);
$this->logger->info($result); $this->logger->info(print_r($result,1));
$rs = $result->raisonSociale; $rs = $result->raisonSociale;
//Override session session //Override session session
if ( intval($result->siren) != 0 ) { if ( intval($result->siren) != 0 ) {
@ -1488,7 +1488,7 @@ class SaisieController extends Zend_Controller_Action
$result = $ws->getSaisieLien($idLien); $result = $ws->getSaisieLien($idLien);
$infos = json_decode($result, true); $infos = json_decode($result, true);
$this->logger->info($infos); $this->logger->info(print_r($infos,1));
if ($type=='actionnaire') { if ($type=='actionnaire') {
$this->view->assign('id1', $infos['idPar']); $this->view->assign('id1', $infos['idPar']);
@ -1529,7 +1529,7 @@ class SaisieController extends Zend_Controller_Action
$result = $ws->getSaisieLien($idLien); $result = $ws->getSaisieLien($idLien);
$infos = json_decode($result, true); $infos = json_decode($result, true);
$this->logger->info($infos); $this->logger->info(print_r($infos,1));
if ($type=='actionnaire') { if ($type=='actionnaire') {
$this->view->assign('id1', $infos['idPar']); $this->view->assign('id1', $infos['idPar']);
@ -1631,7 +1631,7 @@ class SaisieController extends Zend_Controller_Action
$ws = new WsScores(); $ws = new WsScores();
$result = $ws->searchLienRef($query, $type); $result = $ws->searchLienRef($query, $type);
$this->logger->info($result); $this->logger->info(print_r($result,1));
$output = array(); $output = array();
if (count($result->item)>0) { if (count($result->item)>0) {
foreach ($result->item as $item) { foreach ($result->item as $item) {
@ -1809,7 +1809,7 @@ class SaisieController extends Zend_Controller_Action
'bilEE' => $params['bilEE'], 'bilEE' => $params['bilEE'],
); );
$this->logger->info($params); $this->logger->info(print_r($params,1));
$ws = new WsScores(); $ws = new WsScores();
$idNewLien = $ws->setLienRef(json_encode($infos), $params['idLien']); $idNewLien = $ws->setLienRef(json_encode($infos), $params['idLien']);
@ -1884,7 +1884,7 @@ class SaisieController extends Zend_Controller_Action
} }
} }
} }
$this->logger->info($infos); $this->logger->info(print_r($infos,1));
$idNewLien = $ws->setLien(json_encode($infos), $params['idLien']); $idNewLien = $ws->setLien(json_encode($infos), $params['idLien']);
@ -2147,7 +2147,7 @@ class SaisieController extends Zend_Controller_Action
$ws = new WsScores(); $ws = new WsScores();
$result = $ws->getIdentite($siren); $result = $ws->getIdentite($siren);
$this->logger->info($result); $this->logger->info(print_r($result,1));
$this->view->assign('nom',$result->Nom); $this->view->assign('nom',$result->Nom);
$this->view->assign('sigle',$result->sigle); $this->view->assign('sigle',$result->sigle);
@ -2219,7 +2219,7 @@ class SaisieController extends Zend_Controller_Action
$items = json_decode($result, true); $items = json_decode($result, true);
if ( $items!==null ) { if ( $items!==null ) {
$this->logger->info('getSaisieLienRef id='.$id); $this->logger->info('getSaisieLienRef id='.$id);
$this->logger->info($items); $this->logger->info(print_r($items,1));
//Get country code //Get country code
if ($items->adresse_pays!='FRA') { if ($items->adresse_pays!='FRA') {
@ -2227,8 +2227,6 @@ class SaisieController extends Zend_Controller_Action
$this->view->assign('identifiant', $result->item); $this->view->assign('identifiant', $result->item);
} }
$this->logger->info($items);
if (count($items)>0) { if (count($items)>0) {
foreach( $items as $key => $val ) { foreach( $items as $key => $val ) {
switch ($key) { switch ($key) {
@ -2719,7 +2717,7 @@ class SaisieController extends Zend_Controller_Action
$ws = new WsScores(); $ws = new WsScores();
$result = $ws->getSaisieContactEt($id); $result = $ws->getSaisieContactEt($id);
$data = json_decode($result, true); $data = json_decode($result, true);
$this->logger->info($data); $this->logger->info(print_r($data,1));
$this->view->assign('id', $data['id']); $this->view->assign('id', $data['id']);
$this->view->assign('siret', str_pad($data['siren'],9,'0',STR_PAD_LEFT).str_pad($data['nic'],5,'0',STR_PAD_LEFT)); $this->view->assign('siret', str_pad($data['siren'],9,'0',STR_PAD_LEFT).str_pad($data['nic'],5,'0',STR_PAD_LEFT));
$this->view->assign('type', $data['typeTel']); $this->view->assign('type', $data['typeTel']);
@ -2876,7 +2874,7 @@ class SaisieController extends Zend_Controller_Action
if ( $request->isXmlHttpRequest() ) { if ( $request->isXmlHttpRequest() ) {
$this->_helper->layout()->disableLayout(); $this->_helper->layout()->disableLayout();
} }
$this->logger->info($request->getParams()); $this->logger->info(print_r($request->getParams(),1));
$mode = $request->getParam('mode'); $mode = $request->getParam('mode');
// --- Diplay form to re-validate geocode // --- Diplay form to re-validate geocode

View File

@ -249,7 +249,7 @@ class SurveillanceController extends Zend_Controller_Action
$filtre->detail = false; $filtre->detail = false;
$infos = $ws->getSurveillances($filtre); $infos = $ws->getSurveillances($filtre);
$this->logger->info($infos); $this->logger->info(print_r($infos,1));
if (property_exists($infos->result, 'item') && count($infos->result->item)>0) { if (property_exists($infos->result, 'item') && count($infos->result->item)>0) {
$titre = 'Ajouter une surveillance'; $titre = 'Ajouter une surveillance';

View File

@ -102,9 +102,9 @@ class UserController extends Zend_Controller_Action
} }
$ws = new WsScores(); $ws = new WsScores();
$this->logger->info('setInfosLogin'); $this->logger->info('setInfosLogin');
$this->logger->info($options); $this->logger->info(print_r($options,1));
$reponse = $ws->setInfosLogin($login, $action, $options); $reponse = $ws->setInfosLogin($login, $action, $options);
$this->logger->info($response); $this->logger->info(print_r($response,1));
$isProfilUpdated = true; $isProfilUpdated = true;
$message = 'Erreur lors de la mise à jour du compte !'; $message = 'Erreur lors de la mise à jour du compte !';
@ -487,7 +487,7 @@ class UserController extends Zend_Controller_Action
//Auth error //Auth error
else { else {
$this->view->message = ''; $this->view->message = '';
$this->logger->info($result); $this->logger->info(print_r($result));
foreach ($result->getMessages() as $message) { foreach ($result->getMessages() as $message) {
$this->view->message.= $message."<br/>"; $this->view->message.= $message."<br/>";
} }

View File

@ -631,12 +631,12 @@ class Infogreffe
$this->logger->info('Detect fichier : '.$sql->__toString()); $this->logger->info('Detect fichier : '.$sql->__toString());
$result = $actesM->fetchRow($sql); $result = $actesM->fetchRow($sql);
if ( null !== $result ) { if ( null !== $result ) {
$this->logger->info($result); $this->logger->info(print_r($result,1));
$fichier = $this->pathData.$this->actePath($ref).$result->file; $fichier = $this->pathData.$this->actePath($ref).$result->file;
$this->logger->info($fichier); $this->logger->info($fichier);
if ( file_exists($fichier) ) if ( file_exists($fichier) )
{ {
$this->logger->info($acte); $this->logger->info(print_r($acte,1));
if ($result->type != $acte['type_acte'] && $result->type2 == '') { if ($result->type != $acte['type_acte'] && $result->type2 == '') {
$this->logger->info('Update Database'); $this->logger->info('Update Database');
//Add to the database //Add to the database

View File

@ -96,7 +96,7 @@ class Scores_Auth_Adapter_Ws implements Zend_Auth_Adapter_Interface
$InfosLogin = $ws->getInfosLogin($parameters); $InfosLogin = $ws->getInfosLogin($parameters);
$this->logger->info(__CLASS__ . ' : '.__METHOD__); $this->logger->info(__CLASS__ . ' : '.__METHOD__);
$this->logger->info($InfosLogin); $this->logger->info(print_r($InfosLogin,1));
// --- Renvoi // --- Renvoi
if ( is_string($InfosLogin) || $InfosLogin->error->errnum != 0 ) { if ( is_string($InfosLogin) || $InfosLogin->error->errnum != 0 ) {
$message = $InfosLogin; $message = $InfosLogin;

View File

@ -49,7 +49,7 @@ class IdentiteProcol
} }
} }
} }
$this->logger->info($this->annonces); $this->logger->info(print_r($this->annonces,1));
$this->view = new Zend_View(); $this->view = new Zend_View();
} }

View File

@ -322,7 +322,7 @@ class RapportComment
//Récupération des couleurs //Récupération des couleurs
$pattern = '/([a-z0-9]{3,4})/i'; $pattern = '/([a-z0-9]{3,4})/i';
if ( preg_match_all($pattern, $listeCouleurs, $matches) ) { if ( preg_match_all($pattern, $listeCouleurs, $matches) ) {
$this->logger->info($matches); $this->logger->info(print_r($matches,1));
$nbCouleurs = count($matches[1]); $nbCouleurs = count($matches[1]);
for($i=0;$i<$nbCouleurs;$i++){ for($i=0;$i<$nbCouleurs;$i++){
$this->graphCouleurs[] = $assocNomCouleurs[$matches[1][$i]]; $this->graphCouleurs[] = $assocNomCouleurs[$matches[1][$i]];
@ -507,7 +507,7 @@ class RapportComment
$this->logger->info('Histo - id : '.$id); $this->logger->info('Histo - id : '.$id);
$this->logger->info('Histo - titre : '.$titre); $this->logger->info('Histo - titre : '.$titre);
$this->logger->info('Histo - strRatios : '.$strRatios); $this->logger->info('Histo - strRatios : '.$strRatios);
$this->logger->info($this->ratiosEntrep); $this->logger->info(print_r($this->ratiosEntrep,1));
// --- Gestion des couleurs // --- Gestion des couleurs
if(count($this->graphCouleurs)>0){ if(count($this->graphCouleurs)>0){
$couleurs = $this->graphCouleurs; $couleurs = $this->graphCouleurs;

View File

@ -147,7 +147,7 @@ class Scores_Ws_Client extends Zend_Soap_Client
} }
$methodConfig = $this->config[$name]; $methodConfig = $this->config[$name];
$this->logger->info($methodConfig); $this->logger->info(print_r($methodConfig,1));
// --- Cache // --- Cache
$cacheEnable = false; $cacheEnable = false;
if ( array_key_exists('cache', $methodConfig) ) { if ( array_key_exists('cache', $methodConfig) ) {
@ -173,7 +173,7 @@ class Scores_Ws_Client extends Zend_Soap_Client
// --- Debug // --- Debug
if ( array_key_exists('debug', $methodConfig) ) { if ( array_key_exists('debug', $methodConfig) ) {
$this->logger->info(__CLASS__.'->'.$name); $this->logger->info(__CLASS__.'->'.$name);
$this->logger->info($arguments); $this->logger->info(print_r($arguments,1));
} }
try { try {
@ -182,7 +182,7 @@ class Scores_Ws_Client extends Zend_Soap_Client
// --- Debug // --- Debug
if ( array_key_exists('debug', $methodConfig) ) { if ( array_key_exists('debug', $methodConfig) ) {
$this->logger->info($response); $this->logger->info(print_r($response,1));
} }
// --- Cache // --- Cache

View File

@ -675,7 +675,7 @@ class WsScores
$client = $this->loadClient('gestion'); $client = $this->loadClient('gestion');
try { try {
$reponse = $client->getServiceUsers($params); $reponse = $client->getServiceUsers($params);
$this->logger->info($reponse); $this->logger->info(print_r($reponse,1));
return $reponse->getServiceUsersResult; return $reponse->getServiceUsersResult;
} catch (SoapFault $fault) { } catch (SoapFault $fault) {
$this->logger->info($fault->faultcode.':'.$fault->faultstring); $this->logger->info($fault->faultcode.':'.$fault->faultstring);
@ -973,7 +973,7 @@ class WsScores
$client = $this->loadClient('pieces'); $client = $this->loadClient('pieces');
try { try {
$reponse = $client->getBilan($params); $reponse = $client->getBilan($params);
$this->logger->info($reponse); $this->logger->info(print_r($reponse,1));
return $reponse->getBilanResult; return $reponse->getBilanResult;
} catch (SoapFault $fault) { } catch (SoapFault $fault) {
$this->logger->info($fault->faultcode.':'.$fault->faultstring); $this->logger->info($fault->faultcode.':'.$fault->faultstring);
@ -996,7 +996,7 @@ class WsScores
$client = $this->loadClient('pieces'); $client = $this->loadClient('pieces');
try { try {
$reponse = $client->getActe($params); $reponse = $client->getActe($params);
$this->logger->info($reponse); $this->logger->info(print_r($reponse,1));
return $reponse->getActeResult; return $reponse->getActeResult;
} catch (SoapFault $fault) { } catch (SoapFault $fault) {
$this->logger->info($fault->faultcode.':'.$fault->faultstring); $this->logger->info($fault->faultcode.':'.$fault->faultstring);
@ -1089,7 +1089,7 @@ class WsScores
$client = $this->loadClient('gestion'); $client = $this->loadClient('gestion');
try { try {
$reponse = $client->setCGU($params); $reponse = $client->setCGU($params);
$this->logger->info($reponse); $this->logger->info(print_r($reponse,1));
return $reponse->setCGUResult; return $reponse->setCGUResult;
} catch(SoapFault $fault) { } catch(SoapFault $fault) {
$this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse());
@ -1129,7 +1129,7 @@ class WsScores
$client = $this->loadClient('gestion'); $client = $this->loadClient('gestion');
try { try {
$reponse = $client->getEmail($params); $reponse = $client->getEmail($params);
$this->logger->info($reponse); $this->logger->info(print_r($reponse,1));
return $reponse->getEmailResult; return $reponse->getEmailResult;
} catch (SoapFault $fault) { } catch (SoapFault $fault) {
$this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse());
@ -2339,7 +2339,7 @@ class WsScores
$client = $this->loadClient('entreprise'); $client = $this->loadClient('entreprise');
try { try {
$reponse = $client->getAnnoncesLegales($params); $reponse = $client->getAnnoncesLegales($params);
$this->logger->info($reponse); $this->logger->info(print_r($reponse,1));
if ($this->cacheWrite) { if ($this->cacheWrite) {
$cache->deletefile(); $cache->deletefile();
$cache->setBlock($reponse->getAnnoncesLegalesResult); $cache->setBlock($reponse->getAnnoncesLegalesResult);
@ -3128,7 +3128,7 @@ class WsScores
return $reponse->setCmdAssoResult; return $reponse->setCmdAssoResult;
} catch (SoapFault $fault) { } catch (SoapFault $fault) {
$this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse());
$this->logger->info($fault); $this->logger->info(print_r($fault,1));
//Placer exception pour affichage message //Placer exception pour affichage message
return false; return false;
} }
@ -3181,7 +3181,7 @@ class WsScores
return $fault->getMessage(); return $fault->getMessage();
} else { } else {
$this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse());
$this->logger->info($fault); $this->logger->info(print_r($fault,1));
//Placer exception pour affichage message //Placer exception pour affichage message
return false; return false;
@ -3245,11 +3245,11 @@ class WsScores
try { try {
$client = $this->loadClient('gestion'); $client = $this->loadClient('gestion');
$reponse = $client->getNextLogin($params); $reponse = $client->getNextLogin($params);
$this->logger->info($reponse); $this->logger->info(print_r($reponse,1));
return $reponse->getNextLoginResult; return $reponse->getNextLoginResult;
} catch (SoapFault $fault) { } catch (SoapFault $fault) {
$this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse());
$this->logger->info($fault); $this->logger->info(print_r($fault,1));
//Placer exception pour affichage message //Placer exception pour affichage message
return false; return false;
} }