Class bedezign\yii2\audit\commands\AuditController
Inheritance | bedezign\yii2\audit\commands\AuditController » yii\console\Controller |
---|
Task runner commands for Audit.
Public Properties
Property | Type | Description | Defined 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 |
Public Methods
Method | Description | Defined By |
---|---|---|
actionCleanup() | Cleanup the Audit data | bedezign\yii2\audit\commands\AuditController |
actionErrorEmail() | Email errors to support email. | bedezign\yii2\audit\commands\AuditController |
options() | bedezign\yii2\audit\commands\AuditController |
Protected Methods
Method | Description | Defined 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
Max age in days to cleanup, if null then the panel settings are used.
True to cleanup the AuditEntry.
Comma separated list of panels to cleanup.
Method Details
Cleanup the Audit data
public int|void actionCleanup ( ) |
Email errors to support email.
public int actionErrorEmail ( $email = null ) | ||
string|null |
Cleans the AuditEntry data
protected bool cleanupEntry ( $maxAge ) | ||
$maxAge |
Cleans the Panel data
protected bool cleanupPanel ( $id, $maxAge ) | ||
$id | ||
$maxAge |
public void options ( $actionID ) | ||
$actionID |
Displays a summary of the data and dates to clean
protected void preCleanupSummary ( $entry, $panels, $maxAge ) | ||
$entry | bool | |
$panels | array | |
$maxAge | int|null |