/** * Smarty Modifier to debug output the variable content to the firebug console. * * @example * {$variable|firebug} * * @param mixed Variable to firedebug * * @return string */ function Smarty_modifier_firebug($var) { \Koch\Debug\Debug::firebug($var); // using firebug directly /*if (false === class_exists('FirePHP', false)) { include ROOT_LIBRARIES.'firephp/FirePHP.class.php'; } $firephp = FirePHP::getInstance(true); $firephp->log($var); */ }
/** * Development / Helper Method for displaying loaded Models. */ public static function debugLoadedClasses() { $em = self::getEntityManager(); $config = $em->getConfiguration(); #$config->addEntityNamespace('Core', $module_models_path); // = Core:Session #$config->addEntityNamespace('Module', $module_models_path); // = Module:News $classes_loaded = $config->getMetadataDriverImpl()->getAllClassNames(); \Koch\Debug\Debug::printR($classes_loaded); }
public static function debug() { \Koch\Debug\Debug::printR(self::$parameters); }