Version Notes
The module was divided into two to fix Secure URLs problem.
Download this release
Release Info
Developer | Magento Core Team |
Extension | Manufacturer_Model_Number |
Version | 3.0 |
Comparing to | |
See all releases |
Code changes from version 2.2 to 3.0
- app/code/local/Pektsekye/Mmn/Block/Adminhtml/Mmn/Edit/Tab/Form.php +0 -45
- app/code/local/Pektsekye/Mmn/Block/Adminhtml/Mmn/Edit/Tabs.php +0 -24
- app/code/local/Pektsekye/Mmn/Block/Adminhtml/Mmn/ImportExport.php +0 -10
- app/code/local/Pektsekye/{Catalog → Mmn}/Model/Category.php +1 -1
- app/code/local/Pektsekye/{CatalogSearch → Mmn}/Model/Layer.php +1 -1
- app/code/local/Pektsekye/{Catalog → Mmn}/Model/Resource/Eav/Mysql4/Category.php +1 -1
- app/code/local/Pektsekye/Mmn/Model/Status.php +0 -15
- app/code/local/Pektsekye/Mmn/etc/config.xml +11 -81
- app/code/local/Pektsekye/{Mmn/Block/Adminhtml/Mmn.php → MmnAdmin/Block/Items.php} +3 -3
- app/code/local/Pektsekye/{Mmn/Block/Adminhtml/Mmn → MmnAdmin/Block/Items}/Edit.php +11 -11
- app/code/local/Pektsekye/{Mmn/Block/Adminhtml/Mmn → MmnAdmin/Block/Items}/Edit/Form.php +1 -1
- app/code/local/Pektsekye/MmnAdmin/Block/Items/Edit/Tab/Form.php +45 -0
- app/code/local/Pektsekye/MmnAdmin/Block/Items/Edit/Tabs.php +24 -0
- app/code/local/Pektsekye/{Mmn/Block/Adminhtml/Mmn → MmnAdmin/Block/Items}/Grid.php +12 -12
- app/code/local/Pektsekye/MmnAdmin/Block/Items/ImportExport.php +10 -0
- app/code/local/Pektsekye/MmnAdmin/Helper/Data.php +7 -0
- app/code/local/Pektsekye/MmnAdmin/Model/MmnAdmin.php +10 -0
- app/code/local/Pektsekye/MmnAdmin/Model/Mysql4/MmnAdmin.php +10 -0
- app/code/local/Pektsekye/MmnAdmin/Model/Mysql4/MmnAdmin/Collection.php +10 -0
- app/code/local/Pektsekye/{Mmn/controllers/Adminhtml/MmnController.php → MmnAdmin/controllers/ItemsController.php} +45 -45
- app/code/local/Pektsekye/MmnAdmin/etc/config.xml +108 -0
- app/code/local/Pektsekye/{Mmn/sql/mmn_setup → MmnAdmin/sql/mmnadmin_setup}/mysql4-install-0.1.0.php +2 -2
- app/code/local/Pektsekye/{Mmn/sql/mmn_setup → MmnAdmin/sql/mmnadmin_setup}/mysql4-upgrade-0.1.0-0.2.0.php +1 -1
- app/design/adminhtml/default/default/layout/mmn.xml +0 -8
- app/design/adminhtml/default/default/layout/mmnadmin.xml +8 -0
- app/design/adminhtml/default/default/template/{mmn → mmnadmin}/importExport.phtml +6 -6
- app/etc/modules/Pektsekye_Catalog.xml +0 -7
- app/etc/modules/Pektsekye_CatalogSearch.xml +0 -7
- app/etc/modules/Pektsekye_MmnAdmin.xml +9 -0
- package.xml +5 -5
app/code/local/Pektsekye/Mmn/Block/Adminhtml/Mmn/Edit/Tab/Form.php
DELETED
@@ -1,45 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Pektsekye_Mmn_Block_Adminhtml_Mmn_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
|
4 |
-
{
|
5 |
-
protected function _prepareForm()
|
6 |
-
{
|
7 |
-
$form = new Varien_Data_Form();
|
8 |
-
$this->setForm($form);
|
9 |
-
$fieldset = $form->addFieldset('mmn_form', array('legend'=>Mage::helper('mmn')->__('Item information')));
|
10 |
-
|
11 |
-
$fieldset->addField('sku', 'text', array(
|
12 |
-
'label' => Mage::helper('mmn')->__('SKU'),
|
13 |
-
'required' => true,
|
14 |
-
'name' => 'sku',
|
15 |
-
));
|
16 |
-
|
17 |
-
$fieldset->addField('manufacturer', 'text', array(
|
18 |
-
'label' => Mage::helper('mmn')->__('Printer Manufacturer'),
|
19 |
-
'required' => false,
|
20 |
-
'name' => 'manufacturer',
|
21 |
-
));
|
22 |
-
|
23 |
-
$fieldset->addField('model', 'text', array(
|
24 |
-
'label' => Mage::helper('mmn')->__('Printer Model'),
|
25 |
-
'required' => false,
|
26 |
-
'name' => 'model',
|
27 |
-
));
|
28 |
-
|
29 |
-
$fieldset->addField('number', 'text', array(
|
30 |
-
'label' => Mage::helper('mmn')->__('Printer Number'),
|
31 |
-
'required' => false,
|
32 |
-
'name' => 'number',
|
33 |
-
));
|
34 |
-
|
35 |
-
|
36 |
-
if ( Mage::getSingleton('adminhtml/session')->getMmnData() )
|
37 |
-
{
|
38 |
-
$form->setValues(Mage::getSingleton('adminhtml/session')->getMmnData());
|
39 |
-
Mage::getSingleton('adminhtml/session')->setMmnData(null);
|
40 |
-
} elseif ( Mage::registry('mmn_data') ) {
|
41 |
-
$form->setValues(Mage::registry('mmn_data')->getData());
|
42 |
-
}
|
43 |
-
return parent::_prepareForm();
|
44 |
-
}
|
45 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Pektsekye/Mmn/Block/Adminhtml/Mmn/Edit/Tabs.php
DELETED
@@ -1,24 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Pektsekye_Mmn_Block_Adminhtml_Mmn_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
|
4 |
-
{
|
5 |
-
|
6 |
-
public function __construct()
|
7 |
-
{
|
8 |
-
parent::__construct();
|
9 |
-
$this->setId('mmn_tabs');
|
10 |
-
$this->setDestElementId('edit_form');
|
11 |
-
$this->setTitle(Mage::helper('mmn')->__('Item Information'));
|
12 |
-
}
|
13 |
-
|
14 |
-
protected function _beforeToHtml()
|
15 |
-
{
|
16 |
-
$this->addTab('form_section', array(
|
17 |
-
'label' => Mage::helper('mmn')->__('Item Information'),
|
18 |
-
'title' => Mage::helper('mmn')->__('Item Information'),
|
19 |
-
'content' => $this->getLayout()->createBlock('mmn/adminhtml_mmn_edit_tab_form')->toHtml(),
|
20 |
-
));
|
21 |
-
|
22 |
-
return parent::_beforeToHtml();
|
23 |
-
}
|
24 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Pektsekye/Mmn/Block/Adminhtml/Mmn/ImportExport.php
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Pektsekye_Mmn_Block_Adminhtml_Mmn_importExport extends Mage_Adminhtml_Block_Widget
|
4 |
-
{
|
5 |
-
public function __construct()
|
6 |
-
{
|
7 |
-
parent::__construct();
|
8 |
-
$this->setTemplate('mmn/importExport.phtml');
|
9 |
-
}
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Pektsekye/{Catalog → Mmn}/Model/Category.php
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class
|
4 |
{
|
5 |
|
6 |
/** Override core magento function
|
1 |
<?php
|
2 |
|
3 |
+
class Pektsekye_Mmn_Model_Category extends Mage_Catalog_Model_Category
|
4 |
{
|
5 |
|
6 |
/** Override core magento function
|
app/code/local/Pektsekye/{CatalogSearch → Mmn}/Model/Layer.php
RENAMED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
|
3 |
|
4 |
-
class
|
5 |
{
|
6 |
|
7 |
/**Override core magento method
|
1 |
<?php
|
2 |
|
3 |
|
4 |
+
class Pektsekye_Mmn_Model_Layer extends Mage_CatalogSearch_Model_Layer
|
5 |
{
|
6 |
|
7 |
/**Override core magento method
|
app/code/local/Pektsekye/{Catalog → Mmn}/Model/Resource/Eav/Mysql4/Category.php
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class
|
4 |
{
|
5 |
|
6 |
|
1 |
<?php
|
2 |
|
3 |
+
class Pektsekye_Mmn_Model_Resource_Eav_Mysql4_Category extends Mage_Catalog_Model_Resource_Eav_Mysql4_Category
|
4 |
{
|
5 |
|
6 |
|
app/code/local/Pektsekye/Mmn/Model/Status.php
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Pektsekye_Mmn_Model_Status extends Varien_Object
|
4 |
-
{
|
5 |
-
const STATUS_ENABLED = 1;
|
6 |
-
const STATUS_DISABLED = 2;
|
7 |
-
|
8 |
-
static public function getOptionArray()
|
9 |
-
{
|
10 |
-
return array(
|
11 |
-
self::STATUS_ENABLED => Mage::helper('mmn')->__('Enabled'),
|
12 |
-
self::STATUS_DISABLED => Mage::helper('mmn')->__('Disabled')
|
13 |
-
);
|
14 |
-
}
|
15 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Pektsekye/Mmn/etc/config.xml
CHANGED
@@ -5,10 +5,7 @@
|
|
5 |
<version>0.2.0</version>
|
6 |
</Pektsekye_Mmn>
|
7 |
</modules>
|
8 |
-
<frontend>
|
9 |
-
<secure_url>
|
10 |
-
<mmn>/mmn/</mmn>
|
11 |
-
</secure_url>
|
12 |
<routers>
|
13 |
<mmn>
|
14 |
<use>standard</use>
|
@@ -34,75 +31,22 @@
|
|
34 |
</Pektsekye_Mmn>
|
35 |
</modules>
|
36 |
</translate>
|
37 |
-
</frontend>
|
38 |
-
<admin>
|
39 |
-
<routers>
|
40 |
-
<mmn>
|
41 |
-
<use>admin</use>
|
42 |
-
<args>
|
43 |
-
<module>Pektsekye_Mmn</module>
|
44 |
-
<frontName>mmn</frontName>
|
45 |
-
</args>
|
46 |
-
</mmn>
|
47 |
-
</routers>
|
48 |
-
</admin>
|
49 |
-
<adminhtml>
|
50 |
-
<menu>
|
51 |
-
<mmn module="mmn">
|
52 |
-
<title>Mmn</title>
|
53 |
-
<sort_order>71</sort_order>
|
54 |
-
<children>
|
55 |
-
<items module="mmn">
|
56 |
-
<title>Manage Items</title>
|
57 |
-
<sort_order>0</sort_order>
|
58 |
-
<action>mmn/adminhtml_mmn</action>
|
59 |
-
</items>
|
60 |
-
<import module="mmn">
|
61 |
-
<title>Import / Export</title>
|
62 |
-
<sort_order>1</sort_order>
|
63 |
-
<action>mmn/adminhtml_mmn/importExport</action>
|
64 |
-
</import>
|
65 |
-
</children>
|
66 |
-
</mmn>
|
67 |
-
</menu>
|
68 |
-
<acl>
|
69 |
-
<resources>
|
70 |
-
<all>
|
71 |
-
<title>Allow Everything</title>
|
72 |
-
</all>
|
73 |
-
<admin>
|
74 |
-
<children>
|
75 |
-
<Pektsekye_Mmn>
|
76 |
-
<title>Mmn Module</title>
|
77 |
-
<sort_order>10</sort_order>
|
78 |
-
</Pektsekye_Mmn>
|
79 |
-
</children>
|
80 |
-
</admin>
|
81 |
-
</resources>
|
82 |
-
</acl>
|
83 |
-
<layout>
|
84 |
-
<updates>
|
85 |
-
<mmn>
|
86 |
-
<file>mmn.xml</file>
|
87 |
-
</mmn>
|
88 |
-
</updates>
|
89 |
-
</layout>
|
90 |
-
</adminhtml>
|
91 |
<global>
|
92 |
<models>
|
93 |
<catalog>
|
94 |
<rewrite>
|
95 |
-
<category>
|
96 |
</rewrite>
|
97 |
</catalog>
|
98 |
<catalog_resource_eav_mysql4>
|
99 |
<rewrite>
|
100 |
-
<category>
|
101 |
</rewrite>
|
102 |
</catalog_resource_eav_mysql4>
|
103 |
<catalogsearch>
|
104 |
<rewrite>
|
105 |
-
<layer>
|
106 |
</rewrite>
|
107 |
</catalogsearch>
|
108 |
<mmn>
|
@@ -118,26 +62,12 @@
|
|
118 |
</entities>
|
119 |
</mmn_mysql4>
|
120 |
</models>
|
121 |
-
<resources>
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
<connection>
|
128 |
-
<use>core_setup</use>
|
129 |
-
</connection>
|
130 |
-
</mmn_setup>
|
131 |
-
<mmn_write>
|
132 |
-
<connection>
|
133 |
-
<use>core_write</use>
|
134 |
-
</connection>
|
135 |
-
</mmn_write>
|
136 |
-
<mmn_read>
|
137 |
-
<connection>
|
138 |
-
<use>core_read</use>
|
139 |
-
</connection>
|
140 |
-
</mmn_read>
|
141 |
</resources>
|
142 |
<blocks>
|
143 |
<mmn>
|
5 |
<version>0.2.0</version>
|
6 |
</Pektsekye_Mmn>
|
7 |
</modules>
|
8 |
+
<frontend>
|
|
|
|
|
|
|
9 |
<routers>
|
10 |
<mmn>
|
11 |
<use>standard</use>
|
31 |
</Pektsekye_Mmn>
|
32 |
</modules>
|
33 |
</translate>
|
34 |
+
</frontend>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
<global>
|
36 |
<models>
|
37 |
<catalog>
|
38 |
<rewrite>
|
39 |
+
<category>Pektsekye_Mmn_Model_Category</category>
|
40 |
</rewrite>
|
41 |
</catalog>
|
42 |
<catalog_resource_eav_mysql4>
|
43 |
<rewrite>
|
44 |
+
<category>Pektsekye_Mmn_Model_Resource_Eav_Mysql4_Category</category>
|
45 |
</rewrite>
|
46 |
</catalog_resource_eav_mysql4>
|
47 |
<catalogsearch>
|
48 |
<rewrite>
|
49 |
+
<layer>Pektsekye_Mmn_Model_Layer</layer>
|
50 |
</rewrite>
|
51 |
</catalogsearch>
|
52 |
<mmn>
|
62 |
</entities>
|
63 |
</mmn_mysql4>
|
64 |
</models>
|
65 |
+
<resources>
|
66 |
+
<mmn_read>
|
67 |
+
<connection>
|
68 |
+
<use>core_read</use>
|
69 |
+
</connection>
|
70 |
+
</mmn_read>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
</resources>
|
72 |
<blocks>
|
73 |
<mmn>
|
app/code/local/Pektsekye/{Mmn/Block/Adminhtml/Mmn.php → MmnAdmin/Block/Items.php}
RENAMED
@@ -1,10 +1,10 @@
|
|
1 |
<?php
|
2 |
-
class
|
3 |
{
|
4 |
public function __construct()
|
5 |
{
|
6 |
-
$this->_controller = '
|
7 |
-
$this->_blockGroup = '
|
8 |
$this->_headerText = Mage::helper('mmn')->__('Item Manager');
|
9 |
$this->_addButtonLabel = Mage::helper('mmn')->__('Add Item');
|
10 |
parent::__construct();
|
1 |
<?php
|
2 |
+
class Pektsekye_MmnAdmin_Block_Items extends Mage_Adminhtml_Block_Widget_Grid_Container
|
3 |
{
|
4 |
public function __construct()
|
5 |
{
|
6 |
+
$this->_controller = 'items';
|
7 |
+
$this->_blockGroup = 'mmnadmin';
|
8 |
$this->_headerText = Mage::helper('mmn')->__('Item Manager');
|
9 |
$this->_addButtonLabel = Mage::helper('mmn')->__('Add Item');
|
10 |
parent::__construct();
|
app/code/local/Pektsekye/{Mmn/Block/Adminhtml/Mmn → MmnAdmin/Block/Items}/Edit.php
RENAMED
@@ -1,17 +1,17 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class
|
4 |
{
|
5 |
public function __construct()
|
6 |
{
|
7 |
parent::__construct();
|
8 |
|
9 |
$this->_objectId = 'id';
|
10 |
-
$this->_blockGroup = '
|
11 |
-
$this->_controller = '
|
12 |
|
13 |
-
$this->_updateButton('save', 'label', Mage::helper('
|
14 |
-
$this->_updateButton('delete', 'label', Mage::helper('
|
15 |
|
16 |
$this->_addButton('saveandcontinue', array(
|
17 |
'label' => Mage::helper('adminhtml')->__('Save And Continue Edit'),
|
@@ -21,10 +21,10 @@ class Pektsekye_Mmn_Block_Adminhtml_Mmn_Edit extends Mage_Adminhtml_Block_Widget
|
|
21 |
|
22 |
$this->_formScripts[] = "
|
23 |
function toggleEditor() {
|
24 |
-
if (tinyMCE.getInstanceById('
|
25 |
-
tinyMCE.execCommand('mceAddControl', false, '
|
26 |
} else {
|
27 |
-
tinyMCE.execCommand('mceRemoveControl', false, '
|
28 |
}
|
29 |
}
|
30 |
|
@@ -36,10 +36,10 @@ class Pektsekye_Mmn_Block_Adminhtml_Mmn_Edit extends Mage_Adminhtml_Block_Widget
|
|
36 |
|
37 |
public function getHeaderText()
|
38 |
{
|
39 |
-
if( Mage::registry('
|
40 |
-
return Mage::helper('
|
41 |
} else {
|
42 |
-
return Mage::helper('
|
43 |
}
|
44 |
}
|
45 |
}
|
1 |
<?php
|
2 |
|
3 |
+
class Pektsekye_MmnAdmin_Block_Items_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
|
4 |
{
|
5 |
public function __construct()
|
6 |
{
|
7 |
parent::__construct();
|
8 |
|
9 |
$this->_objectId = 'id';
|
10 |
+
$this->_blockGroup = 'mmnadmin';
|
11 |
+
$this->_controller = 'items';
|
12 |
|
13 |
+
$this->_updateButton('save', 'label', Mage::helper('mmnadmin')->__('Save Item'));
|
14 |
+
$this->_updateButton('delete', 'label', Mage::helper('mmnadmin')->__('Delete Item'));
|
15 |
|
16 |
$this->_addButton('saveandcontinue', array(
|
17 |
'label' => Mage::helper('adminhtml')->__('Save And Continue Edit'),
|
21 |
|
22 |
$this->_formScripts[] = "
|
23 |
function toggleEditor() {
|
24 |
+
if (tinyMCE.getInstanceById('mmnadmin_content') == null) {
|
25 |
+
tinyMCE.execCommand('mceAddControl', false, 'mmnadmin_content');
|
26 |
} else {
|
27 |
+
tinyMCE.execCommand('mceRemoveControl', false, 'mmnadmin_content');
|
28 |
}
|
29 |
}
|
30 |
|
36 |
|
37 |
public function getHeaderText()
|
38 |
{
|
39 |
+
if( Mage::registry('mmnadmin_data') && Mage::registry('mmnadmin_data')->getId() ) {
|
40 |
+
return Mage::helper('mmnadmin')->__('Edit Item');
|
41 |
} else {
|
42 |
+
return Mage::helper('mmnadmin')->__('Add Item');
|
43 |
}
|
44 |
}
|
45 |
}
|
app/code/local/Pektsekye/{Mmn/Block/Adminhtml/Mmn → MmnAdmin/Block/Items}/Edit/Form.php
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class
|
4 |
{
|
5 |
protected function _prepareForm()
|
6 |
{
|
1 |
<?php
|
2 |
|
3 |
+
class Pektsekye_MmnAdmin_Block_Items_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
|
4 |
{
|
5 |
protected function _prepareForm()
|
6 |
{
|
app/code/local/Pektsekye/MmnAdmin/Block/Items/Edit/Tab/Form.php
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Pektsekye_MmnAdmin_Block_Items_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
|
4 |
+
{
|
5 |
+
protected function _prepareForm()
|
6 |
+
{
|
7 |
+
$form = new Varien_Data_Form();
|
8 |
+
$this->setForm($form);
|
9 |
+
$fieldset = $form->addFieldset('mmnadmin_form', array('legend'=>Mage::helper('mmnadmin')->__('Item information')));
|
10 |
+
|
11 |
+
$fieldset->addField('sku', 'text', array(
|
12 |
+
'label' => Mage::helper('mmnadmin')->__('SKU'),
|
13 |
+
'required' => true,
|
14 |
+
'name' => 'sku',
|
15 |
+
));
|
16 |
+
|
17 |
+
$fieldset->addField('manufacturer', 'text', array(
|
18 |
+
'label' => Mage::helper('mmnadmin')->__('Printer Manufacturer'),
|
19 |
+
'required' => false,
|
20 |
+
'name' => 'manufacturer',
|
21 |
+
));
|
22 |
+
|
23 |
+
$fieldset->addField('model', 'text', array(
|
24 |
+
'label' => Mage::helper('mmnadmin')->__('Printer Model'),
|
25 |
+
'required' => false,
|
26 |
+
'name' => 'model',
|
27 |
+
));
|
28 |
+
|
29 |
+
$fieldset->addField('number', 'text', array(
|
30 |
+
'label' => Mage::helper('mmnadmin')->__('Printer Number'),
|
31 |
+
'required' => false,
|
32 |
+
'name' => 'number',
|
33 |
+
));
|
34 |
+
|
35 |
+
|
36 |
+
if ( Mage::getSingleton('adminhtml/session')->getMmnAdminData() )
|
37 |
+
{
|
38 |
+
$form->setValues(Mage::getSingleton('adminhtml/session')->getMmnAdminData());
|
39 |
+
Mage::getSingleton('adminhtml/session')->setMmnAdminData(null);
|
40 |
+
} elseif ( Mage::registry('mmnadmin_data') ) {
|
41 |
+
$form->setValues(Mage::registry('mmnadmin_data')->getData());
|
42 |
+
}
|
43 |
+
return parent::_prepareForm();
|
44 |
+
}
|
45 |
+
}
|
app/code/local/Pektsekye/MmnAdmin/Block/Items/Edit/Tabs.php
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Pektsekye_MmnAdmin_Block_Items_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
|
4 |
+
{
|
5 |
+
|
6 |
+
public function __construct()
|
7 |
+
{
|
8 |
+
parent::__construct();
|
9 |
+
$this->setId('mmnadmin_tabs');
|
10 |
+
$this->setDestElementId('edit_form');
|
11 |
+
$this->setTitle(Mage::helper('mmnadmin')->__('Item Information'));
|
12 |
+
}
|
13 |
+
|
14 |
+
protected function _beforeToHtml()
|
15 |
+
{
|
16 |
+
$this->addTab('form_section', array(
|
17 |
+
'label' => Mage::helper('mmnadmin')->__('Item Information'),
|
18 |
+
'title' => Mage::helper('mmnadmin')->__('Item Information'),
|
19 |
+
'content' => $this->getLayout()->createBlock('mmnadmin/items_edit_tab_form')->toHtml(),
|
20 |
+
));
|
21 |
+
|
22 |
+
return parent::_beforeToHtml();
|
23 |
+
}
|
24 |
+
}
|
app/code/local/Pektsekye/{Mmn/Block/Adminhtml/Mmn → MmnAdmin/Block/Items}/Grid.php
RENAMED
@@ -1,11 +1,11 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class
|
4 |
{
|
5 |
public function __construct()
|
6 |
{
|
7 |
parent::__construct();
|
8 |
-
$this->setId('
|
9 |
$this->setDefaultSort('mmn_id');
|
10 |
$this->setDefaultDir('ASC');
|
11 |
$this->setSaveParametersInSession(true);
|
@@ -13,7 +13,7 @@ class Pektsekye_Mmn_Block_Adminhtml_Mmn_Grid extends Mage_Adminhtml_Block_Widget
|
|
13 |
|
14 |
protected function _prepareCollection()
|
15 |
{
|
16 |
-
$collection = Mage::getModel('
|
17 |
$this->setCollection($collection);
|
18 |
return parent::_prepareCollection();
|
19 |
}
|
@@ -22,25 +22,25 @@ class Pektsekye_Mmn_Block_Adminhtml_Mmn_Grid extends Mage_Adminhtml_Block_Widget
|
|
22 |
{
|
23 |
|
24 |
$this->addColumn('sku', array(
|
25 |
-
'header' => Mage::helper('
|
26 |
'align' =>'left',
|
27 |
'index' => 'sku',
|
28 |
));
|
29 |
|
30 |
$this->addColumn('manufacturer', array(
|
31 |
-
'header' => Mage::helper('
|
32 |
'align' =>'left',
|
33 |
'index' => 'manufacturer',
|
34 |
));
|
35 |
|
36 |
$this->addColumn('model', array(
|
37 |
-
'header' => Mage::helper('
|
38 |
'align' =>'left',
|
39 |
'index' => 'model',
|
40 |
));
|
41 |
|
42 |
$this->addColumn('number', array(
|
43 |
-
'header' => Mage::helper('
|
44 |
'align' =>'left',
|
45 |
'index' => 'number',
|
46 |
));
|
@@ -48,13 +48,13 @@ class Pektsekye_Mmn_Block_Adminhtml_Mmn_Grid extends Mage_Adminhtml_Block_Widget
|
|
48 |
|
49 |
$this->addColumn('action',
|
50 |
array(
|
51 |
-
'header' => Mage::helper('
|
52 |
'width' => '100',
|
53 |
'type' => 'action',
|
54 |
'getter' => 'getId',
|
55 |
'actions' => array(
|
56 |
array(
|
57 |
-
'caption' => Mage::helper('
|
58 |
'url' => array('base'=> '*/*/edit'),
|
59 |
'field' => 'id'
|
60 |
)
|
@@ -72,12 +72,12 @@ class Pektsekye_Mmn_Block_Adminhtml_Mmn_Grid extends Mage_Adminhtml_Block_Widget
|
|
72 |
protected function _prepareMassaction()
|
73 |
{
|
74 |
$this->setMassactionIdField('mmn_id');
|
75 |
-
$this->getMassactionBlock()->setFormFieldName('
|
76 |
|
77 |
$this->getMassactionBlock()->addItem('delete', array(
|
78 |
-
'label' => Mage::helper('
|
79 |
'url' => $this->getUrl('*/*/massDelete'),
|
80 |
-
'confirm' => Mage::helper('
|
81 |
));
|
82 |
|
83 |
return $this;
|
1 |
<?php
|
2 |
|
3 |
+
class Pektsekye_MmnAdmin_Block_Items_Grid extends Mage_Adminhtml_Block_Widget_Grid
|
4 |
{
|
5 |
public function __construct()
|
6 |
{
|
7 |
parent::__construct();
|
8 |
+
$this->setId('mmnadminGrid');
|
9 |
$this->setDefaultSort('mmn_id');
|
10 |
$this->setDefaultDir('ASC');
|
11 |
$this->setSaveParametersInSession(true);
|
13 |
|
14 |
protected function _prepareCollection()
|
15 |
{
|
16 |
+
$collection = Mage::getModel('mmnadmin/mmnAdmin')->getCollection();
|
17 |
$this->setCollection($collection);
|
18 |
return parent::_prepareCollection();
|
19 |
}
|
22 |
{
|
23 |
|
24 |
$this->addColumn('sku', array(
|
25 |
+
'header' => Mage::helper('mmnadmin')->__('SKU'),
|
26 |
'align' =>'left',
|
27 |
'index' => 'sku',
|
28 |
));
|
29 |
|
30 |
$this->addColumn('manufacturer', array(
|
31 |
+
'header' => Mage::helper('mmnadmin')->__('Printer Manufacturer'),
|
32 |
'align' =>'left',
|
33 |
'index' => 'manufacturer',
|
34 |
));
|
35 |
|
36 |
$this->addColumn('model', array(
|
37 |
+
'header' => Mage::helper('mmnadmin')->__('Printer Model'),
|
38 |
'align' =>'left',
|
39 |
'index' => 'model',
|
40 |
));
|
41 |
|
42 |
$this->addColumn('number', array(
|
43 |
+
'header' => Mage::helper('mmnadmin')->__('Printer Number'),
|
44 |
'align' =>'left',
|
45 |
'index' => 'number',
|
46 |
));
|
48 |
|
49 |
$this->addColumn('action',
|
50 |
array(
|
51 |
+
'header' => Mage::helper('mmnadmin')->__('Action'),
|
52 |
'width' => '100',
|
53 |
'type' => 'action',
|
54 |
'getter' => 'getId',
|
55 |
'actions' => array(
|
56 |
array(
|
57 |
+
'caption' => Mage::helper('mmnadmin')->__('Edit'),
|
58 |
'url' => array('base'=> '*/*/edit'),
|
59 |
'field' => 'id'
|
60 |
)
|
72 |
protected function _prepareMassaction()
|
73 |
{
|
74 |
$this->setMassactionIdField('mmn_id');
|
75 |
+
$this->getMassactionBlock()->setFormFieldName('mmnadmin');
|
76 |
|
77 |
$this->getMassactionBlock()->addItem('delete', array(
|
78 |
+
'label' => Mage::helper('mmnadmin')->__('Delete'),
|
79 |
'url' => $this->getUrl('*/*/massDelete'),
|
80 |
+
'confirm' => Mage::helper('mmnadmin')->__('Are you sure?')
|
81 |
));
|
82 |
|
83 |
return $this;
|
app/code/local/Pektsekye/MmnAdmin/Block/Items/ImportExport.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Pektsekye_MmnAdmin_Block_Items_importExport extends Mage_Adminhtml_Block_Widget
|
4 |
+
{
|
5 |
+
public function __construct()
|
6 |
+
{
|
7 |
+
parent::__construct();
|
8 |
+
$this->setTemplate('mmnadmin/importExport.phtml');
|
9 |
+
}
|
10 |
+
}
|
app/code/local/Pektsekye/MmnAdmin/Helper/Data.php
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Pektsekye_MmnAdmin_Helper_Data extends Mage_Core_Helper_Abstract
|
4 |
+
{
|
5 |
+
|
6 |
+
|
7 |
+
}
|
app/code/local/Pektsekye/MmnAdmin/Model/MmnAdmin.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Pektsekye_MmnAdmin_Model_MmnAdmin extends Mage_Core_Model_Abstract
|
4 |
+
{
|
5 |
+
public function _construct()
|
6 |
+
{
|
7 |
+
parent::_construct();
|
8 |
+
$this->_init('mmnadmin/mmnAdmin');
|
9 |
+
}
|
10 |
+
}
|
app/code/local/Pektsekye/MmnAdmin/Model/Mysql4/MmnAdmin.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Pektsekye_MmnAdmin_Model_Mysql4_MmnAdmin extends Mage_Core_Model_Mysql4_Abstract
|
4 |
+
{
|
5 |
+
public function _construct()
|
6 |
+
{
|
7 |
+
// Note that the mmn_id refers to the key field in your database table.
|
8 |
+
$this->_init('mmnadmin/mmn', 'mmn_id');
|
9 |
+
}
|
10 |
+
}
|
app/code/local/Pektsekye/MmnAdmin/Model/Mysql4/MmnAdmin/Collection.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Pektsekye_MmnAdmin_Model_Mysql4_MmnAdmin_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
|
4 |
+
{
|
5 |
+
public function _construct()
|
6 |
+
{
|
7 |
+
parent::_construct();
|
8 |
+
$this->_init('mmnadmin/mmnAdmin');
|
9 |
+
}
|
10 |
+
}
|
app/code/local/Pektsekye/{Mmn/controllers/Adminhtml/MmnController.php → MmnAdmin/controllers/ItemsController.php}
RENAMED
@@ -1,11 +1,11 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class
|
4 |
{
|
5 |
|
6 |
protected function _initAction() {
|
7 |
$this->loadLayout()
|
8 |
-
->_setActiveMenu('
|
9 |
->_addBreadcrumb(Mage::helper('adminhtml')->__('Items Manager'), Mage::helper('adminhtml')->__('Item Manager'));
|
10 |
|
11 |
return $this;
|
@@ -18,7 +18,7 @@ class Pektsekye_Mmn_Adminhtml_MmnController extends Mage_Adminhtml_Controller_ac
|
|
18 |
|
19 |
public function editAction() {
|
20 |
$id = $this->getRequest()->getParam('id');
|
21 |
-
$model = Mage::getModel('
|
22 |
|
23 |
if ($model->getId() || $id == 0) {
|
24 |
$data = Mage::getSingleton('adminhtml/session')->getFormData(true);
|
@@ -26,21 +26,21 @@ class Pektsekye_Mmn_Adminhtml_MmnController extends Mage_Adminhtml_Controller_ac
|
|
26 |
$model->setData($data);
|
27 |
}
|
28 |
|
29 |
-
Mage::register('
|
30 |
|
31 |
$this->loadLayout();
|
32 |
-
$this->_setActiveMenu('
|
33 |
|
34 |
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Item Manager'), Mage::helper('adminhtml')->__('Item Manager'));
|
35 |
|
36 |
$this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
|
37 |
|
38 |
-
$this->_addContent($this->getLayout()->createBlock('
|
39 |
-
->_addLeft($this->getLayout()->createBlock('
|
40 |
|
41 |
$this->renderLayout();
|
42 |
} else {
|
43 |
-
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('
|
44 |
$this->_redirect('*/*/');
|
45 |
}
|
46 |
}
|
@@ -57,14 +57,14 @@ class Pektsekye_Mmn_Adminhtml_MmnController extends Mage_Adminhtml_Controller_ac
|
|
57 |
$data ['model'] = trim(preg_replace('/[^\w\s-]/','',$data ['model']));
|
58 |
$data ['number'] = trim(preg_replace('/[^\w\s-]/','',$data ['number']));
|
59 |
|
60 |
-
$model = Mage::getModel('
|
61 |
$model->setData($data)
|
62 |
->setId($this->getRequest()->getParam('id'));
|
63 |
|
64 |
try {
|
65 |
|
66 |
$model->save();
|
67 |
-
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('
|
68 |
Mage::getSingleton('adminhtml/session')->setFormData(false);
|
69 |
|
70 |
if ($this->getRequest()->getParam('back')) {
|
@@ -80,14 +80,14 @@ class Pektsekye_Mmn_Adminhtml_MmnController extends Mage_Adminhtml_Controller_ac
|
|
80 |
return;
|
81 |
}
|
82 |
}
|
83 |
-
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('
|
84 |
$this->_redirect('*/*/');
|
85 |
}
|
86 |
|
87 |
public function deleteAction() {
|
88 |
if( $this->getRequest()->getParam('id') > 0 ) {
|
89 |
try {
|
90 |
-
$model = Mage::getModel('
|
91 |
|
92 |
$model->setId($this->getRequest()->getParam('id'))
|
93 |
->delete();
|
@@ -103,18 +103,18 @@ class Pektsekye_Mmn_Adminhtml_MmnController extends Mage_Adminhtml_Controller_ac
|
|
103 |
}
|
104 |
|
105 |
public function massDeleteAction() {
|
106 |
-
$
|
107 |
-
if(!is_array($
|
108 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('adminhtml')->__('Please select item(s)'));
|
109 |
} else {
|
110 |
try {
|
111 |
-
foreach ($
|
112 |
-
$
|
113 |
-
$
|
114 |
}
|
115 |
Mage::getSingleton('adminhtml/session')->addSuccess(
|
116 |
Mage::helper('adminhtml')->__(
|
117 |
-
'Total of %d record(s) were successfully deleted', count($
|
118 |
)
|
119 |
);
|
120 |
} catch (Exception $e) {
|
@@ -126,20 +126,20 @@ class Pektsekye_Mmn_Adminhtml_MmnController extends Mage_Adminhtml_Controller_ac
|
|
126 |
|
127 |
public function massStatusAction()
|
128 |
{
|
129 |
-
$
|
130 |
-
if(!is_array($
|
131 |
Mage::getSingleton('adminhtml/session')->addError($this->__('Please select item(s)'));
|
132 |
} else {
|
133 |
try {
|
134 |
-
foreach ($
|
135 |
-
$
|
136 |
-
->load($
|
137 |
->setStatus($this->getRequest()->getParam('status'))
|
138 |
->setIsMassupdate(true)
|
139 |
->save();
|
140 |
}
|
141 |
$this->_getSession()->addSuccess(
|
142 |
-
$this->__('Total of %d record(s) were successfully updated', count($
|
143 |
);
|
144 |
} catch (Exception $e) {
|
145 |
$this->_getSession()->addError($e->getMessage());
|
@@ -173,48 +173,48 @@ class Pektsekye_Mmn_Adminhtml_MmnController extends Mage_Adminhtml_Controller_ac
|
|
173 |
public function importExportAction()
|
174 |
{
|
175 |
$this->loadLayout()
|
176 |
-
->_setActiveMenu('
|
177 |
-
->_addContent($this->getLayout()->createBlock('
|
178 |
->renderLayout();
|
179 |
}
|
180 |
|
181 |
/**
|
182 |
-
* import action from import/export
|
183 |
*
|
184 |
*/
|
185 |
public function importPostAction()
|
186 |
{
|
187 |
-
if ($this->getRequest()->isPost() && !empty($_FILES['
|
188 |
try {
|
189 |
-
$number = $this->
|
190 |
|
191 |
-
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('
|
192 |
}
|
193 |
catch (Mage_Core_Exception $e) {
|
194 |
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
195 |
}
|
196 |
catch (Exception $e) {
|
197 |
-
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('
|
198 |
}
|
199 |
}
|
200 |
else {
|
201 |
-
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('
|
202 |
}
|
203 |
$this->_redirect('*/*/importExport');
|
204 |
}
|
205 |
|
206 |
-
protected function
|
207 |
{
|
208 |
-
$fileName = $_FILES['
|
209 |
$csvObject = new Varien_File_Csv();
|
210 |
$csvData = $csvObject->getData($fileName);
|
211 |
$number = 0;
|
212 |
/** checks columns */
|
213 |
$csvFields = array(
|
214 |
-
0 => Mage::helper('
|
215 |
-
1 => Mage::helper('
|
216 |
-
2 => Mage::helper('
|
217 |
-
3 => Mage::helper('
|
218 |
);
|
219 |
|
220 |
if ($csvData[0] == $csvFields) {
|
@@ -229,7 +229,7 @@ class Pektsekye_Mmn_Adminhtml_MmnController extends Mage_Adminhtml_Controller_ac
|
|
229 |
}
|
230 |
|
231 |
if (count($csvFields) != count($v)) {
|
232 |
-
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('
|
233 |
}
|
234 |
|
235 |
if (!empty($v[0])) {
|
@@ -241,9 +241,9 @@ class Pektsekye_Mmn_Adminhtml_MmnController extends Mage_Adminhtml_Controller_ac
|
|
241 |
|
242 |
$resource = Mage::getSingleton('core/resource');
|
243 |
$read= $resource->getConnection('core_read');
|
244 |
-
$
|
245 |
$select = $read->select()
|
246 |
-
->from($
|
247 |
->where("sku=?",$v[0])
|
248 |
->where("manufacturer=?",$v[1])
|
249 |
->where("model=?",$v[2])
|
@@ -261,7 +261,7 @@ class Pektsekye_Mmn_Adminhtml_MmnController extends Mage_Adminhtml_Controller_ac
|
|
261 |
'number' => $v[3]
|
262 |
);
|
263 |
|
264 |
-
$model = Mage::getModel('
|
265 |
$model->setData($data);
|
266 |
$model->save();
|
267 |
$number++;
|
@@ -269,7 +269,7 @@ class Pektsekye_Mmn_Adminhtml_MmnController extends Mage_Adminhtml_Controller_ac
|
|
269 |
}
|
270 |
}
|
271 |
else {
|
272 |
-
Mage::throwException(Mage::helper('
|
273 |
}
|
274 |
|
275 |
return $number;
|
@@ -281,8 +281,8 @@ class Pektsekye_Mmn_Adminhtml_MmnController extends Mage_Adminhtml_Controller_ac
|
|
281 |
*/
|
282 |
public function exportPostAction()
|
283 |
{
|
284 |
-
$fileName = '
|
285 |
-
$content = $this->getLayout()->createBlock('
|
286 |
->getCsv();
|
287 |
|
288 |
$this->_sendUploadResponse($fileName, $content);
|
1 |
<?php
|
2 |
|
3 |
+
class Pektsekye_MmnAdmin_ItemsController extends Mage_Adminhtml_Controller_action
|
4 |
{
|
5 |
|
6 |
protected function _initAction() {
|
7 |
$this->loadLayout()
|
8 |
+
->_setActiveMenu('mmnadmin/items')
|
9 |
->_addBreadcrumb(Mage::helper('adminhtml')->__('Items Manager'), Mage::helper('adminhtml')->__('Item Manager'));
|
10 |
|
11 |
return $this;
|
18 |
|
19 |
public function editAction() {
|
20 |
$id = $this->getRequest()->getParam('id');
|
21 |
+
$model = Mage::getModel('mmnadmin/mmnAdmin')->load($id);
|
22 |
|
23 |
if ($model->getId() || $id == 0) {
|
24 |
$data = Mage::getSingleton('adminhtml/session')->getFormData(true);
|
26 |
$model->setData($data);
|
27 |
}
|
28 |
|
29 |
+
Mage::register('mmnadmin_data', $model);
|
30 |
|
31 |
$this->loadLayout();
|
32 |
+
$this->_setActiveMenu('mmnadmin/items');
|
33 |
|
34 |
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Item Manager'), Mage::helper('adminhtml')->__('Item Manager'));
|
35 |
|
36 |
$this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
|
37 |
|
38 |
+
$this->_addContent($this->getLayout()->createBlock('mmnadmin/items_edit'))
|
39 |
+
->_addLeft($this->getLayout()->createBlock('mmnadmin/items_edit_tabs'));
|
40 |
|
41 |
$this->renderLayout();
|
42 |
} else {
|
43 |
+
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('mmnadmin')->__('Item does not exist'));
|
44 |
$this->_redirect('*/*/');
|
45 |
}
|
46 |
}
|
57 |
$data ['model'] = trim(preg_replace('/[^\w\s-]/','',$data ['model']));
|
58 |
$data ['number'] = trim(preg_replace('/[^\w\s-]/','',$data ['number']));
|
59 |
|
60 |
+
$model = Mage::getModel('mmnadmin/mmnAdmin');
|
61 |
$model->setData($data)
|
62 |
->setId($this->getRequest()->getParam('id'));
|
63 |
|
64 |
try {
|
65 |
|
66 |
$model->save();
|
67 |
+
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('mmnadmin')->__('Item was successfully saved'));
|
68 |
Mage::getSingleton('adminhtml/session')->setFormData(false);
|
69 |
|
70 |
if ($this->getRequest()->getParam('back')) {
|
80 |
return;
|
81 |
}
|
82 |
}
|
83 |
+
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('mmnadmin')->__('Unable to find item to save'));
|
84 |
$this->_redirect('*/*/');
|
85 |
}
|
86 |
|
87 |
public function deleteAction() {
|
88 |
if( $this->getRequest()->getParam('id') > 0 ) {
|
89 |
try {
|
90 |
+
$model = Mage::getModel('mmnadmin/mmnAdmin');
|
91 |
|
92 |
$model->setId($this->getRequest()->getParam('id'))
|
93 |
->delete();
|
103 |
}
|
104 |
|
105 |
public function massDeleteAction() {
|
106 |
+
$mmnadminIds = $this->getRequest()->getParam('mmnadmin');
|
107 |
+
if(!is_array($mmnadminIds)) {
|
108 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('adminhtml')->__('Please select item(s)'));
|
109 |
} else {
|
110 |
try {
|
111 |
+
foreach ($mmnadminIds as $mmnadminId) {
|
112 |
+
$mmnadmin = Mage::getModel('mmnadmin/mmnAdmin')->load($mmnadminId);
|
113 |
+
$mmnadmin->delete();
|
114 |
}
|
115 |
Mage::getSingleton('adminhtml/session')->addSuccess(
|
116 |
Mage::helper('adminhtml')->__(
|
117 |
+
'Total of %d record(s) were successfully deleted', count($mmnadminIds)
|
118 |
)
|
119 |
);
|
120 |
} catch (Exception $e) {
|
126 |
|
127 |
public function massStatusAction()
|
128 |
{
|
129 |
+
$mmnadminIds = $this->getRequest()->getParam('mmnadmin');
|
130 |
+
if(!is_array($mmnadminIds)) {
|
131 |
Mage::getSingleton('adminhtml/session')->addError($this->__('Please select item(s)'));
|
132 |
} else {
|
133 |
try {
|
134 |
+
foreach ($mmnadminIds as $mmnadminId) {
|
135 |
+
$mmnadmin = Mage::getSingleton('mmnadmin/mmnAdmin')
|
136 |
+
->load($mmnadminId)
|
137 |
->setStatus($this->getRequest()->getParam('status'))
|
138 |
->setIsMassupdate(true)
|
139 |
->save();
|
140 |
}
|
141 |
$this->_getSession()->addSuccess(
|
142 |
+
$this->__('Total of %d record(s) were successfully updated', count($mmnadminIds))
|
143 |
);
|
144 |
} catch (Exception $e) {
|
145 |
$this->_getSession()->addError($e->getMessage());
|
173 |
public function importExportAction()
|
174 |
{
|
175 |
$this->loadLayout()
|
176 |
+
->_setActiveMenu('mmnadmin/import')
|
177 |
+
->_addContent($this->getLayout()->createBlock('mmnadmin/items_importExport'))
|
178 |
->renderLayout();
|
179 |
}
|
180 |
|
181 |
/**
|
182 |
+
* import action from import/export mmnadmin
|
183 |
*
|
184 |
*/
|
185 |
public function importPostAction()
|
186 |
{
|
187 |
+
if ($this->getRequest()->isPost() && !empty($_FILES['import_mmnadmin_file']['tmp_name'])) {
|
188 |
try {
|
189 |
+
$number = $this->_importMmnAdmin();
|
190 |
|
191 |
+
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('mmnadmin')->__('%d new item(s) were imported',$number));
|
192 |
}
|
193 |
catch (Mage_Core_Exception $e) {
|
194 |
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
195 |
}
|
196 |
catch (Exception $e) {
|
197 |
+
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('mmnadmin')->__('Invalid file upload attempt'));
|
198 |
}
|
199 |
}
|
200 |
else {
|
201 |
+
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('mmnadmin')->__('Invalid file upload attempt'));
|
202 |
}
|
203 |
$this->_redirect('*/*/importExport');
|
204 |
}
|
205 |
|
206 |
+
protected function _importMmnAdmin()
|
207 |
{
|
208 |
+
$fileName = $_FILES['import_mmnadmin_file']['tmp_name'];
|
209 |
$csvObject = new Varien_File_Csv();
|
210 |
$csvData = $csvObject->getData($fileName);
|
211 |
$number = 0;
|
212 |
/** checks columns */
|
213 |
$csvFields = array(
|
214 |
+
0 => Mage::helper('mmnadmin')->__('SKU'),
|
215 |
+
1 => Mage::helper('mmnadmin')->__('Printer Manufacturer'),
|
216 |
+
2 => Mage::helper('mmnadmin')->__('Printer Model'),
|
217 |
+
3 => Mage::helper('mmnadmin')->__('Printer Number')
|
218 |
);
|
219 |
|
220 |
if ($csvData[0] == $csvFields) {
|
229 |
}
|
230 |
|
231 |
if (count($csvFields) != count($v)) {
|
232 |
+
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('mmnadmin')->__('Invalid file upload attempt'));
|
233 |
}
|
234 |
|
235 |
if (!empty($v[0])) {
|
241 |
|
242 |
$resource = Mage::getSingleton('core/resource');
|
243 |
$read= $resource->getConnection('core_read');
|
244 |
+
$mmnadminTable = $resource->getTableName('mmnadmin/mmn');
|
245 |
$select = $read->select()
|
246 |
+
->from($mmnadminTable,array('mmn_id'))
|
247 |
->where("sku=?",$v[0])
|
248 |
->where("manufacturer=?",$v[1])
|
249 |
->where("model=?",$v[2])
|
261 |
'number' => $v[3]
|
262 |
);
|
263 |
|
264 |
+
$model = Mage::getModel('mmnadmin/mmnAdmin');
|
265 |
$model->setData($data);
|
266 |
$model->save();
|
267 |
$number++;
|
269 |
}
|
270 |
}
|
271 |
else {
|
272 |
+
Mage::throwException(Mage::helper('mmnadmin')->__('Invalid file format upload attempt'));
|
273 |
}
|
274 |
|
275 |
return $number;
|
281 |
*/
|
282 |
public function exportPostAction()
|
283 |
{
|
284 |
+
$fileName = 'mmnadmin.csv';
|
285 |
+
$content = $this->getLayout()->createBlock('mmnadmin/items_grid')
|
286 |
->getCsv();
|
287 |
|
288 |
$this->_sendUploadResponse($fileName, $content);
|
app/code/local/Pektsekye/MmnAdmin/etc/config.xml
ADDED
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Pektsekye_MmnAdmin>
|
5 |
+
<version>0.2.0</version>
|
6 |
+
</Pektsekye_MmnAdmin>
|
7 |
+
</modules>
|
8 |
+
<admin>
|
9 |
+
<routers>
|
10 |
+
<mmnadmin>
|
11 |
+
<use>admin</use>
|
12 |
+
<args>
|
13 |
+
<module>Pektsekye_MmnAdmin</module>
|
14 |
+
<frontName>mmnadmin</frontName>
|
15 |
+
</args>
|
16 |
+
</mmnadmin>
|
17 |
+
</routers>
|
18 |
+
</admin>
|
19 |
+
<adminhtml>
|
20 |
+
<menu>
|
21 |
+
<mmnadmin module="mmnadmin">
|
22 |
+
<title>Mmn</title>
|
23 |
+
<sort_order>71</sort_order>
|
24 |
+
<children>
|
25 |
+
<items module="mmnadmin">
|
26 |
+
<title>Manage Items</title>
|
27 |
+
<sort_order>0</sort_order>
|
28 |
+
<action>mmnadmin/items</action>
|
29 |
+
</items>
|
30 |
+
<import module="mmnadmin">
|
31 |
+
<title>Import / Export</title>
|
32 |
+
<sort_order>1</sort_order>
|
33 |
+
<action>mmnadmin/items/importExport</action>
|
34 |
+
</import>
|
35 |
+
</children>
|
36 |
+
</mmnadmin>
|
37 |
+
</menu>
|
38 |
+
<acl>
|
39 |
+
<resources>
|
40 |
+
<all>
|
41 |
+
<title>Allow Everything</title>
|
42 |
+
</all>
|
43 |
+
<admin>
|
44 |
+
<children>
|
45 |
+
<Pektsekye_MmnAdmin>
|
46 |
+
<title>MmnAdmin Module</title>
|
47 |
+
<sort_order>10</sort_order>
|
48 |
+
</Pektsekye_MmnAdmin>
|
49 |
+
</children>
|
50 |
+
</admin>
|
51 |
+
</resources>
|
52 |
+
</acl>
|
53 |
+
<layout>
|
54 |
+
<updates>
|
55 |
+
<mmnadmin>
|
56 |
+
<file>mmnadmin.xml</file>
|
57 |
+
</mmnadmin>
|
58 |
+
</updates>
|
59 |
+
</layout>
|
60 |
+
</adminhtml>
|
61 |
+
<global>
|
62 |
+
<models>
|
63 |
+
<mmnadmin>
|
64 |
+
<class>Pektsekye_MmnAdmin_Model</class>
|
65 |
+
<resourceModel>mmnadmin_mysql4</resourceModel>
|
66 |
+
</mmnadmin>
|
67 |
+
<mmnadmin_mysql4>
|
68 |
+
<class>Pektsekye_MmnAdmin_Model_Mysql4</class>
|
69 |
+
<entities>
|
70 |
+
<mmn>
|
71 |
+
<table>mmn</table>
|
72 |
+
</mmn>
|
73 |
+
</entities>
|
74 |
+
</mmnadmin_mysql4>
|
75 |
+
</models>
|
76 |
+
<resources>
|
77 |
+
|
78 |
+
<mmnadmin_setup>
|
79 |
+
<setup>
|
80 |
+
<module>Pektsekye_MmnAdmin</module>
|
81 |
+
</setup>
|
82 |
+
<connection>
|
83 |
+
<use>core_setup</use>
|
84 |
+
</connection>
|
85 |
+
</mmnadmin_setup>
|
86 |
+
<mmnadmin_write>
|
87 |
+
<connection>
|
88 |
+
<use>core_write</use>
|
89 |
+
</connection>
|
90 |
+
</mmnadmin_write>
|
91 |
+
<mmnadmin_read>
|
92 |
+
<connection>
|
93 |
+
<use>core_read</use>
|
94 |
+
</connection>
|
95 |
+
</mmnadmin_read>
|
96 |
+
</resources>
|
97 |
+
<blocks>
|
98 |
+
<mmnadmin>
|
99 |
+
<class>Pektsekye_MmnAdmin_Block</class>
|
100 |
+
</mmnadmin>
|
101 |
+
</blocks>
|
102 |
+
<helpers>
|
103 |
+
<mmnadmin>
|
104 |
+
<class>Pektsekye_MmnAdmin_Helper</class>
|
105 |
+
</mmnadmin>
|
106 |
+
</helpers>
|
107 |
+
</global>
|
108 |
+
</config>
|
app/code/local/Pektsekye/{Mmn/sql/mmn_setup → MmnAdmin/sql/mmnadmin_setup}/mysql4-install-0.1.0.php
RENAMED
@@ -5,8 +5,8 @@ $installer = $this;
|
|
5 |
$installer->startSetup();
|
6 |
|
7 |
$installer->run("
|
8 |
-
DROP TABLE IF EXISTS {$this->getTable('mmn')};
|
9 |
-
CREATE TABLE {$this->getTable('mmn')} (
|
10 |
`mmn_id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
|
11 |
`entity_id` INT NOT NULL ,
|
12 |
`manufacturer` VARCHAR( 100 ) NOT NULL ,
|
5 |
$installer->startSetup();
|
6 |
|
7 |
$installer->run("
|
8 |
+
DROP TABLE IF EXISTS {$this->getTable('mmnadmin/mmn')};
|
9 |
+
CREATE TABLE {$this->getTable('mmnadmin/mmn')} (
|
10 |
`mmn_id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
|
11 |
`entity_id` INT NOT NULL ,
|
12 |
`manufacturer` VARCHAR( 100 ) NOT NULL ,
|
app/code/local/Pektsekye/{Mmn/sql/mmn_setup → MmnAdmin/sql/mmnadmin_setup}/mysql4-upgrade-0.1.0-0.2.0.php
RENAMED
@@ -5,7 +5,7 @@ $installer = $this;
|
|
5 |
$installer->startSetup();
|
6 |
|
7 |
$installer->run("
|
8 |
-
ALTER TABLE `{$this->getTable('mmn')}`
|
9 |
CHANGE `entity_id` `sku` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
|
10 |
");
|
11 |
|
5 |
$installer->startSetup();
|
6 |
|
7 |
$installer->run("
|
8 |
+
ALTER TABLE `{$this->getTable('mmnadmin/mmn')}`
|
9 |
CHANGE `entity_id` `sku` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
|
10 |
");
|
11 |
|
app/design/adminhtml/default/default/layout/mmn.xml
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<layout version="0.1.0">
|
3 |
-
<mmn_adminhtml_mmn_index>
|
4 |
-
<reference name="content">
|
5 |
-
<block type="mmn/adminhtml_mmn" name="mmn" />
|
6 |
-
</reference>
|
7 |
-
</mmn_adminhtml_mmn_index>
|
8 |
-
</layout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/adminhtml/default/default/layout/mmnadmin.xml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<mmnadmin_items_index>
|
4 |
+
<reference name="content">
|
5 |
+
<block type="mmnadmin/items" name="mmnadmin" />
|
6 |
+
</reference>
|
7 |
+
</mmnadmin_items_index>
|
8 |
+
</layout>
|
app/design/adminhtml/default/default/template/{mmn → mmnadmin}/importExport.phtml
RENAMED
@@ -1,7 +1,7 @@
|
|
1 |
<div class="content-header">
|
2 |
<table cellspacing="0">
|
3 |
<tr>
|
4 |
-
<td><h3 class="icon-head head-tax-rate-importExport"><?php echo Mage::helper('
|
5 |
</tr>
|
6 |
</table>
|
7 |
</div>
|
@@ -10,11 +10,11 @@
|
|
10 |
<form id="import_form" action="<?php echo $this->getUrl('*/*/importPost') ?>" method="post" enctype="multipart/form-data">
|
11 |
<?php echo $this->getBlockHtml('formkey')?>
|
12 |
<div class="entry-edit-head">
|
13 |
-
<h4 class="icon-head head-edit-form fieldset-legend"><?php echo Mage::helper('
|
14 |
</div>
|
15 |
<fieldset>
|
16 |
-
<legend><?php echo Mage::helper('
|
17 |
-
<input type="file" name="
|
18 |
<?php echo $this->getButtonHtml('Import MMN items', "this.form.submit()") ?>
|
19 |
</fieldset>
|
20 |
</form>
|
@@ -26,10 +26,10 @@
|
|
26 |
<form id="export_form" action="<?php echo $this->getUrl('*/*/exportPost') ?>" method="post" enctype="multipart/form-data">
|
27 |
<?php echo $this->getBlockHtml('formkey')?>
|
28 |
<div class="entry-edit-head">
|
29 |
-
<h4 class="icon-head head-edit-form fieldset-legend"><?php echo Mage::helper('
|
30 |
</div>
|
31 |
<fieldset>
|
32 |
-
<legend><?php echo Mage::helper('
|
33 |
<?php echo $this->getButtonHtml('Export MMN items', "this.form.submit()") ?>
|
34 |
</fieldset>
|
35 |
</form>
|
1 |
<div class="content-header">
|
2 |
<table cellspacing="0">
|
3 |
<tr>
|
4 |
+
<td><h3 class="icon-head head-tax-rate-importExport"><?php echo Mage::helper('mmnadmin')->__('Import / Export') ?></h3></td>
|
5 |
</tr>
|
6 |
</table>
|
7 |
</div>
|
10 |
<form id="import_form" action="<?php echo $this->getUrl('*/*/importPost') ?>" method="post" enctype="multipart/form-data">
|
11 |
<?php echo $this->getBlockHtml('formkey')?>
|
12 |
<div class="entry-edit-head">
|
13 |
+
<h4 class="icon-head head-edit-form fieldset-legend"><?php echo Mage::helper('mmnadmin')->__('Import MMN items') ?></h4>
|
14 |
</div>
|
15 |
<fieldset>
|
16 |
+
<legend><?php echo Mage::helper('mmnadmin')->__('Import MMN items') ?></legend>
|
17 |
+
<input type="file" name="import_mmnadmin_file" class="input-file required-entry"/>
|
18 |
<?php echo $this->getButtonHtml('Import MMN items', "this.form.submit()") ?>
|
19 |
</fieldset>
|
20 |
</form>
|
26 |
<form id="export_form" action="<?php echo $this->getUrl('*/*/exportPost') ?>" method="post" enctype="multipart/form-data">
|
27 |
<?php echo $this->getBlockHtml('formkey')?>
|
28 |
<div class="entry-edit-head">
|
29 |
+
<h4 class="icon-head head-edit-form fieldset-legend"><?php echo Mage::helper('mmnadmin')->__('Export MMN items') ?></h4>
|
30 |
</div>
|
31 |
<fieldset>
|
32 |
+
<legend><?php echo Mage::helper('mmnadmin')->__('Export MMN items') ?></legend>
|
33 |
<?php echo $this->getButtonHtml('Export MMN items', "this.form.submit()") ?>
|
34 |
</fieldset>
|
35 |
</form>
|
app/etc/modules/Pektsekye_Catalog.xml
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<config>
|
3 |
-
<Pektsekye_Catalog>
|
4 |
-
<active>true</active>
|
5 |
-
<codePool>local</codePool>
|
6 |
-
</Pektsekye_Catalog>
|
7 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/etc/modules/Pektsekye_CatalogSearch.xml
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<config>
|
3 |
-
<Pektsekye_CatalogSearch>
|
4 |
-
<active>true</active>
|
5 |
-
<codePool>local</codePool>
|
6 |
-
</Pektsekye_CatalogSearch>
|
7 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/etc/modules/Pektsekye_MmnAdmin.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Pektsekye_MmnAdmin>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>local</codePool>
|
7 |
+
</Pektsekye_MmnAdmin>
|
8 |
+
</modules>
|
9 |
+
</config>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Manufacturer_Model_Number</name>
|
4 |
-
<version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -11,11 +11,11 @@
|
|
11 |
|
12 |
HOW TO USE:
|
13 |
Go to your Magento admin panel ->Mmn -> Manage Items and add MMN items to all your products.</description>
|
14 |
-
<notes>Secure URLs problem
|
15 |
<authors><author><name>Stanislav</name><user>auto-converted</user><email>pektsekye@gmail.com</email></author></authors>
|
16 |
-
<date>2009-11-
|
17 |
-
<time>
|
18 |
-
<contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="
|
19 |
<compatible/>
|
20 |
<dependencies/>
|
21 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Manufacturer_Model_Number</name>
|
4 |
+
<version>3.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
11 |
|
12 |
HOW TO USE:
|
13 |
Go to your Magento admin panel ->Mmn -> Manage Items and add MMN items to all your products.</description>
|
14 |
+
<notes>The module was divided into two to fix Secure URLs problem.</notes>
|
15 |
<authors><author><name>Stanislav</name><user>auto-converted</user><email>pektsekye@gmail.com</email></author></authors>
|
16 |
+
<date>2009-11-28</date>
|
17 |
+
<time>18:53:48</time>
|
18 |
+
<contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="mmnadmin.xml" hash="1c4ab9b3a0d5ee6006d48e1cf517fbd4"/></dir><dir name="template"><dir name="mmnadmin"><file name="importExport.phtml" hash="969bbdaa5588c3acb426366ef6b8c689"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="mmn.xml" hash="068a00f6d22ca11217b89c99178d0da4"/></dir><dir name="template"><dir name="mmn"><file name="mmn.phtml" hash="acb90c007ea2fe8ed684bd5550f4b724"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Pektsekye_Mmn.csv" hash="3b26c323d14dbeb131a21770ab5de639"/></dir></target><target name="mageetc"><dir name="modules"><file name="Pektsekye_Mmn.xml" hash="44dbf66ea36b134b159edb1d51878a2a"/><file name="Pektsekye_MmnAdmin.xml" hash="766e5fddfef3d7ab1612aee866c9c6f6"/></dir></target><target name="magelocal"><dir name="Pektsekye"><dir name="Mmn"><dir name="Block"><dir name="Product"><file name="Result.php" hash="00641875e34a3bc2851f6785a9975f81"/></dir><file name="Mmn.php" hash="9c6bc640466ef349fc9fac3023f9f332"/></dir><dir name="controllers"><file name="IndexController.php" hash="aa43963369f7166820a20bec5c2d1c8b"/><file name="ProductController.php" hash="6f36953551c101f2d0e890b2569b8444"/></dir><dir name="etc"><file name="config.xml" hash="f984aeaa9a3ae72d4c57f29d5c191e63"/><file name="system.xml" hash="9d2b000bba821307bde419a4e2b2fb13"/></dir><dir name="Helper"><file name="Data.php" hash="93b6eb686e54179e17c3df81e330699f"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Mmn"><file name="Collection.php" hash="7a9240e2cef54b5e1796fb12d2d9369f"/></dir><file name="Mmn.php" hash="c67333dbda050636e9a85e7cfd963bdb"/></dir><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><file name="Category.php" hash="ebc7376887ebe0abadf9de6e542af5ed"/></dir></dir></dir><file name="Category.php" hash="d6b6854f6090bba3b54247811c3d69d5"/><file name="Layer.php" hash="75097f50e9ae267c4a325dde6f8e006d"/><file name="Mmn.php" hash="cef143b02735b99c273a8188efee3a38"/></dir></dir><dir name="MmnAdmin"><dir name="Block"><dir name="Items"><dir name="Edit"><dir name="Tab"><file name="Form.php" hash="53380d8415c9b6f68daff30456c29b8c"/></dir><file name="Form.php" hash="9f739cc340c4e5d246359971da9facf8"/><file name="Tabs.php" hash="b731215470e3c2fc415fc02ec66256df"/></dir><file name="Edit.php" hash="e80d1d960fcc55b6863067e8638dede4"/><file name="Grid.php" hash="b44477549067c9f2881f233c0d410b63"/><file name="ImportExport.php" hash="41aec23361b81bbda43c1049a957beff"/></dir><file name="Items.php" hash="04b1560f32b4358c01499035d8b6d6c9"/></dir><dir name="controllers"><file name="ItemsController.php" hash="1c81526c02e47da2775b8c789aceb0bd"/></dir><dir name="etc"><file name="config.xml" hash="711115891dab117bcad60ca944625d8d"/></dir><dir name="Helper"><file name="Data.php" hash="b66a742ba975a1899e6af68bf7590b9f"/></dir><dir name="Model"><dir name="Mysql4"><dir name="MmnAdmin"><file name="Collection.php" hash="4bc7a84e358d1ea19cdbd705a2fe09fb"/></dir><file name="MmnAdmin.php" hash="3819c4baa9fd61e4d86ae843ed9fc923"/></dir><file name="MmnAdmin.php" hash="d11f9217294fb8f8f23c53fd13bfb1ab"/></dir><dir name="sql"><dir name="mmnadmin_setup"><file name="mysql4-install-0.1.0.php" hash="05fce556a39db1283ab4e315f27a1a27"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="a42d585ee17b2cdf0b9290c22b95051b"/></dir></dir></dir></dir></target></contents>
|
19 |
<compatible/>
|
20 |
<dependencies/>
|
21 |
</package>
|