PHP Class yii\debug\panels\TimelinePanel

Since: 2.0.7
Author: Dmitriy Bashkarev ([email protected])
Inheritance: extends yii\debug\Panel
Afficher le fichier Open project: yiisoft/yii2-debug

Méthodes publiques

Méthode Description
getColors ( ) : array Color indicators item profile, key: percentages of time request, value: hex color
getDetail ( )
getDuration ( ) : float Request duration, milliseconds
getName ( )
getStart ( ) : float Start request, timestamp (obtained by microtime(true))
init ( )
load ( $data )
save ( )
setColors ( array $colors ) Sets color indicators.

Méthodes protégées

Méthode Description
getModels ( boolean $refresh = false ) : array Returns an array of models that represents logs of the current request.

Method Details

getColors() public méthode

Color indicators item profile, key: percentages of time request, value: hex color
public getColors ( ) : array
Résultat array

getDetail() public méthode

public getDetail ( )

getDuration() public méthode

Request duration, milliseconds
public getDuration ( ) : float
Résultat float

getModels() protected méthode

Can be used with data providers, such as \yii\data\ArrayDataProvider.
protected getModels ( boolean $refresh = false ) : array
$refresh boolean if need to build models from log messages and refresh them.
Résultat array models

getName() public méthode

public getName ( )

getStart() public méthode

Start request, timestamp (obtained by microtime(true))
public getStart ( ) : float
Résultat float

init() public méthode

public init ( )

load() public méthode

public load ( $data )

save() public méthode

public save ( )

setColors() public méthode

key: percentages of time request, value: hex color
public setColors ( array $colors )
$colors array