Autoloading for AvisSituation and Iris

This commit is contained in:
Michael RICOIS 2013-11-18 08:30:52 +00:00
parent 72886462ca
commit fbb20b81c5
3 changed files with 4 additions and 6 deletions

View File

@ -1037,8 +1037,7 @@ class IdentiteController extends Zend_Controller_Action
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
// ==> Start
require_once 'Scores/AvisSituation.php';
$avis = new AvisSituation($this->siret);
$avis = new Scores_Insee_AvisSituation($this->siret);
if (!$avis->erreur()){
$avis->erreurcpt('raz');
@ -1076,8 +1075,7 @@ class IdentiteController extends Zend_Controller_Action
$request = $this->getRequest();
$codeCommune = $request->getParam('code');
// ==> Start
require_once 'Scores/Iris.php';
$iris = new Iris($codeCommune);
$iris = new Scores_Insee_Iris($codeCommune);
$body = $iris->get('pdf');
if($body !== false) {
header("Pragma: public");

View File

@ -1,5 +1,5 @@
<?php
class AvisSituation
class Scores_Insee_AvisSituation
{
protected static $timeout = 10;
protected static $retryDelay = 300;

View File

@ -1,5 +1,5 @@
<?php
class Iris
class Scores_Insee_Iris
{
protected static $timeout = 10;
protected $pathIrisPdf;