Omeka_Controller_Plugin_Debug

Package: Controller\Plugin

class Omeka_Controller_Plugin_Debug

extends Zend_Controller_Plugin_Abstract

This controller plugin allows for debugging Request objects without inserting debugging code into the Zend Framework code files.

Debugging web requests is enabled by setting ‘debug.request = true’ in the config.ini file.

Omeka_Controller_Plugin_Debug::preDispatch(Zend_Controller_Request_Abstract $request)

Print request debugging info for every request.

Has no effect if request debugging is not enabled in config.ini.

Parameters:
  • $request (Zend_Controller_Request_Abstract) – Request object.
Omeka_Controller_Plugin_Debug::postDispatch(Zend_Controller_Request_Abstract $request)
Parameters:
  • $request (Zend_Controller_Request_Abstract) –
Omeka_Controller_Plugin_Debug::dispatchLoopShutdown()

Print database profiling info.

Enabled conditionally when debug.profileDb = true in config.ini.

Omeka_Controller_Plugin_Debug::_getProfilerMarkup(Zend_Db_Profiler $profiler)
Parameters:
  • $profiler (Zend_Db_Profiler) –
Omeka_Controller_Plugin_Debug::_getRequestMarkup($request, $router)

Create HTML markup for request debugging.

Parameters:
  • $request (Zend_Controller_Request_Abstract) – Request object.
  • $router (Zend_Controller_Router_Interface) – Router object.
Returns:

string HTML markup.