From: <tr...@us...> - 2012-12-02 19:11:29
|
Revision: 10305 http://sourceforge.net/p/xoops/svn/10305 Author: trabis Date: 2012-12-02 19:11:27 +0000 (Sun, 02 Dec 2012) Log Message: ----------- Adding Debug and Highlighter class Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/docs/changelog.26.txt Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops/Debug.php XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops/Highlighter.php Modified: XoopsCore/branches/2.6.x/2.6.0/docs/changelog.26.txt =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/docs/changelog.26.txt 2012-12-02 18:59:19 UTC (rev 10304) +++ XoopsCore/branches/2.6.x/2.6.0/docs/changelog.26.txt 2012-12-02 19:11:27 UTC (rev 10305) @@ -4,6 +4,8 @@ 2012/12: Version 2.6.0 Alpha 2 =============================== Updating cache engines (trabis) +Adding Xoops_Highlighter class (trabis) +Adding Xoops_Debug class (trabis) =============================== 2012/08: Version 2.6.0 Alpha 1 Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops/Debug.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops/Debug.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops/Debug.php 2012-12-02 19:11:27 UTC (rev 10305) @@ -0,0 +1,48 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + */ + +/** + * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package class + * @since 2.6 + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +class Xoops_Debug +{ + /** + * Output a dump of a variable + * + * @param mixed $var variable which will be dumped + * @param bool $echo + * @param bool $exit + * + * @return string + */ + static function dump($var, $echo = true, $exit = false) + { + $myts = MyText |