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: 30 | All time: 11,122 This week: 455 |
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 (39) |
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 (39) | / | actions |
File | Role | Description |
---|---|---|
D3EditableAction.php | Class | Class source |
D3IndexAction.php | Class | Class source |
Files (39) | / | 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 (39) | / | dictionaries |
File | Role | Description |
---|---|---|
D3aActionDictionary.php | Class | Class source |
D3aActionLabelDictionary.php | Class | Class source |
Files (39) | / | doc |
File | Role | Description |
---|---|---|
DB.png | Data | Auxiliary data |
db_schema.schemaxml | Data | Auxiliary data |
Files (39) | / | gii |
File | Role | Description |
---|---|---|
D3ActivityGiiantNModule.json | Data | Auxiliary data |
d3a_actionGiiantModel.json | Data | Auxiliary data |
d3a_activityGiiantModel.json | Data | Auxiliary data |
Files (39) | / | logic |
File | Role | Description |
---|---|---|
BrowserDataHelper.php | Class | Class source |
RegActivity.php | Class | Class source |
Files (39) | / | 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 (39) | / | 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 (39) | / | models | / | base |
File | Role | Description |
---|---|---|
D3aAction.php | Class | Class source |
D3aActivity.php | Class | Class source |
D3DActionLabel.php | Class | Class source |
Files (39) | / | tests | / | components |
File | Role | Description |
---|---|---|
D3ActivityListTest.php | Class | Class source |
TestModel.php | Class | Class source |
TestModelD3Activity.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.