PHP 클래스 yii\debug\components\TimelineDataProvider

부터: 2.0.7
저자: Dmitriy Bashkarev ([email protected])
상속: extends yii\data\ArrayDataProvider
파일 보기 프로젝트 열기: yiisoft/yii2-debug

보호된 프로퍼티들

프로퍼티 타입 설명
$panel yii\debug\panels\TimelinePanel

공개 메소드들

메소드 설명
__construct ( TimelinePanel $panel, array $config = [] ) TimelineDataProvider constructor.
getColor ( array $model ) : string Getting HEX color based on model duration
getCssClass ( array $model ) : string Returns item, css class
getLeft ( array $model ) : float Returns the offset left item, percentage of the total width
getRulers ( integer $line = 10 ) : array ruler items, key milliseconds, value offset left
getTime ( array $model ) : float Returns item duration, milliseconds
getWidth ( array $model ) : float Returns item width percent of the total width

보호된 메소드들

메소드 설명
prepareModels ( )

메소드 상세

__construct() 공개 메소드

TimelineDataProvider constructor.
public __construct ( TimelinePanel $panel, array $config = [] )
$panel yii\debug\panels\TimelinePanel
$config array

getColor() 공개 메소드

Getting HEX color based on model duration
public getColor ( array $model ) : string
$model array
리턴 string

getCssClass() 공개 메소드

Returns item, css class
public getCssClass ( array $model ) : string
$model array
리턴 string

getLeft() 공개 메소드

Returns the offset left item, percentage of the total width
public getLeft ( array $model ) : float
$model array
리턴 float

getRulers() 공개 메소드

ruler items, key milliseconds, value offset left
public getRulers ( integer $line = 10 ) : array
$line integer number of columns
리턴 array

getTime() 공개 메소드

Returns item duration, milliseconds
public getTime ( array $model ) : float
$model array
리턴 float

getWidth() 공개 메소드

Returns item width percent of the total width
public getWidth ( array $model ) : float
$model array
리턴 float

prepareModels() 보호된 메소드

protected prepareModels ( )

프로퍼티 상세

$panel 보호되어 있는 프로퍼티

protected TimelinePanel,yii\debug\panels $panel
리턴 yii\debug\panels\TimelinePanel