ILIAS  Release_4_2_x_branch Revision 61807
 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>';
flush(); ob_flush();
}
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(), ilObjPaymentSettingsGUI\deleteObjectObject(), and ilTinyMCE\ilTinyMCE().

{
$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: