Autoloading for AvisSituation and Iris
This commit is contained in:
parent
72886462ca
commit
fbb20b81c5
@ -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");
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
class AvisSituation
|
||||
class Scores_Insee_AvisSituation
|
||||
{
|
||||
protected static $timeout = 10;
|
||||
protected static $retryDelay = 300;
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
class Iris
|
||||
class Scores_Insee_Iris
|
||||
{
|
||||
protected static $timeout = 10;
|
||||
protected $pathIrisPdf;
|
Loading…
Reference in New Issue
Block a user