config.xml
5.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<?xml version="1.0" encoding="UTF-8"?>
<config>
<!-- versionierung des moduls -
wichtig vor alle dem auch im Zusammenhang mit dem Datenbankinstallationsskript
-->
<modules>
<Anc_Image>
<version>0.0.3</version>
</Anc_Image>
</modules>
<!-- was im frontend passiert -->
<frontend>
<!-- einbindung der layoutkonfiguration (s.u.) -->
<layout>
<updates>
<Anc_Image>
<file>anc/image.xml</file>
</Anc_Image>
</updates>
</layout>
<!-- damit die controller funktionen über eine url erreichbar sind (s.u.) -->
<routers>
<!--Umleitung bzw aktivierung der controllers-->
<anc_image>
<use>standard</use>
<args>
<!-- alle urls die mit "http://magento/ancimage" werden ins modul Anc_Image umgeleitet -->
<module>Anc_Image</module>
<frontName>ancimage</frontName>
</args>
</anc_image>
</routers>
<events>
<sales_order_save_commit_after>
<observers>
<!-- <anc_printconfigproduct_attribute_set_load_before>
<type>singleton</type>
<class>anc_printconfigproduct/observer</class>
<method>copyAttributeset</method>
</anc_printconfigproduct_attribute_set_load_before> -->
<anc_image_save_image_order_link>
<type>singleton</type>
<class>anc_image/observer</class>
<method>saveImageOrderLink</method>
</anc_image_save_image_order_link>
</observers>
</sales_order_save_commit_after>
</events>
</frontend>
<global>
<helpers>
<anc_image>
<class>Anc_Image_Helper</class>
</anc_image>
</helpers>
<!-- dem system bekannt machen das block klassen existieren -->
<blocks>
<anc_image>
<class>Anc_Image_Block</class>
</anc_image>
<!-- Wichtig damit die Blocks zum editieren richtig geladen werden-->
<anc_image_adminhtml>
<class>Anc_Image_Block_Adminhtml</class>
</anc_image_adminhtml>
<adminhtml>
<!-- @anc_image_eingabetyp -->
<rewrite>
<catalog_product_edit_tab_options_option>Anc_Image_Block_Adminhtml_Catalog_Product_Edit_Tab_Options_Option</catalog_product_edit_tab_options_option>
</rewrite>
</adminhtml>
</blocks>
<catalog>
<product>
<options>
<custom>
<groups>
<!-- @anc_image_eingabetyp -->
<ancimage translate="label" module="anc_image">
<label>NcImage</label>
<render>anc_image/adminhtml_catalog_product_edit_tab_options_type_ancimage</render>
<types>
<ancimage_type translate="label" module="anc_image">
<label>Image</label>
</ancimage_type>
</types>
</ancimage>
</groups>
</custom>
</options>
</product>
</catalog>
<!-- die konfiguration der datenbank schnittstelle -->
<models>
<anc_image>
<class>Anc_Image_Model</class>
<!-- folgendes ist ein verweis auf den nachfolgenden tag <anc_image_resource> -->
<resourceModel>anc_image_resource</resourceModel>
</anc_image>
<anc_image_resource>
<class>Anc_Image_Model_Resource_Mysql4</class>
<!-- entitie's mit s hier können mehrere Tabellen(namen) untergebracht werden -->
<entities>
<ncimage>
<table>anc_image_ncimage</table>
</ncimage>
<ncimage_quoteitemoption>
<table>anc_image_ncimage_quoteitemoption</table>
</ncimage_quoteitemoption>
<!-- <image>
<table>anc_image_album</table>
</album>-->
<!-- <album_list>
<table>anc_image_album_list</table>
</album_list> -->
</entities>
</anc_image_resource>
<catalog>
<!-- @anc_image_eingabetyp -->
<rewrite>
<product_option>Anc_Image_Model_Catalog_Product_Option</product_option>
</rewrite>
</catalog>
</models>
<resources>
<!-- hier verbirgt sich das installationsskript um die datenbanktabellen zu erstellen -->
<anc_image_setup>
<setup>
<module>Anc_Image</module>
<class>Mage_Sales_Model_Mysql4_Setup</class>
</setup>
<connection>
<use>core_setup</use>
</connection>
</anc_image_setup>
<!-- datenbank verbindungen -->
<anc_image_write>
<connection>
<use>core_write</use>
</connection>
</anc_image_write>
<anc_image_read>
<connection>
<use>core_read</use>
</connection>
</anc_image_read>
</resources>
</global>
<admin>
<routers>
<anc_image>
<use>admin</use>
<args>
<modules>
<certification_may before="Mage_Adminhtml">Anc_Image_Adminhtml</certification_may>
</modules>
<module>Anc_Image</module>
<frontName>image</frontName>
</args>
</anc_image>
</routers>
</admin>
<adminhtml>
<menu>
<Anc_Anc module="anc_image">
<title>ANC</title>
<sort_order>71</sort_order>
<children>
<ncalbum module="anc_image">
<title>Bilder</title>
<sort_order>1</sort_order>
<action>image/adminhtml_image/list</action>
</ncalbum>
<!-- @backend_grid-->
<!-- <ncimage module="anc_image">
<title>Image</title>
<sort_order>2</sort_order>
<action>image/adminhtml_album/list</action>
</ncimage> -->
</children>
</Anc_Anc>
</menu>
</adminhtml>
</config>