Stabilisation du cache extranet

This commit is contained in:
Claire DELBOS 2017-03-17 17:23:14 +01:00
parent 645ce94332
commit 3d565b7d96
12 changed files with 342 additions and 107 deletions

View File

@ -12,14 +12,14 @@ class Achatclient_IndexController extends Zend_Controller_Action
protected $tranches=array(
'1' => array(
'200' => array('montant' => 2000,'montantht' => 1667, 'tva' => 333, ),
'500' => array('montant' => 5000,'montantht' => 4167, 'tva' => 833, ),
'1000' => array('montant' => 10000,'montantht' => 8333, 'tva' => 1667, ),
'200' => array('montant' => 2400,'montantht' => 2000, 'tva' => 400, ),
'500' => array('montant' => 6000,'montantht' => 5000, 'tva' => 1000, ),
'1000' => array('montant' => 12000,'montantht' => 10000, 'tva' => 2000, ),
),
'195' => array(
'200' => array('montant' => 2000,'montantht' => 1667, 'tva' => 333, ),
'500' => array('montant' => 5000,'montantht' => 4167, 'tva' => 833, ),
'1000' => array('montant' => 10000,'montantht' => 8333, 'tva' => 1667, ),
'200' => array('montant' => 2400,'montantht' => 2000, 'tva' => 400, ),
'500' => array('montant' => 6000,'montantht' => 5000, 'tva' => 1000, ),
'1000' => array('montant' => 12000,'montantht' => 10000, 'tva' => 2000, ),
),
);
@ -99,6 +99,10 @@ class Achatclient_IndexController extends Zend_Controller_Action
$infos['used'][$no][$v->key]=$v->value;
}}
}
$infos['libelle']=array();
foreach($infocredit->libelle as $no => $o){
$infos['libelle'][$o->key]=$o->value;
}
$this->logger->info(print_r($user,1));
$this->view->infos=$infos;
//echo __LINE__;var_dump($this->view->infos);die;
@ -194,18 +198,22 @@ class Achatclient_IndexController extends Zend_Controller_Action
$message=$request->getParam('message');
$objet=$request->getParam('objet');
if(empty($message) || !empty($objet)){
if(empty($message) && empty($objet)){
$this->view->msg="Choisissez l'objet et entrez votre message";
return;
}
if(empty($message) && !empty($objet)){
$this->view->msg="Merci de remplir votre message";
}else{
//@todo envoyer le mail
$c = Zend_Registry::get('config');
$mail = new Scores_Mail_Method();
$mail->setSubject($objet. ' - '.$user->identity->name.' -'.date('Y-m-d'));
$mail->setBodyTextC($message);
$mail->setFromKey('support');
$mail->addToKey('supportdev');
//var_dump($mail);die;
//$mail->execute();
$data=array(
'idUser' => $user->id,
'begin' => Date('Y-m-d H:i:s'),
'subject' => $objet,
'message' => $message,
'stage' => 1,
'answer' => 'Message enregistré'
);
$ok=$this->sendContact($data);
$this->view->msg="Votre message a bien été pris en compte";
}
@ -216,7 +224,19 @@ class Achatclient_IndexController extends Zend_Controller_Action
echo $user->getSiret();die;
}
private function sendContact($data,$user){
//@todo: envoyer le mail
$c = Zend_Registry::get('config');
$mail = new Scores_Mail_Method();
$mail->setSubject($data['subject']. ' - '.$user->identity->name.' -'.date('Y-m-d'));
$mail->setBodyTextC($data['message']);
$mail->setFromKey('support');
$mail->addToKey('supportdev');
//var_dump($mail);die;
//$mail->execute();
return true;
}
private function verifHttps(){
if (
( ! empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off')

View File

@ -9,18 +9,7 @@ class Achatclient_InextensoController extends Zend_Controller_Action
*/
protected $logger;
protected $tranches=array(
'1' => array(
'200' => array('montant' => 2000,'montantht' => 1667, 'tva' => 333, ),
'500' => array('montant' => 5000,'montantht' => 4167, 'tva' => 833, ),
'1000' => array('montant' => 10000,'montantht' => 8333, 'tva' => 1667, ),
),
'195' => array(
'200' => array('montant' => 2000,'montantht' => 1667, 'tva' => 333, ),
'500' => array('montant' => 5000,'montantht' => 4167, 'tva' => 833, ),
'1000' => array('montant' => 10000,'montantht' => 8333, 'tva' => 1667, ),
),
);
protected $libdroits = 'searchent';
protected $maxcredit=2000;
@ -36,40 +25,223 @@ class Achatclient_InextensoController extends Zend_Controller_Action
*/
public function indexAction()
{
$testidentities=array(
'valide de test' => array(
'partner' => "inextenso",
'user' => "jpdurail.demo@gmail.com",
'mail' => "jpdurail.demo@gmail.com",
'name' => "RICOIS",
'lastname' => "Michael",
),
'mcdo' => array(
'partner' => "inextenso",
'user' => "test20170227091241@intescia.com",
'mail' => "test20170227091241@intescia.com",
'name' => "DELBOS",
'lastname' => "Claire",
),
'nouveau de test' => array(
'partner' => "inextenso",
'user' => "test".Date("YmdHis")."@intescia.com",
'mail' => "test".Date("YmdHis")."@intescia.com",
'name' => "DELBOS",
'lastname' => "Claire",
),
'invalide de test' => array(
'partner' => "inextenso2",
'user' => "invalide.demo@gmail.com",
'mail' => "invalide.demo@gmail.com",
'name' => "VILAIN",
'lastname' => "Claire",
),
);
$user = new Scores_Utilisateur();
$ok=$user->checkperm($this->libdroits);
if(!$ok){
$this->msg = 'Fonction indisponible';
}
$request = $this->getRequest();
$id=$request->getParam('id');
die;
// create new PDF document
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
}
// set document information
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetAuthor('Intescia');
$pdf->SetTitle('bill');
$pdf->SetSubject('Bill');
$pdf->SetKeywords('Bill, PDF, facture');
// set default header data
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE. ' ' . date('d/m/Y'), PDF_HEADER_STRING, array(0,64,255), array(0,64,128));
$pdf->setFooterData(array(0,64,0), array(0,64,128));
// set header and footer fonts
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
// set default monospaced font
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
// set margins
$pdf->SetMargins(20, 20, 20);
// $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
// set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
// set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
// ---------------------------------------------------------
// set default font subsetting mode
$pdf->setFontSubsetting(true);
// Set font
// dejavusans is a UTF-8 Unicode font, if you only need to
// print standard ASCII chars, you can use core fonts like
// helvetica or times to reduce file size.
$pdf->SetFont('dejavusans', '', 11, '', true);
// Add a page
// This method has several options, check the source code documentation for more information.
$pdf->AddPage();
// Vendeur
$pdf->SetLineStyle(['color' => [255, 255, 255]]);
//$pdf->Cell(80, 0, 'Intescia', 1, 1, 'L', 0, '', 1);
//$pdf->Cell(80, 0, 'Scores & Decisions', 1, 1, 'L', 0, '', 2);
//$pdf->Cell(80, 0, '8, rue Rouget de Lisle', 1, 1, 'L', 0, '', 3);
//$pdf->Cell(80, 0, '92442 Issy les Moulineaux Cedex', 1, 1, 'L', 0, '', 4);
//$pdf->Ln(5);
// Acheteur
$pdf->SetXY(120, 60);
$paidResult=new stdClass();
$paidResult->UserId= 'UserId';
$paidResult->UserName = 'UserName';
$paidResult->UserFirstname = 'UserFirstname';
$paidResult->ClientName = 'ClientName';
$paidResult->ClientFacDest = 'ClientFacDest';
$paidResult->ClientFacAdr1 = 'ClientFacAdr1';
$paidResult->ClientFacAdr2 = 'ClientFacAdr2';
$paidResult->ClientFacAdr3 = 'ClientFacAdr3';
$paidResult->nbCredit = '2000';
$paidResult->amount = '24,00';
$paidResult->amount_ht = '20,00';
$paidResult->amount_tva = '4,00';
$paidResult->taux_tva = '20 %';
$paidResult->idCmd = 'idCmd';
$address = $paidResult->UserName . ' ' . $paidResult->UserFirstname . "\n" .
$paidResult->ClientName ."\n" .
$paidResult->ClientFacDest . "\n" .
$paidResult->ClientFacAdr1 . "\n" .
$paidResult->ClientFacAdr2 . "\n" .
$paidResult->ClientFacAdr3 . "\n";
//$pdf->MultiCell(55, 5, $address, 1, 'L', 0, 1, '', '', true);
//$pdf->Ln(5);
$amount = $paidResult->amount / 100;
$amount_ht = $paidResult->amount_ht / 100;
$logotbl = <<<EOD
<img src="http://www.lendopolis.com/images/howto/partners/logo-scores-et-decisions-alt.jpg" width="150">
<br />
<br />
EOD;
$pdf->SetXY(20, 15);
$pdf->writeHTML($logotbl, true, false, false, false, '');
$facttbl = <<<EOD
<table cellspacing="0" cellpadding="1" border="1" width="220px">
<tr>
<th style="text-align: center;background-color:#E6E6FF" colspan="3">Facture</th>
</tr>
<tr>
<th style="text-align: center;background-color:#E6E6FF"> Facture</th>
<th style="text-align: center;background-color:#E6E6FF">Date</th>
<th style="text-align: center;background-color:#E6E6FF"> Client</th>
</tr>
<tr>
<td style="text-align: right">$paidResult->idCmd</td>
<td style="text-align: right">12/03/2017</td>
<td style="text-align: right">$paidResult->UserId</td>
</tr>
</table>
<br />
<br />
EOD;
$pdf->SetXY(110, 25);
$pdf->writeHTML($facttbl, true, false, false, false, '');
$prestattbl = <<<EOD
<table cellspacing="0" cellpadding="1" border="1" width="220px" style="font-size:10px;">
<tr>
<th style="text-align: center;background-color:#E6E6FF">Prestataire</th>
</tr>
<tr><td>SCORES & DECISIONS</td></tr>
<tr><td>8 RUE ROUGET DE LISLE</td></tr>
<tr><td>AXE SEINE IMMEUBLE A</td></tr>
<tr><td>92130 ISSY LES MOULINEAUX</td></tr>
<tr><td>Tél. : 01 75 43 61 02</td></tr>
<tr><td>Contact : compta@scores-decisions.com</td></tr>
<tr><td>R.C.S. : 2012B01581 RCS NANTERRE</td></tr>
<tr><td>N.I.I. : FR84 494967938</td></tr>
</table>
<br />
<br />
EOD;
$pdf->SetXY(20, 65);
$pdf->writeHTML($prestattbl, true, false, false, false, '');
$clienttbl = <<<EOD
<table cellspacing="0" cellpadding="1" border="1" width="220px" style="font-size:10px;">
<tr>
<th style="text-align: center;background-color:#E6E6FF">Destinataire</th>
</tr>
<tr><td>$paidResult->UserName . ' ' . $paidResult->UserFirstname</td></tr>
<tr><td>$paidResult->ClientFacAdr1</td></tr>
<tr><td>$paidResult->ClientFacAdr2</td></tr>
<tr><td>$paidResult->ClientFacAdr3</td></tr>
<tr><td>Tél. : 01 75 43 61 02</td></tr>
<tr><td>Contact : compta@scores-decisions.com</td></tr>
<tr><td>R.C.S. : 2012B01581 RCS NANTERRE</td></tr>
<tr><td>N.I.I. : FR84 494967938</td></tr>
</table>
<br />
<br />
EOD;
$pdf->SetXY(110, 65);
$pdf->writeHTML($clienttbl, true, false, false, false, '');
$detailtbl = <<<EOD
<table cellspacing="0" cellpadding="1" border="1" width="475" style="font-size:10px;">
<tr>
<th style="text-align: center;background-color:#E6E6FF">Date Commande</th>
<th style="text-align: center;background-color:#E6E6FF">Référence Commande</th>
<th style="text-align: center;background-color:#E6E6FF">Description Commande</th>
<th style="text-align: center;background-color:#E6E6FF">Quantité</th>
<th style="text-align: center;background-color:#E6E6FF">Prix H.T.</th>
<th style="text-align: center;background-color:#E6E6FF">Total H.T.</th>
</tr>
<tr><td>$paidResult->DateCmd</td>
<td>$paidResult->idCmd</td>
<td>Abonnement Extranet niveau1</td>
<td style="text-align: right;">$paidResult->nbCredit</td>
<td style="text-align: right;">$paidResult->amount_ht </td>
<td style="text-align: right;">$paidResult->amount_ht </td></tr>
</table>
<br />
<br />
EOD;
$pdf->SetXY(20, 140);
$pdf->writeHTML($detailtbl, true, false, false, false, '');
$totaltbl = <<<EOD
<table cellspacing="0" cellpadding="1" border="1" width="475" style="font-size:10px;">
<tr>
<th style="text-align: center;background-color:#E6E6FF">Total H.T.</th>
<th style="text-align: center;background-color:#E6E6FF">Taux T.V.A.</th>
<th style="text-align: center;background-color:#E6E6FF">Montant T.V.A.</th>
<th style="text-align: center;background-color:#E6E6FF">Total T.T.C.</th>
<th style="text-align: center;background-color:#E6E6FF">Net à payer</th>
</tr>
<tr><td style="text-align: right;">$paidResult->amount_ht </td>
<td style="text-align: right;">$paidResult->taux_tva</td>
<td style="text-align: right;">$paidResult->amount_tva </td>
<td style="text-align: right;">$paidResult->amount </td>
<td style="text-align: right;">$paidResult->amount </td></tr>
</table>
<br />
<br />
EOD;
$pdf->SetXY(20, 200);
$pdf->writeHTML($totaltbl, true, false, false, false, '');
// Close and output PDF document
$pdf->Output('bill_'.date('YmdHis').'.pdf', 'I');
echo 'inex'.__LINE__;die;
$this->_helper->layout()->disableLayout();
//}
}
public function testAction(){
$tbl=$this->render('billing');
}
}
?>

