* @since V2.0.0 - 10 Apr 2006 * * @package PHP_Debug * @filesource * * @version CVS: $Id: TableConfig.php,v 1.1 2008/05/02 14:26:37 c0il Exp $ */ class PHP_Debug_Renderer_HTML_TableConfig { /** * Config container for Debug_Renderer_HTML_Table * * @var array * @since V2.0.0 - 11 apr 2006 */ protected static $options = array(); /** * Static Instance of class * * @var array * @since V2.0.0 - 11 apr 2006 */ protected static $instance = null; /** * Debug_Renderer_HTML_Table_Config class constructor * * @since V2.0.0 - 11 apr 2006 */ protected function __construct() { /** * Enable or disable Credits in debug infos */ self::$options['HTML_TABLE_disable_credits'] = false; /** * Enable or disable included and required files */ self::$options['HTML_TABLE_show_templates'] = true; /** * Enable or disable pattern removing in included files */ self::$options['HTML_TABLE_remove_templates_pattern'] = false; /** * Pattern list to remove in the display of included files * if HTML_TABLE_remove_templates_pattern is set to true */ self::$options['HTML_TABLE_templates_pattern'] = array(); /** * Enable or disable visualisation of $globals var in debug */ self::$options['HTML_TABLE_show_globals'] = false; /** * Enable or disable search in debug */ self::$options['HTML_TABLE_enable_search'] = true; /** * Enable or disable view of super arrays */ self::$options['HTML_TABLE_show_super_array'] = true; /** * Enable or disable the use of $_REQUEST array instead of * $_POST + _$GET + $_COOKIE + $_FILES */ self::$options['HTML_TABLE_use_request_arr'] = false; /** * View Source script path */ self::$options['HTML_TABLE_view_source_script_path'] = '.'; /** * View source script file name */ self::$options['HTML_TABLE_view_source_script_name'] = 'PHP_Debug_ShowSource.php'; /** * css path */ self::$options['HTML_TABLE_css_path'] = 'css'; /** * Tabsize for view source script */ self::$options['HTML_TABLE_view_source_tabsize'] = 4; /** * Tabsize for view source script */ self::$options['HTML_TABLE_view_source_numbers'] = 2; //HL_NUMBERS_TABLE /** * Define wether the display must be forced for the debug type when * in search mode */ self::$options['HTML_TABLE_search_forced_type'] = array( PHP_DebugLine::TYPE_STD => false, PHP_DebugLine::TYPE_QUERY => false, PHP_DebugLine::TYPE_QUERYREL => false, PHP_DebugLine::TYPE_ENV => false, PHP_DebugLine::TYPE_APPERROR => false, PHP_DebugLine::TYPE_CREDITS => false, PHP_DebugLine::TYPE_SEARCH => true, PHP_DebugLine::TYPE_DUMP => false, PHP_DebugLine::TYPE_PROCESSPERF => false, PHP_DebugLine::TYPE_TEMPLATES => false, PHP_DebugLine::TYPE_PAGEACTION => false, PHP_DebugLine::TYPE_SQLPARSE => false, PHP_DebugLine::TYPE_WATCH => false, PHP_DebugLine::TYPE_PHPERROR => false ); /** * After this goes all HTML related variables * * * HTML code for header */ self::$options['HTML_TABLE_header'] = '
| File | Line | Inside/From function | Inside/From Class | Type | Debug information | Execution time (sec) |
| '; /** * HTML post-row code for debug column line (centered) */ self::$options['HTML_TABLE_interrow_line'] = ' | '; self::$options['HTML_TABLE_interrow_function'] = self::$options['HTML_TABLE_interrow_line']; self::$options['HTML_TABLE_interrow_class'] = self::$options['HTML_TABLE_interrow_line']; self::$options['HTML_TABLE_interrow_type'] = self::$options['HTML_TABLE_interrow_line']; self::$options['HTML_TABLE_interrow_time'] = self::$options['HTML_TABLE_interrow_line']; /** * HTML pre-row code for debug column info */ self::$options['HTML_TABLE_interrow_info'] = ' | '; /** * HTML post-row code for debugline */ self::$options['HTML_TABLE_postrow'] = ' |
'. PHP_Debug::dumpVar(
$this->singleton()->getConfig(),
__CLASS__,
false,
PHP_DEBUG_DUMP_ARR_STR). '';
}
}