Class bedezign\yii2\audit\commands\AuditController

Inheritancebedezign\yii2\audit\commands\AuditController » yii\console\Controller

Task runner commands for Audit.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$age int|null Max age in days to cleanup, if null then the panel settings are used. bedezign\yii2\audit\commands\AuditController
$entry bool True to cleanup the AuditEntry. bedezign\yii2\audit\commands\AuditController
$panels string|null Comma separated list of panels to cleanup. bedezign\yii2\audit\commands\AuditController

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
cleanupEntry() Cleans the AuditEntry data bedezign\yii2\audit\commands\AuditController
cleanupPanel() Cleans the Panel data bedezign\yii2\audit\commands\AuditController
preCleanupSummary() Displays a summary of the data and dates to clean bedezign\yii2\audit\commands\AuditController

Property Details

$age public property

Max age in days to cleanup, if null then the panel settings are used.

public int|null $age null
$entry public property

True to cleanup the AuditEntry.

public bool $entry null
$panels public property

Comma separated list of panels to cleanup.

public string|null $panels null

Method Details

actionCleanup() public method

Cleanup the Audit data

public int|void actionCleanup ( )
actionErrorEmail() public method

Email errors to support email.

public int actionErrorEmail ( $email null )
$email string|null
cleanupEntry() protected method

Cleans the AuditEntry data

protected bool cleanupEntry ( $maxAge )
$maxAge
cleanupPanel() protected method

Cleans the Panel data

protected bool cleanupPanel ( $id, $maxAge )
$id
$maxAge
options() public method

public void options ( $actionID )
$actionID
preCleanupSummary() protected method

Displays a summary of the data and dates to clean

protected void preCleanupSummary ( $entry, $panels, $maxAge )
$entry bool
$panels array
$maxAge int|null