View File

@ -52,7 +52,7 @@ class Achatclient_PbanswerController extends Zend_Controller_Action
'valid' => $valid,
'date_received' => Date('Y-m-d H:i:s'),
'paybox_answer' => json_encode($infos),
'transaction' => json_encode(array('level' => 'Paybox Cancelled', 'date' => Date('Y-m-d H:i:s'),'user' => $user->identity->id)),
'transaction' => json_encode(array('level' => $this->msg, 'date' => Date('Y-m-d H:i:s'),'user' => $user->identity->id)),
'comment' => null,
);
$ws = new Scores_Ws_Client('credit', '0.1');

View File

@ -35,7 +35,7 @@ Une remarque ? <a href="<?=$this->url(array('controller'=>'index', 'action'=>'co
<form action="<?=$this->url(array('controller'=>'index', 'action'=>'paiement'))?>" method="POST" id="creditform">
<div class="credit">
<?php $ok=true;foreach($this->infos['tranches'] as $credit => $item):?>
<br><input type="radio" name="nb_credit" value="<?=$credit?>" <?php if($ok){?>checked="checked"<?php }$ok=false;?> />&nbsp;&nbsp;<?=$credit?>&nbsp;Crédits (<?=$item['montant']/100?> Euros)
<br><input type="radio" name="nb_credit" value="<?=$credit?>" <?php if($ok){?>checked="checked"<?php }$ok=false;?> />&nbsp;&nbsp;<?=$credit?>&nbsp;Crédits (<?=$item['montantht']/100?> Euros H.T.)
<?php endforeach;?>
</div>
<div class="submit">
@ -57,7 +57,7 @@ Une remarque ? <a href="<?=$this->url(array('controller'=>'index', 'action'=>'co
<?php foreach($this->infos['paid'] as $row):?>
<tr><td></td>
<td><?=Date('d/m/Y H:i:s',strtotime($row['date_sent']))?></td>
<td class="nbr"><?=$row['amount']/100?>&nbsp;Euros</td>
<td class="nbr"><?=$row['amount']/100?>&nbsp;Euros TTC</td>
<td class="nbr"><?=$row['nbCredit']?>&nbsp;Credits</td>
<td><?=($row['valid']==0?'Annulée':'Enregistrée')?></td>
<td><?=($row['valid']==1?Date('d/m/Y',strtotime($row['date_sent'])+365*24*3600):'-')?></td>
@ -73,7 +73,10 @@ Une remarque ? <a href="<?=$this->url(array('controller'=>'index', 'action'=>'co
<tr><td></td>
<td><?=Date('d/m/Y H:i:s',strtotime($row['created']))?></td>
<td class="nbr"><?=$row['consumption']?>&nbsp;Credit</td>
<td><?=$row['idLog']?></td>
<td><?php
if(isset($this->infos['libelle'][$row['idLog']]))
{echo $this->infos['libelle'][$row['idLog']];}
else{echo $row['idLog'];}?></td>
</tr>
<?php endforeach;?>
</table>

