Add logger var

This commit is contained in:
Michael RICOIS 2017-02-13 12:02:09 +01:00
parent af0d432680
commit 3f814645e5
23 changed files with 140 additions and 7 deletions

View File

@ -3,6 +3,12 @@ class AideController extends Zend_Controller_Action
{ {
protected $theme; protected $theme;
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init() public function init()
{ {
// --- Theme // --- Theme

View File

@ -14,6 +14,12 @@ class AuthController extends Zend_Controller_Action
) )
); );
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init() public function init()
{ {
// --- Theme // --- Theme

View File

@ -3,6 +3,12 @@ class BdfController extends Zend_Controller_Action
{ {
protected $theme; protected $theme;
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init() public function init()
{ {
// --- Theme // --- Theme

View File

@ -101,6 +101,12 @@ class DashboardController extends Zend_Controller_Action
'aUA' => 'ATTESTATION DU CONJOINT COMMUN EN BIENS', 'aUA' => 'ATTESTATION DU CONJOINT COMMUN EN BIENS',
); );
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
/** /**
* Return a ramdom password * Return a ramdom password
* @param int $length * @param int $length

View File

@ -5,6 +5,12 @@ class DirigeantController extends Zend_Controller_Action
protected $siret; protected $siret;
protected $id; protected $id;
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init() public function init()
{ {
// --- Theme // --- Theme

View File

@ -3,6 +3,12 @@ class ErrorController extends Zend_Controller_Action
{ {
protected $theme; protected $theme;
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init() public function init()
{ {
// --- Theme // --- Theme

View File

@ -5,6 +5,12 @@ class EvaluationController extends Zend_Controller_Action
protected $siret = null; protected $siret = null;
protected $id = 0; protected $id = 0;
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init() public function init()
{ {
// --- Theme // --- Theme

View File

@ -5,6 +5,12 @@ class FinanceController extends Zend_Controller_Action
protected $siret = null; protected $siret = null;
protected $id = 0; protected $id = 0;
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init() public function init()
{ {
// --- Theme // --- Theme
@ -1042,10 +1048,10 @@ class FinanceController extends Zend_Controller_Action
} else { } else {
$infos = $this->getRequest()->getParam('infos'); $infos = $this->getRequest()->getParam('infos');
} }
$user = new Scores_Utilisateur(); $user = new Scores_Utilisateur();
$this->view->assign('edition', $user->checkModeEdition()); $this->view->assign('edition', $user->checkModeEdition());
$entreprise = new Scores_Session_Entreprise($this->siret, $this->id); $entreprise = new Scores_Session_Entreprise($this->siret, $this->id);
$this->view->assign('banques', $infos->result->item); $this->view->assign('banques', $infos->result->item);

View File

@ -40,6 +40,11 @@ class GiantController extends Zend_Controller_Action
'NL' => 'The Netherlands', 'NL' => 'The Netherlands',
); );
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init() public function init()
{ {
@ -409,7 +414,7 @@ class GiantController extends Zend_Controller_Action
{ {
$this->_helper->layout()->disableLayout(); $this->_helper->layout()->disableLayout();
$this->view->headScript()->appendFile($this->theme->pathScript.'/giant_monitoring.js', 'text/javascript'); $this->view->headScript()->appendFile($this->theme->pathScript.'/giant_monitoring.js', 'text/javascript');
$this->view->headScript()->appendFile$this->theme->pathScript.'/giant.js', 'text/javascript'); $this->view->headScript()->appendFile($this->theme->pathScript.'/giant.js', 'text/javascript');
$auth = Zend_Auth::getInstance(); $auth = Zend_Auth::getInstance();
$identity = $auth->getIdentity(); $identity = $auth->getIdentity();
$result = $auth->getStorage()->read($identity); $result = $auth->getStorage()->read($identity);

View File

@ -5,6 +5,12 @@ class IdentiteController extends Zend_Controller_Action
protected $siret = null; protected $siret = null;
protected $id = 0; protected $id = 0;
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init() public function init()
{ {
// --- Theme // --- Theme

View File

@ -3,6 +3,12 @@ class IndexController extends Zend_Controller_Action
{ {
protected $theme; protected $theme;
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
/** /**
* Page d'accueil et de redirection * Page d'accueil et de redirection
*/ */

View File

@ -5,6 +5,12 @@ class JuridiqueController extends Zend_Controller_Action
protected $siret = null; protected $siret = null;
protected $id = 0; protected $id = 0;
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init() public function init()
{ {
// --- Theme // --- Theme

View File

@ -4,6 +4,12 @@ class LogoController extends Zend_Controller_Action
protected $theme; protected $theme;
protected $pathLogo = ''; protected $pathLogo = '';
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init() public function init()
{ {
// --- Theme // --- Theme

View File

@ -54,6 +54,12 @@ class MandataireController extends Zend_Controller_Action
array( "triId"=>"1798", "triCode"=>"AGENL", "triNom"=>"Cour d'Appel d'Agen", "triCP"=>"47916" ), array( "triId"=>"1798", "triCode"=>"AGENL", "triNom"=>"Cour d'Appel d'Agen", "triCP"=>"47916" ),
); );
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init() public function init()
{ {
// --- Theme // --- Theme

View File

@ -3,6 +3,12 @@ class OrderController extends Zend_Controller_Action
{ {
protected $theme; protected $theme;
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init() public function init()
{ {
// --- Theme // --- Theme

View File

@ -18,6 +18,12 @@ class PiecesController extends Zend_Controller_Action
protected $siret; protected $siret;
protected $id; protected $id;
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init() public function init()
{ {
// --- Theme // --- Theme

View File

@ -3,6 +3,12 @@ class PrintController extends Zend_Controller_Action
{ {
protected $theme; protected $theme;
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init() public function init()
{ {
// --- Theme // --- Theme

View File

@ -3,6 +3,12 @@ class RechercheController extends Zend_Controller_Action
{ {
protected $theme; protected $theme;
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init() public function init()
{ {
// --- Theme // --- Theme

View File

@ -230,10 +230,6 @@ class SaisieController extends Zend_Controller_Action
* Genre * Genre
* @var array * @var array
*/ */
/**
* civilité en dur
* @todo verifier si liste à jour civilité
*/
protected $selectGenre = array( protected $selectGenre = array(
'' => '-', '' => '-',
'M.' => 'M', 'M.' => 'M',
@ -242,6 +238,12 @@ class SaisieController extends Zend_Controller_Action
'Societe' => 'STE' 'Societe' => 'STE'
); );
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init() public function init()
{ {
// --- Theme // --- Theme

View File

@ -35,6 +35,12 @@ class SurveillanceController extends Zend_Controller_Action
'liens' => 'survliens', 'liens' => 'survliens',
); );
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init() public function init()
{ {
// --- Theme // --- Theme

View File

@ -13,6 +13,12 @@ class TelechargementController extends Zend_Controller_Action
*/ */
protected $path = ''; protected $path = '';
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init() public function init()
{ {
$this->_helper->layout()->disableLayout(); $this->_helper->layout()->disableLayout();

View File

@ -28,6 +28,12 @@ class UserController extends Zend_Controller_Action
return $new_password; return $new_password;
} }
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init() public function init()
{ {
// --- Theme // --- Theme

View File

@ -4,6 +4,12 @@ class WorldcheckController extends Zend_Controller_Action
protected $theme; protected $theme;
protected $wcConfig; protected $wcConfig;
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init() public function init()
{ {
// --- Theme // --- Theme