Source for file Renderer.php
Documentation is available at Renderer.php
require_once dirname(__FILE__ ) . '/Renderer/Common.php';
* A loader class for the renderers.
* @package linea21.externals
* @author Vernet Loïc <qrf_coil[at]yahoo.fr>, modified by Linea21 <info@linea21.com>
* @since V2.0.0 - 10 Apr 2006
* @version CVS: $Id: Renderer.php,v 1.1 2008/05/02 14:26:37 c0il Exp $
* Attempt to return a concrete Debug_Renderer instance.
* @param string $mode Name of the renderer.
* @param array $options Parameters for the rendering.
public static function factory($debugObject, $options)
$className = 'PHP_Debug_Renderer_'. $options['render_type'].
'_'. $options['render_mode'];
$classPath = dirname(__FILE__ ) . '/Renderer/'. $options['render_type'].
'/'. $options['render_mode']. '.php';
$obj = new $className($debugObject, $options);
PEAR::raiseError('PHP_Debug: renderer >' .
$options['DEBUG_render_mode'] . '< not found', true);
|