'; $workflowFunctionsWf_debug = true; } /* start the visible output */ $output .= ''; $output .= ''; /* start the backtrace section */ $output .= ''; $output .= ''; $output .= ''; /* start the $_REQUEST section */ $randomName = mt_rand() . '_' . mt_rand(); /* unique preffix */ $formInput = ''; $output .= ''; /* check if exists a database connection */ $env = wf_get_env(); $output .= ''; /* end the table */ $output .= '
Debug: ' . $name . '
Backtrace'; $i = 1; $output .= ''; foreach ($importantBacktrace as $call) { /* show some general information */ $output .= ''; } $output .= '
' . $i++ . '- '; $output .= 'Arquivo: ' . $call['file'] . '
'; $output .= 'Linha: ' . $call['line'] . '
'; /* show different information for methods and functions */ if (isset($call['class'])) $output .= 'Método: ' . $call['class'] . $call['type'] . $call['function'] . '()
'; else $output .= 'Função: ' . $call['function'] . '()
'; /* show the parameters used in the call */ $output .= 'Parâmetros: '; if (empty($call['args'])) { $output .= 'nenhum
'; } else { $output .= '
'; $j = 1; foreach ($call['args'] as $arg) { if (is_array($arg)) $arg = 'array'; else if (is_object($arg)) $arg = 'object'; $output .= '   #' . $j++ . ': ' . $arg . '
'; } } $output .= '
'; $output .= '
$_REQUEST'; $output .= '
'; $output .= ''; foreach ($_REQUEST as $key => $value) { /* highlight the 'action' and 'params' elements */ $showKey = $key; if (($key == 'action') || ($key == 'params')) $showKey = '' . $key . ''; /* generate the table row */ $output .= ''; $output .= ''; $output .= ''; /* allow the developer to edit the parameters */ $output .= ''; $output .= ''; /* generate the form that can be submited at any time */ $formInput .= ''; } $output .= ''; $output .= '
PropriedadeValor
' . $showKey . '' . $value . 'editar
Submeter formulário novamente: ' . $formInput . '
'; $output .= '
'; $output .= '
Banco de Dados' . (($env['dao']->Link_ID === 0) ? 'não conectado' : 'conectado') . '

'; /* send the output */ echo $output; } ?>