Plugin ajout debug
This commit is contained in:
parent
f29a3b62d8
commit
02db4d4415
@ -3,7 +3,9 @@ class Application_Controller_Plugin_Auth extends Zend_Controller_Plugin_Abstract
|
|||||||
{
|
{
|
||||||
public function preDispatch(Zend_Controller_Request_Abstract $request)
|
public function preDispatch(Zend_Controller_Request_Abstract $request)
|
||||||
{
|
{
|
||||||
$checkAuth = true;
|
Zend_Registry::get('firebug')->info('PLUGIN AUTH - START');
|
||||||
|
|
||||||
|
$checkAuth = true;
|
||||||
if ($request->getControllerName()=='user' && $request->getActionName()=='login') {
|
if ($request->getControllerName()=='user' && $request->getActionName()=='login') {
|
||||||
$checkAuth = false;
|
$checkAuth = false;
|
||||||
}
|
}
|
||||||
@ -150,5 +152,7 @@ class Application_Controller_Plugin_Auth extends Zend_Controller_Plugin_Abstract
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Zend_Registry::get('firebug')->info('PLUGIN AUTH - END');
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -9,7 +9,9 @@ class Application_Controller_Plugin_Cgu extends Zend_Controller_Plugin_Abstract
|
|||||||
*/
|
*/
|
||||||
public function preDispatch(Zend_Controller_Request_Abstract $request)
|
public function preDispatch(Zend_Controller_Request_Abstract $request)
|
||||||
{
|
{
|
||||||
$layout = Zend_Layout::getMVCInstance();
|
Zend_Registry::get('firebug')->info('PLUGIN CGU - START');
|
||||||
|
|
||||||
|
$layout = Zend_Layout::getMVCInstance();
|
||||||
if ($layout->isEnabled()) {
|
if ($layout->isEnabled()) {
|
||||||
$tabCgu = array(
|
$tabCgu = array(
|
||||||
0 => 'La consultation ou la réception de documents n\'entraîne aucun '.
|
0 => 'La consultation ou la réception de documents n\'entraîne aucun '.
|
||||||
@ -55,5 +57,6 @@ class Application_Controller_Plugin_Cgu extends Zend_Controller_Plugin_Abstract
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Zend_Registry::get('firebug')->info('PLUGIN CGU - END');
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -9,6 +9,8 @@ class Application_Controller_Plugin_Lang extends Zend_Controller_Plugin_Abstract
|
|||||||
*/
|
*/
|
||||||
public function preDispatch(Zend_Controller_Request_Abstract $request)
|
public function preDispatch(Zend_Controller_Request_Abstract $request)
|
||||||
{
|
{
|
||||||
|
Zend_Registry::get('firebug')->info('PLUGIN LANG - START');
|
||||||
|
|
||||||
$auth = Zend_Auth::getInstance();
|
$auth = Zend_Auth::getInstance();
|
||||||
if ( $auth->hasIdentity() ) {
|
if ( $auth->hasIdentity() ) {
|
||||||
$identity = $auth->getIdentity();
|
$identity = $auth->getIdentity();
|
||||||
@ -52,5 +54,7 @@ class Application_Controller_Plugin_Lang extends Zend_Controller_Plugin_Abstract
|
|||||||
$registry = Zend_Registry::getInstance();
|
$registry = Zend_Registry::getInstance();
|
||||||
$registry->set('Zend_Locale', $locale);
|
$registry->set('Zend_Locale', $locale);
|
||||||
$registry->set('Zend_Translate', $translate);
|
$registry->set('Zend_Translate', $translate);
|
||||||
|
|
||||||
|
Zend_Registry::get('firebug')->info('PLUGIN LANG - START');
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -7,7 +7,9 @@ class Application_Controller_Plugin_Menu extends Zend_Controller_Plugin_Abstract
|
|||||||
*/
|
*/
|
||||||
public function preDispatch(Zend_Controller_Request_Abstract $request)
|
public function preDispatch(Zend_Controller_Request_Abstract $request)
|
||||||
{
|
{
|
||||||
$layout = Zend_Layout::getMVCInstance();
|
Zend_Registry::get('firebug')->info('PLUGIN MENU - START');
|
||||||
|
|
||||||
|
$layout = Zend_Layout::getMVCInstance();
|
||||||
$user = new Scores_Utilisateur();
|
$user = new Scores_Utilisateur();
|
||||||
|
|
||||||
if ( $user->isLog() && $layout->isEnabled() && $request->getControllerName()!='print' )
|
if ( $user->isLog() && $layout->isEnabled() && $request->getControllerName()!='print' )
|
||||||
@ -77,5 +79,7 @@ class Application_Controller_Plugin_Menu extends Zend_Controller_Plugin_Abstract
|
|||||||
{
|
{
|
||||||
//$view->aide = true;
|
//$view->aide = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Zend_Registry::get('firebug')->info('PLUGIN MENU -END');
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -3,7 +3,9 @@ class Application_Controller_Plugin_Pdf extends Zend_Controller_Plugin_Abstract
|
|||||||
{
|
{
|
||||||
public function dispatchLoopShutdown()
|
public function dispatchLoopShutdown()
|
||||||
{
|
{
|
||||||
$layout = Zend_Layout::getMVCInstance();
|
Zend_Registry::get('firebug')->info('PLUGIN PDF - START');
|
||||||
|
|
||||||
|
$layout = Zend_Layout::getMVCInstance();
|
||||||
if ($layout->isEnabled()) {
|
if ($layout->isEnabled()) {
|
||||||
$controller = $this->_request->getControllerName();
|
$controller = $this->_request->getControllerName();
|
||||||
$action = $this->_request->getActionName();
|
$action = $this->_request->getActionName();
|
||||||
@ -18,5 +20,7 @@ class Application_Controller_Plugin_Pdf extends Zend_Controller_Plugin_Abstract
|
|||||||
file_put_contents($c->profil->path->shared.'/temp/pages/'.$filename.'.html', $content);
|
file_put_contents($c->profil->path->shared.'/temp/pages/'.$filename.'.html', $content);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Zend_Registry::get('firebug')->info('PLUGIN PDF - END');
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -3,7 +3,9 @@ class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstrac
|
|||||||
{
|
{
|
||||||
public function preDispatch(Zend_Controller_Request_Abstract $request)
|
public function preDispatch(Zend_Controller_Request_Abstract $request)
|
||||||
{
|
{
|
||||||
$auth = Zend_Auth::getInstance();
|
Zend_Registry::get('firebug')->info('PLUGIN THEME - START');
|
||||||
|
|
||||||
|
$auth = Zend_Auth::getInstance();
|
||||||
$theme = 'default'; //$theme = 'mobile';
|
$theme = 'default'; //$theme = 'mobile';
|
||||||
if ( $auth->hasIdentity() ) {
|
if ( $auth->hasIdentity() ) {
|
||||||
$theme = !empty($auth->getIdentity()->theme) ? $auth->getIdentity()->theme : 'default';
|
$theme = !empty($auth->getIdentity()->theme) ? $auth->getIdentity()->theme : 'default';
|
||||||
@ -184,5 +186,7 @@ class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstrac
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Zend_Registry::get('firebug')->info('PLUGIN THEME - STOP');
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -3,7 +3,9 @@ class Application_Controller_Plugin_Xml extends Zend_Controller_Plugin_Abstract
|
|||||||
{
|
{
|
||||||
public function dispatchLoopShutdown()
|
public function dispatchLoopShutdown()
|
||||||
{
|
{
|
||||||
$layout = Zend_Layout::getMVCInstance();
|
Zend_Registry::get('firebug')->info('PLUGIN XML - START');
|
||||||
|
|
||||||
|
$layout = Zend_Layout::getMVCInstance();
|
||||||
if ($layout->isEnabled()) {
|
if ($layout->isEnabled()) {
|
||||||
|
|
||||||
$user = new Scores_Utilisateur();
|
$user = new Scores_Utilisateur();
|
||||||
@ -17,5 +19,7 @@ class Application_Controller_Plugin_Xml extends Zend_Controller_Plugin_Abstract
|
|||||||
$page->objectToXML($view->exportObjet, $this->_request->getParams());
|
$page->objectToXML($view->exportObjet, $this->_request->getParams());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Zend_Registry::get('firebug')->info('PLUGIN XML - END');
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user