$hasTimeline
$hasTimeline : boolean
Whether this collector has data that can be displayed in the Timeline.
Debug工具栏模板类
$viewer : \CodeIgniter\View\RendererInterface
Instance of the Renderer service
getVarData() : null
Gets a collection of data that should be shown in the 'Vars' tab.
The format is an array of sections, each with their own array of key/value pairs:
$data = [ 'section 1' => [ 'foo' => 'bar, 'bar' => 'baz' ], 'section 2' => [ 'foo' => 'bar, 'bar' => 'baz' ], ];
formatTimelineData() : array
Child classes should implement this to return the timeline data formatted for correct usage.
Timeline data should be formatted into arrays that look like:
[ 'name' => 'Database::Query', 'component' => 'Database', 'start' => 10 // milliseconds 'duration' => 15 // milliseconds ]
<?php namespace Phpcmf\Extend;
/**
* http://www.kaiqibao.net
* 本文件是框架系统文件,二次开发时不可以修改本文件
**/
/**
* Debug工具栏模板类
*/
class View extends \CodeIgniter\Debug\Toolbar\Collectors\Views
{
/**
* 把CI模板类改成PHPCMF模板类用于debug.
*/
public function __construct()
{
$this->viewer = \Phpcmf\Service::V();
}
}