ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
inc.debug.php File Reference

Go to the source code of this file.

Namespaces

namespace  ilias
 redirection script todo: (a better solution should control the processing via a xml file)

Functions

 vd ()
 shortcut for var_dump public
 pr ($var, $name= '')

Function Documentation

pr (   $var,
  $name = '' 
)

Definition at line 64 of file inc.debug.php.

{
if($name != '') $name .= ' = ';
echo '<pre>'.$name.print_r($var,true).'</pre>';
}
vd ( )

shortcut for var_dump public

Parameters
mixedany number of parameters

Definition at line 38 of file inc.debug.php.

Referenced by ilTinyMCE\_getEditorLanguage(), ilTinyMCE\addCustomRTESupport(), ilTinyMCE\addRTESupport(), ilTinyMCE\addUserTextEditor(), ilTinyMCE\ilTinyMCE(), and ilObjForumGUI\viewThreadObject().

{
$numargs = func_num_args();
if ($numargs == 0)
{
return false;
}
$arg_list = func_get_args();
$num = 1;
foreach ($arg_list as $arg)
{
echo "<pre>variable ".$num.":<br/>";
var_dump($arg);
echo "</pre><br/>";
$num++;
}
// BH: php 5.3 seems to not flushing the output consequently so following redirects are still performed
// and the output of vd() would be lost in nirvana if we not flush the output manualy
flush(); ob_flush();
}

+ Here is the caller graph for this function: