46    $numargs = func_num_args();
 
   52    $arg_list = func_get_args();
 
   55    include_once 
'Services/Authentication/classes/class.ilAuthFactory.php';
 
   62    foreach ($arg_list as $arg) {
 
   64            $printbefore = 
"<pre style=\"text-align:left;\">";
 
   65            $printbefore .= 
"$file - $func - variable $num:<br/>";
 
   66            $printafter = 
"</pre><br/>";
 
   68            $printbefore = 
"\n\n_________________________________________________" .
 
   69                            "_________________________________________________\n";
 
   70            $printbefore .= 
"$file - $func - variable $num:\n\n";
 
   71            $printafter = 
"_________________________________________________" .
 
   72                            "_________________________________________________\n\n";
 
  100    $print = 
$name . print_r($var, 
true);
 
  103        $hr = 
"\n---------------------------------------------------------------\n";
 
  104        echo $hr . $print . $hr;
 
  106        echo 
'<pre>' . $print . 
'</pre>';
 
  124function cf($backjumps = 1)
 
  129    echo 
"<pre style=\"text-align:left;\">$fileC - $funcC\nIS CALLED FROM: $fileF - $funcF</pre>";
 
  150    $e = 
new Exception();
 
  151    $trace = $e->getTrace();
 
  153    $file = basename($trace[
$i][
'file']) . 
':' . $trace[
$i][
'line'];
 
  157    if (isset($trace[$j][
'class']) && strlen($trace[$j][
'class'])) {
 
  158        $func = $trace[$j][
'class'];
 
  160        if (isset($trace[$j][
'class']) && strlen($trace[$j][
'class'])) {
 
  161            $func .= $trace[$j][
'type'];
 
  167    $func .= $trace[$j][
'function'] . 
'()';
 
  169    return array($file, $func);
 
An exception for terminatinating execution or to throw for unit testing.
pr($var, $name='')
shortcut for print_r
getPhpSourceCodePositionInfo($backjumps=0)
returns an array containing function information from backtrace (the optional backjump param conrols ...
cf($backjumps=1)
prints an information about the function that called the function that invoked this function (the opt...
vd()
shortcut for var_dump with enhanced debug information