View File

@ -29,14 +29,14 @@ td.nbr{
<div class="credit">
<?php if ($this->PayboxValues) {?>
<?=$this->PayboxVerif?>
<form method="post" action="<?=$this->PayboxUrl?>">
<form method="post" action="<?=$this->PayboxUrl?>" class="form-inline horizontal">
<?php foreach ( $this->PayboxValues as $field) {?>
<input type="hidden" name="<?=$field['name']?>" value="<?=$field['value']?>" />
<?php }?>
<input type="submit" class="btn btn-primary" value="Paiement"/>
<input type="submit" class="button ui-button ui-corner-all ui-widget" value="Paiement"/>
<a href="/achatclient/" class="button ui-button ui-corner-all ui-widget">Abandon</a>
</form>
</div>
<?php // }?>

View File

@ -284,9 +284,10 @@ class EvaluationController extends Zend_Controller_Action
if ($indiscore === false) {
$this->forward('soap', 'error');
}
$identite = $ws->getIdentite($siren);
$infos = $ws->getRatios($siren, 'indiscore2');
$identite = $ws->getIdentite($siren);
$ws->freeService=false;
$infos = $ws->getRatios($siren, 'indiscore2');
if ($infos === false) $this->forward('soap', 'error');
$score = array();
$tabRatio = array(
@ -467,6 +468,7 @@ class EvaluationController extends Zend_Controller_Action
$email = $request->getParam('email', '');
$infos = $ws->getRapport($siren, 3, 0, $plus, $ref, $encours, $email);
if(empty($infos)){$this->_forward('soap', 'error');}
$this->logger->info(print_r($infos,1));
if ($infos === false) {
$this->forward('soap', 'error');
@ -1047,7 +1049,9 @@ class EvaluationController extends Zend_Controller_Action
$email = $request->getParam('email', '');
$infos = $ws->getEntrepriseValo($siren);
if(empty($infos)){
$this->_forward('soap', 'error');
}
require_once 'Scores/RapportComment.php';
$rapportComment = new RapportComment($siren, $this->id,
$infos->Indiscore->tabCommentaires->item,

View File

@ -1086,6 +1086,9 @@ class FinanceController extends Zend_Controller_Action
$this->view->assign('raisonSociale', $entreprise->getRaisonSociale());
$infos = $ws->getRatios($siren, 'flux');
if ($infos === false) {
$this->forward('soap', 'error');
}
//Formattage des données
$ratiosData = new Scores_Finance_Ratios_Data($infos);

View File

@ -1146,6 +1146,9 @@ class IdentiteController extends Zend_Controller_Action
$ws = new WsScores();
$infos = $ws->getListeEvenements($siren, $nic, $position, $nbReponses);
if ($infos === false) {
$this->forward('soap', 'error');
}
$evens = $infos->result->item;
$this->view->assign('evens', $evens);
@ -1626,6 +1629,9 @@ class IdentiteController extends Zend_Controller_Action
$ws = new WsScores();
$result = $ws->getGroupeInfos($siren);
if ($result === false) {
$this->forward('soap', 'error');
}
$this->view->assign('result', $result);
$this->view->assign('siren', $siren);

View File

@ -559,6 +559,7 @@ class JuridiqueController extends Zend_Controller_Action
$this->view->assign('raisonSociale', $session->getRaisonSociale());
$ws = new WsScores();
$infos = $ws->getListeConventions($siren);
if ($infos === false) $this->_forward('soap', 'error');
$conventions = $infos->result->item;
$this->logger->info(print_r($conventions,1));
$this->view->assign('conventions', $conventions);

40
composer.lock generated
View File

@ -270,16 +270,16 @@
},
{
"name": "monolog/monolog",
"version": "1.22.0",
"version": "1.22.1",
"source": {
"type": "git",
"url": "https://github.com/Seldaek/monolog.git",
"reference": "bad29cb8d18ab0315e6c477751418a82c850d558"
"reference": "1e044bc4b34e91743943479f1be7a1d5eb93add0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Seldaek/monolog/zipball/bad29cb8d18ab0315e6c477751418a82c850d558",
"reference": "bad29cb8d18ab0315e6c477751418a82c850d558",
"url": "https://api.github.com/repos/Seldaek/monolog/zipball/1e044bc4b34e91743943479f1be7a1d5eb93add0",
"reference": "1e044bc4b34e91743943479f1be7a1d5eb93add0",
"shasum": ""
},
"require": {
@ -344,7 +344,7 @@
"logging",
"psr-3"
],
"time": "2016-11-26T00:15:39+00:00"
"time": "2017-03-13T07:08:03+00:00"
},
{
"name": "phpoffice/phpexcel",
@ -604,16 +604,16 @@
},
{
"name": "symfony/browser-kit",
"version": "v3.2.4",
"version": "v3.2.6",
"source": {
"type": "git",
"url": "https://github.com/symfony/browser-kit.git",
"reference": "394a2475a3a89089353fde5714a7f402fbb83880"
"reference": "2fe0caa60c1a1dfeefd0425741182687a9b382b8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/browser-kit/zipball/394a2475a3a89089353fde5714a7f402fbb83880",
"reference": "394a2475a3a89089353fde5714a7f402fbb83880",
"url": "https://api.github.com/repos/symfony/browser-kit/zipball/2fe0caa60c1a1dfeefd0425741182687a9b382b8",
"reference": "2fe0caa60c1a1dfeefd0425741182687a9b382b8",
"shasum": ""
},
"require": {
@ -657,20 +657,20 @@
],
"description": "Symfony BrowserKit Component",
"homepage": "https://symfony.com",
"time": "2017-01-31T21:49:23+00:00"
"time": "2017-02-21T09:12:04+00:00"
},
{
"name": "symfony/css-selector",
"version": "v3.2.4",
"version": "v3.2.6",
"source": {
"type": "git",
"url": "https://github.com/symfony/css-selector.git",
"reference": "f0e628f04fc055c934b3211cfabdb1c59eefbfaa"
"reference": "a48f13dc83c168f1253a5d2a5a4fb46c36244c4c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/css-selector/zipball/f0e628f04fc055c934b3211cfabdb1c59eefbfaa",
"reference": "f0e628f04fc055c934b3211cfabdb1c59eefbfaa",
"url": "https://api.github.com/repos/symfony/css-selector/zipball/a48f13dc83c168f1253a5d2a5a4fb46c36244c4c",
"reference": "a48f13dc83c168f1253a5d2a5a4fb46c36244c4c",
"shasum": ""
},
"require": {
@ -710,20 +710,20 @@
],
"description": "Symfony CssSelector Component",
"homepage": "https://symfony.com",
"time": "2017-01-02T20:32:22+00:00"
"time": "2017-02-21T09:12:04+00:00"
},
{
"name": "symfony/dom-crawler",
"version": "v3.2.4",
"version": "v3.2.6",
"source": {
"type": "git",
"url": "https://github.com/symfony/dom-crawler.git",
"reference": "b814b41373fc4e535aff8c765abe39545216f391"
"reference": "403944e294cf4ceb3b8447f54cbad88ea7b99cee"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/dom-crawler/zipball/b814b41373fc4e535aff8c765abe39545216f391",
"reference": "b814b41373fc4e535aff8c765abe39545216f391",
"url": "https://api.github.com/repos/symfony/dom-crawler/zipball/403944e294cf4ceb3b8447f54cbad88ea7b99cee",
"reference": "403944e294cf4ceb3b8447f54cbad88ea7b99cee",
"shasum": ""
},
"require": {
@ -766,7 +766,7 @@
],
"description": "Symfony DomCrawler Component",
"homepage": "https://symfony.com",
"time": "2017-01-21T17:14:11+00:00"
"time": "2017-02-21T09:12:04+00:00"
},
{
"name": "symfony/polyfill-mbstring",

View File

@ -198,6 +198,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
$this->decLog('getContactEt');
return $cache->getBlock();
}
}
@ -289,6 +290,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
if(!$this->decLog('getValo')){return false;}
return $cache->getBlock();
}
}
@ -1177,6 +1179,7 @@ class WsScores
$params = new stdClass();
$params->siren = $siren;
$client = $this->loadClient('interne');
if(!$this->decLog('getGroupeInfos')){return false;}
try {
$reponse = $client->getGroupeInfos($params);
return $reponse->getGroupeInfosResult;
@ -1207,6 +1210,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
$this->decLog('getGroupesArbo');
return $cache->getBlock();
}
}
@ -1310,6 +1314,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
$this->decLog('getListeDepots');
return $cache->getBlock();
}
}
@ -1480,11 +1485,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
$wsc = new Scores_Ws_Client('credit', '0.1');
$params = new stdClass();
$params->idLog = 'getRapport';
$infocredit = $wsc->useCredit($params);
if(!$this->decLog('getRapport')){return false;}
return $cache->getBlock();
}
}
@ -1599,12 +1600,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
if(!$this->freeService){
$wsc = new Scores_Ws_Client('credit', '0.1');
$params = new stdClass();
$params->idLog = 'getIndiscore';
$infocredit = $wsc->useCredit($params);
}
if(!$this->decLog('getIndiScore')){return false;}
return $cache->getBlock();
}
}
@ -1915,7 +1911,8 @@ class WsScores
$filename = 'listejalcollecte';
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
return $cache->getBlock();
$this->decLog('getListeJalCollecte');
return $cache->getBlock();
}
$params = new stdClass();
$client = $this->loadClient('interne');
@ -2078,6 +2075,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
if(!$this->decLog('getMarques')){return false;}
return $cache->getBlock();
}
}
@ -2111,6 +2109,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
if(!$this->decLog('getListeConventions')){return false;}
return $cache->getBlock();
}
}
@ -2145,6 +2144,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
if(!$this->decLog('getListeCompetences')){return false;}
return $cache->getBlock();
}
}
@ -2179,6 +2179,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
if(!$this->decLog('getInfosReg')){return false;}
return $cache->getBlock();
}
}
@ -2238,6 +2239,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
if(!$this->decLog('getAnnoncesBalo')){return false;}
return $cache->getBlock();
}
}
@ -2273,6 +2275,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
if(!$this->decLog('getAnnoncesBoamp')){return false;}
return $cache->getBlock();
}
}
@ -2312,6 +2315,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
if(!$this->decLog('getAnnoncesAsso')){return false;}
return $cache->getBlock();
}
}
@ -2343,6 +2347,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
if(!$this->decLog('getAnnoncesLegales')){return false;}
return $cache->getBlock();
}
}
@ -2383,6 +2388,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
$this->decLog('getAnnonces');
return $cache->getBlock();
}
}
@ -2479,6 +2485,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
if(!$this->decLog('getListeBilans')){return false;}
return $cache->getBlock();
}
}
@ -2513,6 +2520,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
if(!$this->decLog('getBilan')){return false;}
return $cache->getBlock();
}
}
@ -2547,6 +2555,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
if(!$this->decLog('getBanques')){return false;}
return $cache->getBlock();
}
}
@ -2578,6 +2587,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
if(!$this->decLog('getInfosBourse')){return false;}
return $cache->getBlock();
}
}
@ -2614,11 +2624,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
$wsc = new Scores_Ws_Client('credit', '0.1');
$params = new stdClass();
$params->idLog = 'get'.ucfirst($page);
$infocredit = $wsc->useCredit($params);
if(!$this->decLog('get'.ucfirst($page))){return false;}
return $cache->getBlock();
}
}
@ -2653,6 +2659,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
if(!$this->decLog('getDirigeants')){return false;}
return $cache->getBlock();
}
}
@ -2685,6 +2692,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
$this->decLog('getDirigeantsOp');
return $cache->getBlock();
}
}
@ -2743,6 +2751,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
$this->decLog('getAvisRncs');
return $cache->getBlock();
}
}
@ -2815,6 +2824,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
if(!$this->decLog('getIdentite')){return false;}
return $cache->getBlock();
}
}
@ -2853,6 +2863,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
if(!$this->decLog('getIdentiteProcol')){return false;}
return $cache->getBlock();
}
}
@ -2887,6 +2898,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
$this->decLog('getLiensById');
return $cache->getBlock();
}
}
@ -2923,6 +2935,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
if(!$this->decLog('getLiens')){return false;}
return $cache->getBlock();
}
}
@ -2962,6 +2975,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
if(!$this->decLog('getListeEvenements')){return false;}
return $cache->getBlock();
}
}
@ -3001,6 +3015,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
if(!$this->decLog('getListeEtablissements')){return false;}
return $cache->getBlock();
}
}
@ -3043,6 +3058,7 @@ class WsScores
if ($this->cacheWrite) {
$cache = new Cache($filename);
if ($cache->exist() && $this->cacheEnable ){
$this->decLog('getEtablissementsGeo');
return $cache->getBlock();
}
}
@ -3416,4 +3432,14 @@ class WsScores
}
}
}
private function decLog($idLog){
if(!$this->freeService){
$wsc = new Scores_Ws_Client('credit', '0.1');
$params = new stdClass();
$params->idLog = $idLog;
$infocredit = $wsc->useCredit($params);
return $infocredit->result;
}
return $this->freeService;
}
}