Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 17 | All time: 11,339 This week: 455 |
Version | License | PHP version | Categories | |||
d3audittrail 1.0 | Freeware | 5 | PHP 5, Databases, Libraries, Design P... |
Description | Author | |||||||||||||||||||||||
This package can be used to keep track of changes to model object data values. |
|
'controllerMap' => [
'migrate' => [
'class' => 'yii\console\controllers\MigrateController',
'migrationPath' => [
'@vendor/sammaye/yii2-audittrail/migrations',
'@vendor/d3yii2/d3audittrail/migrations',
],
],
],
'modules' => [
'd3audittrail' => [
'class' => 'd3yii2\d3audittrail\Module',
],
]
'params' => [
'audittrail.table' => 'tbl_audit_trail'
]
public function behaviors(): array
{
return ArrayHelper::merge(
parent::behaviors(),
[
'sammaye\audittrail\LoggableBehavior'
]
);
}
class Model extends extends \yii\db\ActiveRecord
/
* model label
*/
public function tableLabel(): string
{
return 'Data Record';
}
public static function audittrailHiddedFields()
{
return [
'password'
];
}
public static function audittrailSqlFields()
{
return [
'client_id' => 'select name from client where id=:id'
];
}
public static function audittrailRefModels()
{
return [
[
'model' => TblAuditTrail::class,
'ref_field' => 'my_id',
'hidded_fields' => ['a','b'],
'field_sql' => [
'field1' => 'select name from user where id=:id'
]
]
];
}
}
$this->addPageButtons(AuditTrailButton::widget([
'modelName' => coalmar\delivery\models\CmdDelivery::className(),
'modelId' => $model->id
]));
Files (14) |
File | Role | Description | ||
---|---|---|---|---|
actions (1 file) | ||||
controllers (1 file) | ||||
gii (1 file) | ||||
messages (1 directory) | ||||
migrations (1 file) | ||||
models (1 file, 1 directory) | ||||
traits (1 file) | ||||
views (1 directory) | ||||
widgets (2 files) | ||||
composer.json | Data | Auxiliary data | ||
Module.php | Class | Class source | ||
README.md | Doc. | Documentation |
Files (14) | / | migrations |
File | Role | Description |
---|---|---|
m171106_184558_utf...r_value_columns.php | Class | Class source |
Files (14) | / | widgets |
File | Role | Description |
---|---|---|
AuditTrailActionButton.php | Class | Class source |
AuditTrailButton.php | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.