Mise a jours de Giant avec quelques nouvelles fonctionnalités

This commit is contained in:
Damien LASSERRE 2011-08-25 09:17:40 +00:00
parent 8463a7a3b6
commit d9a9f199e9

View File

@ -103,15 +103,10 @@ Class GiantRechercheController extends GiantFunctionController
public function GetRapport($CompanyId, $DataSetType)
{
$cache = new Cache('giant-'.$DataSetType.'-'.$CompanyId);
if(!$cache->exist()) {
$this->CreditData = new CreditData($this->soapG, $CompanyId);
$result = $this->CreditData->getMethode('OrderDataSet', array($DataSetType));
$result = $this->CreditData->getMethode('RetrieveDataSet', array($result->Order->InternalOrderId));
$cache->setBlock($result);
} else {
$result = $cache->getBlock();
}
$this->CreditData = new CreditData($this->soapG, $CompanyId);
$result = $this->CreditData->getMethode('OrderDataSet', array($DataSetType));
$result = $this->CreditData->getMethode('RetrieveDataSet', array($result->Order->InternalOrderId));
$cache->setBlock($result);
return ($result);
}