/** * Initializes the debug console for Open Power Template by adding its * own information frames and tables. * * @internal * @static * @param Opt_Class $tpl The main class */ public static function initDebugConsole($tpl) { Opl_Debug_Console::addList('opt_options', 'OPT Options and settings'); Opl_Debug_Console::addList('opt_stats', 'OPT Stats'); Opl_Debug_Console::addTable('opt_views', 'OPT: Executed views', array('#', 'View', 'Output', 'Time', 'Cached')); Opl_Debug_Console::addTable('opt_compiled', 'OPT: Compiled templates', array('#', 'Template', 'Estimated XML tree memory')); Opl_Debug_Console::addTable('opt_sections', 'OPT: Sections (Template compilation)', array('#', 'Name', 'Parent', 'Data format', 'Type')); Opl_Debug_Console::addListOptions('opt_options', $tpl->getConfig()); }