From 3f814645e5d432d187fcd275685753320f2408d5 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Mon, 13 Feb 2017 12:02:09 +0100 Subject: [PATCH] Add logger var --- .../modules/default/controllers/AideController.php | 6 ++++++ .../modules/default/controllers/AuthController.php | 6 ++++++ .../modules/default/controllers/BdfController.php | 6 ++++++ .../default/controllers/DashboardController.php | 6 ++++++ .../default/controllers/DirigeantController.php | 6 ++++++ .../modules/default/controllers/ErrorController.php | 6 ++++++ .../default/controllers/EvaluationController.php | 6 ++++++ .../modules/default/controllers/FinanceController.php | 10 ++++++++-- .../modules/default/controllers/GiantController.php | 7 ++++++- .../modules/default/controllers/IdentiteController.php | 6 ++++++ .../modules/default/controllers/IndexController.php | 6 ++++++ .../default/controllers/JuridiqueController.php | 6 ++++++ .../modules/default/controllers/LogoController.php | 6 ++++++ .../default/controllers/MandataireController.php | 6 ++++++ .../modules/default/controllers/OrderController.php | 6 ++++++ .../modules/default/controllers/PiecesController.php | 6 ++++++ .../modules/default/controllers/PrintController.php | 6 ++++++ .../default/controllers/RechercheController.php | 6 ++++++ .../modules/default/controllers/SaisieController.php | 10 ++++++---- .../default/controllers/SurveillanceController.php | 6 ++++++ .../default/controllers/TelechargementController.php | 6 ++++++ .../modules/default/controllers/UserController.php | 6 ++++++ .../default/controllers/WorldcheckController.php | 6 ++++++ 23 files changed, 140 insertions(+), 7 deletions(-) diff --git a/application/modules/default/controllers/AideController.php b/application/modules/default/controllers/AideController.php index ca027b8a7..47fa01c5a 100644 --- a/application/modules/default/controllers/AideController.php +++ b/application/modules/default/controllers/AideController.php @@ -3,6 +3,12 @@ class AideController extends Zend_Controller_Action { protected $theme; + /** + * Logger + * @var \Monolog\Logger + */ + protected $logger; + public function init() { // --- Theme diff --git a/application/modules/default/controllers/AuthController.php b/application/modules/default/controllers/AuthController.php index 4af345f78..c344942c9 100644 --- a/application/modules/default/controllers/AuthController.php +++ b/application/modules/default/controllers/AuthController.php @@ -14,6 +14,12 @@ class AuthController extends Zend_Controller_Action ) ); + /** + * Logger + * @var \Monolog\Logger + */ + protected $logger; + public function init() { // --- Theme diff --git a/application/modules/default/controllers/BdfController.php b/application/modules/default/controllers/BdfController.php index 14257f7d5..0d0634f92 100644 --- a/application/modules/default/controllers/BdfController.php +++ b/application/modules/default/controllers/BdfController.php @@ -3,6 +3,12 @@ class BdfController extends Zend_Controller_Action { protected $theme; + /** + * Logger + * @var \Monolog\Logger + */ + protected $logger; + public function init() { // --- Theme diff --git a/application/modules/default/controllers/DashboardController.php b/application/modules/default/controllers/DashboardController.php index 07001a534..127eca8df 100644 --- a/application/modules/default/controllers/DashboardController.php +++ b/application/modules/default/controllers/DashboardController.php @@ -101,6 +101,12 @@ class DashboardController extends Zend_Controller_Action 'aUA' => 'ATTESTATION DU CONJOINT COMMUN EN BIENS', ); + /** + * Logger + * @var \Monolog\Logger + */ + protected $logger; + /** * Return a ramdom password * @param int $length diff --git a/application/modules/default/controllers/DirigeantController.php b/application/modules/default/controllers/DirigeantController.php index 8dc833678..3c2a96ca6 100644 --- a/application/modules/default/controllers/DirigeantController.php +++ b/application/modules/default/controllers/DirigeantController.php @@ -5,6 +5,12 @@ class DirigeantController extends Zend_Controller_Action protected $siret; protected $id; + /** + * Logger + * @var \Monolog\Logger + */ + protected $logger; + public function init() { // --- Theme diff --git a/application/modules/default/controllers/ErrorController.php b/application/modules/default/controllers/ErrorController.php index b60679658..908ffb938 100644 --- a/application/modules/default/controllers/ErrorController.php +++ b/application/modules/default/controllers/ErrorController.php @@ -3,6 +3,12 @@ class ErrorController extends Zend_Controller_Action { protected $theme; + /** + * Logger + * @var \Monolog\Logger + */ + protected $logger; + public function init() { // --- Theme diff --git a/application/modules/default/controllers/EvaluationController.php b/application/modules/default/controllers/EvaluationController.php index 5b15a4bb8..188de15aa 100644 --- a/application/modules/default/controllers/EvaluationController.php +++ b/application/modules/default/controllers/EvaluationController.php @@ -5,6 +5,12 @@ class EvaluationController extends Zend_Controller_Action protected $siret = null; protected $id = 0; + /** + * Logger + * @var \Monolog\Logger + */ + protected $logger; + public function init() { // --- Theme diff --git a/application/modules/default/controllers/FinanceController.php b/application/modules/default/controllers/FinanceController.php index a6607e907..41d2cc29f 100644 --- a/application/modules/default/controllers/FinanceController.php +++ b/application/modules/default/controllers/FinanceController.php @@ -5,6 +5,12 @@ class FinanceController extends Zend_Controller_Action protected $siret = null; protected $id = 0; + /** + * Logger + * @var \Monolog\Logger + */ + protected $logger; + public function init() { // --- Theme @@ -1042,10 +1048,10 @@ class FinanceController extends Zend_Controller_Action } else { $infos = $this->getRequest()->getParam('infos'); } - + $user = new Scores_Utilisateur(); $this->view->assign('edition', $user->checkModeEdition()); - + $entreprise = new Scores_Session_Entreprise($this->siret, $this->id); $this->view->assign('banques', $infos->result->item); diff --git a/application/modules/default/controllers/GiantController.php b/application/modules/default/controllers/GiantController.php index 92077d2b2..c019e78ba 100644 --- a/application/modules/default/controllers/GiantController.php +++ b/application/modules/default/controllers/GiantController.php @@ -40,6 +40,11 @@ class GiantController extends Zend_Controller_Action 'NL' => 'The Netherlands', ); + /** + * Logger + * @var \Monolog\Logger + */ + protected $logger; public function init() { @@ -409,7 +414,7 @@ class GiantController extends Zend_Controller_Action { $this->_helper->layout()->disableLayout(); $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(); $identity = $auth->getIdentity(); $result = $auth->getStorage()->read($identity); diff --git a/application/modules/default/controllers/IdentiteController.php b/application/modules/default/controllers/IdentiteController.php index f4693dfde..7af1f0df7 100644 --- a/application/modules/default/controllers/IdentiteController.php +++ b/application/modules/default/controllers/IdentiteController.php @@ -5,6 +5,12 @@ class IdentiteController extends Zend_Controller_Action protected $siret = null; protected $id = 0; + /** + * Logger + * @var \Monolog\Logger + */ + protected $logger; + public function init() { // --- Theme diff --git a/application/modules/default/controllers/IndexController.php b/application/modules/default/controllers/IndexController.php index 23ea45dc2..8c649c555 100644 --- a/application/modules/default/controllers/IndexController.php +++ b/application/modules/default/controllers/IndexController.php @@ -3,6 +3,12 @@ class IndexController extends Zend_Controller_Action { protected $theme; + /** + * Logger + * @var \Monolog\Logger + */ + protected $logger; + /** * Page d'accueil et de redirection */ diff --git a/application/modules/default/controllers/JuridiqueController.php b/application/modules/default/controllers/JuridiqueController.php index 8321e20f8..f45d10ad9 100644 --- a/application/modules/default/controllers/JuridiqueController.php +++ b/application/modules/default/controllers/JuridiqueController.php @@ -5,6 +5,12 @@ class JuridiqueController extends Zend_Controller_Action protected $siret = null; protected $id = 0; + /** + * Logger + * @var \Monolog\Logger + */ + protected $logger; + public function init() { // --- Theme diff --git a/application/modules/default/controllers/LogoController.php b/application/modules/default/controllers/LogoController.php index 3fabbf1fa..eb254c883 100644 --- a/application/modules/default/controllers/LogoController.php +++ b/application/modules/default/controllers/LogoController.php @@ -4,6 +4,12 @@ class LogoController extends Zend_Controller_Action protected $theme; protected $pathLogo = ''; + /** + * Logger + * @var \Monolog\Logger + */ + protected $logger; + public function init() { // --- Theme diff --git a/application/modules/default/controllers/MandataireController.php b/application/modules/default/controllers/MandataireController.php index c1cf53cb8..3abfb7619 100644 --- a/application/modules/default/controllers/MandataireController.php +++ b/application/modules/default/controllers/MandataireController.php @@ -54,6 +54,12 @@ class MandataireController extends Zend_Controller_Action array( "triId"=>"1798", "triCode"=>"AGENL", "triNom"=>"Cour d'Appel d'Agen", "triCP"=>"47916" ), ); + /** + * Logger + * @var \Monolog\Logger + */ + protected $logger; + public function init() { // --- Theme diff --git a/application/modules/default/controllers/OrderController.php b/application/modules/default/controllers/OrderController.php index a50d2d8c4..a694e2587 100644 --- a/application/modules/default/controllers/OrderController.php +++ b/application/modules/default/controllers/OrderController.php @@ -3,6 +3,12 @@ class OrderController extends Zend_Controller_Action { protected $theme; + /** + * Logger + * @var \Monolog\Logger + */ + protected $logger; + public function init() { // --- Theme diff --git a/application/modules/default/controllers/PiecesController.php b/application/modules/default/controllers/PiecesController.php index 8d7bf1472..f9725af90 100644 --- a/application/modules/default/controllers/PiecesController.php +++ b/application/modules/default/controllers/PiecesController.php @@ -18,6 +18,12 @@ class PiecesController extends Zend_Controller_Action protected $siret; protected $id; + /** + * Logger + * @var \Monolog\Logger + */ + protected $logger; + public function init() { // --- Theme diff --git a/application/modules/default/controllers/PrintController.php b/application/modules/default/controllers/PrintController.php index 74dc5493a..9294f4730 100644 --- a/application/modules/default/controllers/PrintController.php +++ b/application/modules/default/controllers/PrintController.php @@ -3,6 +3,12 @@ class PrintController extends Zend_Controller_Action { protected $theme; + /** + * Logger + * @var \Monolog\Logger + */ + protected $logger; + public function init() { // --- Theme diff --git a/application/modules/default/controllers/RechercheController.php b/application/modules/default/controllers/RechercheController.php index 5f2385ec5..2e4f67b16 100644 --- a/application/modules/default/controllers/RechercheController.php +++ b/application/modules/default/controllers/RechercheController.php @@ -3,6 +3,12 @@ class RechercheController extends Zend_Controller_Action { protected $theme; + /** + * Logger + * @var \Monolog\Logger + */ + protected $logger; + public function init() { // --- Theme diff --git a/application/modules/default/controllers/SaisieController.php b/application/modules/default/controllers/SaisieController.php index d542253d2..784983191 100644 --- a/application/modules/default/controllers/SaisieController.php +++ b/application/modules/default/controllers/SaisieController.php @@ -230,10 +230,6 @@ class SaisieController extends Zend_Controller_Action * Genre * @var array */ - /** - * civilité en dur - * @todo verifier si liste à jour civilité - */ protected $selectGenre = array( '' => '-', 'M.' => 'M', @@ -242,6 +238,12 @@ class SaisieController extends Zend_Controller_Action 'Societe' => 'STE' ); + /** + * Logger + * @var \Monolog\Logger + */ + protected $logger; + public function init() { // --- Theme diff --git a/application/modules/default/controllers/SurveillanceController.php b/application/modules/default/controllers/SurveillanceController.php index 75707140a..4aedeeb03 100644 --- a/application/modules/default/controllers/SurveillanceController.php +++ b/application/modules/default/controllers/SurveillanceController.php @@ -35,6 +35,12 @@ class SurveillanceController extends Zend_Controller_Action 'liens' => 'survliens', ); + /** + * Logger + * @var \Monolog\Logger + */ + protected $logger; + public function init() { // --- Theme diff --git a/application/modules/default/controllers/TelechargementController.php b/application/modules/default/controllers/TelechargementController.php index 11d3ef3c1..a658dd12f 100644 --- a/application/modules/default/controllers/TelechargementController.php +++ b/application/modules/default/controllers/TelechargementController.php @@ -13,6 +13,12 @@ class TelechargementController extends Zend_Controller_Action */ protected $path = ''; + /** + * Logger + * @var \Monolog\Logger + */ + protected $logger; + public function init() { $this->_helper->layout()->disableLayout(); diff --git a/application/modules/default/controllers/UserController.php b/application/modules/default/controllers/UserController.php index 3c1633388..9be60cee8 100644 --- a/application/modules/default/controllers/UserController.php +++ b/application/modules/default/controllers/UserController.php @@ -28,6 +28,12 @@ class UserController extends Zend_Controller_Action return $new_password; } + /** + * Logger + * @var \Monolog\Logger + */ + protected $logger; + public function init() { // --- Theme diff --git a/application/modules/default/controllers/WorldcheckController.php b/application/modules/default/controllers/WorldcheckController.php index 1ccce3554..b61b16db1 100644 --- a/application/modules/default/controllers/WorldcheckController.php +++ b/application/modules/default/controllers/WorldcheckController.php @@ -4,6 +4,12 @@ class WorldcheckController extends Zend_Controller_Action protected $theme; protected $wcConfig; + /** + * Logger + * @var \Monolog\Logger + */ + protected $logger; + public function init() { // --- Theme