Class yii\debug\models\timeline\DataProvider

Inheritanceyii\debug\models\timeline\DataProvider » yii\data\ArrayDataProvider
Available since version2.0.8

DataProvider implements a data provider based on a data array.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() DataProvider constructor. yii\debug\models\timeline\DataProvider
getColor() Getting HEX color based on model duration yii\debug\models\timeline\DataProvider
getCssClass() Returns item, css class yii\debug\models\timeline\DataProvider
getLeft() Returns the offset left item, percentage of the total width yii\debug\models\timeline\DataProvider
getMemory() `php [ 0 => string, memory usage (MB) 1 => float, Y position (percent) ] yii\debug\models\timeline\DataProvider
getRulers() Ruler items, key milliseconds, value offset left yii\debug\models\timeline\DataProvider
getTime() Returns item duration, milliseconds yii\debug\models\timeline\DataProvider
getWidth() Returns item width percent of the total width yii\debug\models\timeline\DataProvider

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
prepareModels() yii\debug\models\timeline\DataProvider

Property Details

$panel protected property

Method Details

__construct() public method

DataProvider constructor.

public void __construct ( yii\debug\panels\TimelinePanel $panel, $config = [] )
$panel yii\debug\panels\TimelinePanel
$config array
getColor() public method

Getting HEX color based on model duration

public string getColor ( $model )
$model array
getCssClass() public method

Returns item, css class

public string getCssClass ( $model )
$model array
getLeft() public method

Returns the offset left item, percentage of the total width

public float getLeft ( $model )
$model array
getMemory() public method

`php [ 0 => string, memory usage (MB) 1 => float, Y position (percent) ]

public array|null getMemory ( $model )
$model array
getRulers() public method

Ruler items, key milliseconds, value offset left

public array getRulers ( $line 10 )
$line integer

Number of columns

getTime() public method

Returns item duration, milliseconds

public float getTime ( $model )
$model array
getWidth() public method

Returns item width percent of the total width

public float getWidth ( $model )
$model array
prepareModels() protected method

protected void prepareModels ( )