PHP Trait bedezign\yii2\audit\components\panels\PanelTrait

Datei anzeigen Open project: bedezign/yii2-audit

Public Properties

Property Type Description
$maxAge Maximum age (in days) of the data before it is cleaned

Protected Properties

Property Type Description
$_model bedezign\yii2\audit\models\AuditEntry

Public Methods

Method Description
cleanup ( integer | null $maxAge = null ) : integer
getChart ( ) : string | boolean
getIndexUrl ( ) : array | boolean
getLabel ( ) : string
getUrl ( $additionalParams = NULL ) : string
hasEntryData ( AuditEntry $entry ) : boolean Returns if the panel is available for the specified entry.
registerAssets ( View $view )
setModel ( AuditEntry $model )

Method Details

cleanup() public method

public cleanup ( integer | null $maxAge = null ) : integer
$maxAge integer | null
return integer

getChart() public method

public getChart ( ) : string | boolean
return string | boolean

getIndexUrl() public method

public getIndexUrl ( ) : array | boolean
return array | boolean

getLabel() public method

public getLabel ( ) : string
return string

getUrl() public method

public getUrl ( $additionalParams = NULL ) : string
return string

hasEntryData() public method

If not it will not be shown in the viewer.
public hasEntryData ( AuditEntry $entry ) : boolean
$entry bedezign\yii2\audit\models\AuditEntry
return boolean

registerAssets() public method

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

setModel() public method

public setModel ( AuditEntry $model )
$model bedezign\yii2\audit\models\AuditEntry

Property Details

$_model protected_oe property

protected AuditEntry,bedezign\yii2\audit\models $_model
return bedezign\yii2\audit\models\AuditEntry

$maxAge public_oe property

Maximum age (in days) of the data before it is cleaned
public $maxAge