本文整理汇总了PHP中Debugger::_output方法的典型用法代码示例。如果您正苦于以下问题:PHP Debugger::_output方法的具体用法?PHP Debugger::_output怎么用?PHP Debugger::_output使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Debugger
的用法示例。
在下文中一共展示了Debugger::_output方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
/**
* Handles object conversion to debug string.
*
* @param string $var Object to convert
* @access protected
*/
function _output($level, $error, $code, $helpCode, $description, $file, $line, $kontext)
{
$files = $this->trace(array('start' => 2, 'format' => 'points'));
$listing = $this->excerpt($files[0]['file'], $files[0]['line'] - 1, 1);
$trace = $this->trace(array('start' => 2, 'depth' => '20'));
$context = array();
foreach ((array) $kontext as $var => $value) {
$context[] = "\${$var}\t=\t" . $this->exportVar($value, 1);
}
if ($this->_outputFormat == 'fb') {
$this->_fireError($error, $code, $description, $file, $line, $trace, $context);
} else {
echo parent::_output($level, $error, $code, $helpCode, $description, $file, $line, $kontext);
}
}
示例2: array
/**
* Handles object conversion to debug string.
*
* @param string $var Object to convert
* @access protected
*/
function _output($data = array())
{
extract($data);
if (is_array($level)) {
$error = $level['error'];
$code = $level['code'];
if (isset($level['helpID'])) {
$helpID = $level['helpID'];
} else {
$helpID = '';
}
$description = $level['description'];
$file = $level['file'];
$line = $level['line'];
$context = $level['context'];
$level = $level['level'];
}
$files = $this->trace(array('start' => 2, 'format' => 'points'));
$listing = $this->excerpt($files[0]['file'], $files[0]['line'] - 1, 1);
$trace = $this->trace(array('start' => 2, 'depth' => '20'));
if ($this->_outputFormat == 'fb') {
$kontext = array();
foreach ((array) $context as $var => $value) {
$kontext[] = "\${$var}\t=\t" . $this->exportVar($value, 1);
}
$this->_fireError($error, $code, $description, $file, $line, $trace, $kontext);
} else {
$data = compact('level', 'error', 'code', 'helpID', 'description', 'file', 'path', 'line', 'context');
echo parent::_output($data);
}
}