Class bedezign\yii2\audit\panels\ErrorPanel

Inheritancebedezign\yii2\audit\panels\ErrorPanel » bedezign\yii2\audit\components\panels\Panel » yii\debug\Panel
Uses Traitsbedezign\yii2\audit\components\panels\PanelTrait


Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$maxAge int Maximum age (in days) of the data before it is cleaned bedezign\yii2\audit\components\panels\PanelTrait

Method Details

cleanup() public method

public int cleanup ( $maxAge null )
$maxAge int|null
getChart() public method

public string|bool getChart ( )
getDetail() public method

public void getDetail ( )
getIndexUrl() public method

public array|bool getIndexUrl ( )
getLabel() public method

public string getLabel ( )
getName() public method

public void getName ( )
hasEntryData() public method

Returns if the panel is available for the specified entry.

If not it will not be shown in the viewer.

public bool hasEntryData ( $entry )
$entry bedezign\yii2\audit\models\AuditEntry
init() public method

public void init ( )
log() public method

Log an exception

public null|static log ( $entry_id, Exception $exception )
$entry_id int

Entry to associate the error with

$exception Exception
logMessage() public method

Log a regular error message

public null|static logMessage ( $entry_id, $message, $code 0, $file '', $line 0, $trace = [] )
$entry_id int

Entry to associate the error with

$message string
$code int
$file string
$line int
$trace array

Stack trace to include. Use Helper::generateTrace() to create it.

registerAssets() public method

public void registerAssets ( $view )
$view \yii\web\View