Skip to content

Commit 85a2975

Browse files
committed
#6 changed name from AdminLogger to AdminMonitoring
1 parent 304d26c commit 85a2975

45 files changed

Lines changed: 324 additions & 324 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Firegento AdminLogger
1+
# Firegento AdminMonitoring
22

3-
The admin logger logs nearly every save and delete call in the backend. The idea is to generate an overview of the changes in the backend to know who changed certain things.
3+
The admin monitoring logs nearly every save and delete call in the backend. The idea is to generate an overview of the changes in the backend to know who changed certain things.
44

55
##Vision
66
If we know all the changes in the backend, we can provide versioning.
@@ -15,52 +15,52 @@ Install via modman or copy the files into your magento installation.
1515
### BE CAREFUL
1616
This extension writes a lot of data into the database and we exclude only a few core classes. If you have many writes in the backend, please have a look into this to avoid a full hard disk!
1717

18-
To exclude a class, add it into the node `config/default/firegento_adminlogger_config/exclude/object_types`
18+
To exclude a class, add it into the node `config/default/firegento_AdminMonitoring_config/exclude/object_types`
1919

2020
<config>
2121
<default>
22-
<firegento_adminlogger_config>
22+
<firegento_AdminMonitoring_config>
2323
<exclude>
2424
<object_types>
2525
<Mage_Index_Model_Event />
2626
<!-- omit infinite loops -->
27-
<Firegento_AdminLogger_Model_History />
27+
<Firegento_AdminMonitoring_Model_History />
2828
</object_types>
2929
</exclude>
30-
</firegento_adminlogger_config>
30+
</firegento_AdminMonitoring_config>
3131
</default>
3232
</config>
3333

3434
You can also exclude fields like updated_at ...
3535

3636
<config>
3737
<default>
38-
<firegento_adminlogger_config>
38+
<firegento_AdminMonitoring_config>
3939
<exclude>
4040
<fields>
4141
<updated_at />
4242
<update_time />
4343
</fields>
4444
</exclude>
45-
</firegento_adminlogger_config>
45+
</firegento_AdminMonitoring_config>
4646
</default>
4747
</config>
4848

4949
### Third party integration
5050
model_save_after and model_delete_after are observed and changes automatically logged if not excluded as described above.
5151
So even third party models will be logged and can be even better integrated by link to their adminhtml edit form.
52-
To do this observe the firegento_adminlogger_rowurl event and see Firegento_AdminLogger_Model_RowUrl_Product for an catalog_product implementation which can be adapted.
52+
To do this observe the firegento_AdminMonitoring_rowurl event and see Firegento_AdminMonitoring_Model_RowUrl_Product for an catalog_product implementation which can be adapted.
5353

54-
If you want to log your own events just dispatch the firegento_adminlogger_log event:
54+
If you want to log your own events just dispatch the firegento_AdminMonitoring_log event:
5555

5656
Mage::dispatchEvent(
57-
'firegento_adminlogger_log',
57+
'firegento_AdminMonitoring_log',
5858
array(
5959
'object_id' => $objectId,
6060
'object_type' => $objectType,
6161
'content' => $content, // as json
6262
'content_diff' => $contentDiff, // as json
63-
'action' => $action, // see Firegento_AdminLogger_Helper_Data for possible ACTION constants
63+
'action' => $action, // see Firegento_AdminMonitoring_Helper_Data for possible ACTION constants
6464
)
6565
);
6666

app/code/community/Firegento/AdminLogger/Block/Adminhtml/History.php

Lines changed: 0 additions & 16 deletions
This file was deleted.

app/code/community/Firegento/AdminLogger/Model/Clean.php

Lines changed: 0 additions & 33 deletions
This file was deleted.

app/code/community/Firegento/AdminLogger/Model/Observer.php

Lines changed: 0 additions & 23 deletions
This file was deleted.

app/code/community/Firegento/AdminLogger/Model/Observer/Model/Delete.php

Lines changed: 0 additions & 9 deletions
This file was deleted.

app/code/community/Firegento/AdminLogger/Model/Resource/History.php

Lines changed: 0 additions & 9 deletions
This file was deleted.

app/code/community/Firegento/AdminLogger/Model/Resource/History/Collection.php

Lines changed: 0 additions & 9 deletions
This file was deleted.

app/code/community/Firegento/AdminLogger/Test/Config/Setup.php

Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
class Firegento_AdminMonitoring_Block_Adminhtml_History extends Mage_Adminhtml_Block_Widget_Grid_Container
4+
{
5+
public function __construct()
6+
{
7+
$this->_blockGroup = 'firegento_adminmonitoring';
8+
$this->_controller = 'adminhtml_history';
9+
10+
$this->_headerText = Mage::helper('firegento_adminmonitoring')->__('History');
11+
#$this->_addButtonLabel = Mage::helper('firegento_adminmonitoring')->__('Log hinzufügen');
12+
13+
parent::__construct();
14+
$this->removeButton('add');
15+
}
16+
}

0 commit comments

Comments
 (0)