Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (39) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2022-01-08 (13 days ago) | Not yet rated by the users | Total: 22 This week: 1 | All time: 10,464 This week: 187 |
Version | License | PHP version | Categories | |||
d3activity 1.0 | Freeware | 5 | PHP 5, Logging, Design Patterns |
Description | Author | ||||||||||||||
This package can track of changes in objects of given model objects. |
|
Registre models activities and get activity lists
The preferred way to install this extension is through composer.
Either run
$ composer require d3yii2/d3activity "*"
or add
"d3yii2/d3activity": "*"
to the require
section of your composer.json
file.
'components' => [
'activityList' => [
'class' => 'd3yii2\d3activity\components\D3ActivityList',
'sysCompanyId' => static function () {
return \Yii::$app->SysCmp->getActiveCompanyId();
},
'models' => [
[
'class' => 'd3modules\d3invoices\models\InvInvoice',
'detailClass' => 'd3modules\d3invoices\components\InvInvoiceD3Activity'
]
],
],
'activityRegistar' => [
'class' => 'd3yii2\d3activity\components\DbActivityRegistar',
'sysCompanyId' => static function () {
return \Yii::$app->SysCmp->getActiveCompanyId();
},
'userId' => static function () {
return \Yii::$app->user->id;
}
],
]
Registr eactivity
Yii::$app
->activityRegistar
->registerModel(
$model,
$this->route,
ArrayHelper::filter($deliveryModel->attributes,[
'recipient_person'
])
);
Get activity record list
$sysModelIdA = SysModelsDictionary::getIdByClassName(TestModel::class);
$sysModelIdB = SysModelsDictionary::getIdByClassName(self::TEST_CLASS_NAME);
Yii::$app->activityList->filter = [ActivityConfig::PARTNER_ID => 44];
$list = Yii::$app
->activityList
->getDescList([$sysModelIdA,$sysModelIdB]);
Files |
File | Role | Description | ||
---|---|---|---|---|
actions (2 files) | ||||
components (6 files) | ||||
dictionaries (2 files) | ||||
doc (2 files) | ||||
gii (3 files) | ||||
logic (2 files) | ||||
messages (1 directory) | ||||
migrations (6 files) | ||||
models (5 files, 1 directory) | ||||
tests (1 directory) | ||||
views (1 directory) | ||||
composer.json | Data | Auxiliary data | ||
Module.php | Class | Class source | ||
README.md | Doc. | Documentation |
Files | / | actions |
File | Role | Description |
---|---|---|
D3EditableAction.php | Class | Class source |
D3IndexAction.php | Class | Class source |
Files | / | components |
File | Role | Description |
---|---|---|
ActivityRecord.php | Class | Class source |
ActivityRegistar.php | Class | Class source |
D3ActivityList.php | Class | Class source |
DbActivityRegistar.php | Class | Class source |
DummyActivityRegistar.php | Class | Class source |
ModelActivityInterface.php | Class | Class source |
Files | / | dictionaries |
File | Role | Description |
---|---|---|
D3aActionDictionary.php | Class | Class source |
D3aActionLabelDictionary.php | Class | Class source |
Files | / | doc |
File | Role | Description |
---|---|---|
DB.png | Data | Auxiliary data |
db_schema.schemaxml | Data | Auxiliary data |
Files | / | gii |
File | Role | Description |
---|---|---|
D3ActivityGiiantNModule.json | Data | Auxiliary data |
d3a_actionGiiantModel.json | Data | Auxiliary data |
d3a_activityGiiantModel.json | Data | Auxiliary data |
Files | / | logic |
File | Role | Description |
---|---|---|
BrowserDataHelper.php | Class | Class source |
RegActivity.php | Class | Class source |
Files | / | migrations |
File | Role | Description |
---|---|---|
m210309_140707_init.php | Class | Class source |
m210329_173818_cha...ActivityDataCol.php | Class | Class source |
m210408_215836_createD3DactionLabel.php | Class | Class source |
m210408_223207_fillD3DActionLabel.php | Class | Class source |
m210413_090707_act...panyIdcanbeNull.php | Class | Class source |
m211202_121335_d3y...ion_name_to_256.php | Class | Class source |
Files | / | models |
File | Role | Description | ||
---|---|---|---|---|
base (3 files) | ||||
D3aAction.php | Class | Class source | ||
D3aActivity.php | Class | Class source | ||
D3aActivityQuery.php | Class | Class source | ||
D3DActionLabel.php | Class | Class source | ||
SysModels.php | Class | Class source |
Files | / | models | / | base |
File | Role | Description |
---|---|---|
D3aAction.php | Class | Class source |
D3aActivity.php | Class | Class source |
D3DActionLabel.php | Class | Class source |
Files | / | tests | / | components |
File | Role | Description |
---|---|---|
D3ActivityListTest.php | Class | Class source |
TestModel.php | Class | Class source |
TestModelD3Activity.php | Class | Class source |
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.