Class bedezign\yii2\audit\panels\ErrorPanel
Inheritance | bedezign\yii2\audit\panels\ErrorPanel » bedezign\yii2\audit\components\panels\Panel » yii\debug\Panel |
---|---|
Uses Traits | bedezign\yii2\audit\components\panels\PanelTrait |
ErrorPanel
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$maxAge | int | Maximum age (in days) of the data before it is cleaned | bedezign\yii2\audit\components\panels\PanelTrait |
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$_model | bedezign\yii2\audit\models\AuditEntry | bedezign\yii2\audit\components\panels\PanelTrait |
Public Methods
Method Details
public int cleanup ( $maxAge = null ) | ||
$maxAge | int|null |
public string|bool getChart ( ) |
public void getDetail ( ) |
public array|bool getIndexUrl ( ) |
public string getLabel ( ) |
public void getName ( ) |
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 |
public void init ( ) |
Log an exception
public null|static log ( $entry_id, Exception $exception ) | ||
$entry_id | int | Entry to associate the error with |
$exception | Exception |
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 |
public void registerAssets ( $view ) | ||
$view | \yii\web\View |