Simplification

This commit is contained in:
Michael RICOIS 2012-02-22 15:28:19 +00:00
parent f5f3711cbf
commit 21f4d8824c
7 changed files with 9 additions and 17 deletions

View File

@ -11,9 +11,7 @@ class EconomiqueController extends Libs_Controller
{
require_once('Scores/Field.php');
$this->view->headLink()->appendStylesheet('/themes/default/styles/'.$this->getRequest()->getControllerName().'.css', 'all');
$auth = Zend_Auth::getInstance();
$user = $auth->getIdentity();
$field = new Fields($user->username);
$field = new Fields();
$this->view->fields = $field;
}

View File

@ -11,9 +11,7 @@ class EntrepriseController extends Libs_Controller
{
require_once('Scores/Field.php');
$this->view->headLink()->appendStylesheet('/themes/default/styles/'.$this->getRequest()->getControllerName().'.css', 'all');
$auth = Zend_Auth::getInstance();
$user = $auth->getIdentity();
$field = new Fields($user->username);
$field = new Fields();
$this->view->fields = $field;
}

View File

@ -14,7 +14,7 @@ class FinancierController extends Libs_Controller
$this->view->headLink()->appendStylesheet('/themes/default/styles/'.$this->getRequest()->getControllerName().'.css', 'all');
$auth = Zend_Auth::getInstance();
$user = $auth->getIdentity();
$field = new Fields($user->username);
$field = new Fields();
$this->view->fields = $field;
}

View File

@ -14,7 +14,7 @@ class GeographiqueController extends Libs_Controller
$this->view->headLink()->appendStylesheet('/themes/default/styles/'.$this->getRequest()->getControllerName().'.css', 'all');
$auth = Zend_Auth::getInstance();
$user = $auth->getIdentity();
$field = new Fields($user->username);
$field = new Fields();
$this->view->fields = $field;
}

View File

@ -12,9 +12,7 @@ class JuridiqueController extends Libs_Controller
{
require_once('Scores/Field.php');
$this->view->headLink()->appendStylesheet('/themes/default/styles/'.$this->getRequest()->getControllerName().'.css', 'all');
$auth = Zend_Auth::getInstance();
$user = $auth->getIdentity();
$field = new Fields($user->username);
$field = new Fields();
$this->view->fields = $field;
}

View File

@ -68,10 +68,8 @@ class Object_Comptage extends Libs_Row
$sessionValeur = $session->getCritere($key);
$session->setCritere($key, $valeur);
$auth = Zend_Auth::getInstance();
$user = $auth->getIdentity();
require_once 'Scores/Field.php';
$field = new Fields($user->username);
$field = new Fields();
//Comptage
require_once 'Scores/Ciblage.php';
@ -84,8 +82,8 @@ class Object_Comptage extends Libs_Row
//Retour comptage, unité Insee
$result = array(
'count' => number_format($total, 0, '', ' '),
'insee' => number_format($insee, 0, '', ' ')
'count' => number_format($total, 0, '', ' '),
'insee' => number_format($insee, 0, '', ' ')
);
return (json_encode($result));
}

View File

@ -772,7 +772,7 @@ Class Fields
return ($value);
}
public function __construct($login = null)
public function __construct()
{
require_once('Scores/SessionCiblage.php');
$session = new SessionCiblage();