Ajout de todo

This commit is contained in:
Michael RICOIS 2012-02-02 09:40:58 +00:00
parent aa6b4b6d30
commit c97312b21e

View File

@ -29,10 +29,10 @@ class RapportComment
$this->siren = substr($siret, 0,9); $this->siren = substr($siret, 0,9);
//Traitement des ratios //Traitement des ratios
foreach($ratios->RatiosInfos->item as $item){ foreach($ratios->RatiosInfos->item as $item){ //@todo : protection
$this->ratiosInfos[$item->id] = $item; $this->ratiosInfos[$item->id] = $item;
} }
foreach($ratios->BilansInfos->item as $item){ foreach($ratios->BilansInfos->item as $item){ //@todo : protection
if ($item->typeBilan == 'N') { if ($item->typeBilan == 'N') {
$this->bilansInfos[$item->dateCloture] = $item; $this->bilansInfos[$item->dateCloture] = $item;
foreach($item->RatiosEntrep->item as $ratiosItem){ foreach($item->RatiosEntrep->item as $ratiosItem){
@ -43,7 +43,7 @@ class RapportComment
ksort($this->bilansInfos); ksort($this->bilansInfos);
ksort($this->ratiosEntrep); ksort($this->ratiosEntrep);
foreach($ratios->RatiosSecteur->item as $item){ foreach($ratios->RatiosSecteur->item as $item){ //@todo : protection
foreach($item->liste->item as $ratiosItem){ foreach($item->liste->item as $ratiosItem){
$this->ratiosSecteur[$item->annee][$ratiosItem->id] = $ratiosItem->val; $this->ratiosSecteur[$item->annee][$ratiosItem->id] = $ratiosItem->val;
} }
@ -539,7 +539,7 @@ class RapportComment
'style' => $matches[2], 'style' => $matches[2],
); );
$tabRatio = $tabProjection[$titreRatio.'_Y']; $tabRatio = $tabProjection[$titreRatio.'_Y'];
krsort($tabRatio); krsort($tabRatio); // @todo : il se peut que $tabRatio = null
foreach ( $tabRatio as $key => $valRatio ){ foreach ( $tabRatio as $key => $valRatio ){
$index = (int)substr($key,0,4); $index = (int)substr($key,0,4);
$data[$index][$nbRatio] = $valRatio; $data[$index][$nbRatio] = $valRatio;