removed mods directory from the ATutor codebase
[atutor.git] / mods / phpdoc2 / PhpDocumentor / phpDocumentor / Smarty-2.6.0 / libs / plugins / modifier.debug_print_var.php
diff --git a/mods/phpdoc2/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/plugins/modifier.debug_print_var.php b/mods/phpdoc2/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/plugins/modifier.debug_print_var.php
deleted file mode 100644 (file)
index 3158df0..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php\r
-/**\r
- * Smarty plugin\r
- * @package Smarty\r
- * @subpackage plugins\r
- */\r
-\r
-\r
-/**\r
- * Smarty debug_print_var modifier plugin\r
- *\r
- * Type:     modifier<br>\r
- * Name:     debug_print_var<br>\r
- * Purpose:  formats variable contents for display in the console\r
- * @link http://smarty.php.net/manual/en/language.modifier.debug.print.var.php\r
- *          debug_print_var (Smarty online manual)\r
- * @param array|object\r
- * @param integer\r
- * @param integer\r
- * @return string\r
- */\r
-function smarty_modifier_debug_print_var($var, $depth = 0, $length = 40)\r
-{\r
-       $_replace = array("\n"=>'<i>&#92;n</i>', "\r"=>'<i>&#92;r</i>', "\t"=>'<i>&#92;t</i>');\r
-    if (is_array($var)) {\r
-        $results = "<b>Array (".count($var).")</b>";\r
-        foreach ($var as $curr_key => $curr_val) {\r
-            $return = smarty_modifier_debug_print_var($curr_val, $depth+1, $length);\r
-            $results .= "<br>".str_repeat('&nbsp;', $depth*2)."<b>".strtr($curr_key, $_replace)."</b> =&gt; $return";\r
-        }\r
-        return $results;\r
-    } else if (is_object($var)) {\r
-        $object_vars = get_object_vars($var);\r
-        $results = "<b>".get_class($var)." Object (".count($object_vars).")</b>";\r
-        foreach ($object_vars as $curr_key => $curr_val) {\r
-            $return = smarty_modifier_debug_print_var($curr_val, $depth+1, $length);\r
-            $results .= "<br>".str_repeat('&nbsp;', $depth*2)."<b>$curr_key</b> =&gt; $return";\r
-        }\r
-        return $results;\r
-    } else {\r
-        if (empty($var) && $var != "0") {\r
-            return '<i>empty</i>';\r
-        }\r
-        if (strlen($var) > $length ) {\r
-            $results = substr($var, 0, $length-3).'...';\r
-        } else {\r
-            $results = $var;\r
-        }\r
-        $results = htmlspecialchars($results);\r
-        $results = strtr($results, $_replace);\r
-        return $results;\r
-    }\r
-}\r
-\r
-/* vim: set expandtab: */\r
-\r
-?>\r