Development

/plugins/sfExtjs2Plugin/trunk/config/config.php

You must first sign up to be able to contribute.

root/plugins/sfExtjs2Plugin/trunk/config/config.php

Revision 6715, 7.7 kB (checked in by jerome, 5 years ago)

- changed default base directories and spacer gif
- added classes to mapping : Ext.Template, Ext.XTemplate, Ext.grid.GridView?, Ext.grid.GroupingView?, Ext.grid.EditorGridPanel?, Ext.grid.RowSelectionModel? and Ext.PagingToolbar?
- changed version to v0.58

Line 
1 <?php
2 sfConfig::set('sf_extjs2_version', 'v0.58');
3 sfConfig::set('sf_extjs2_comment', true);
4 #
5 # adapters
6 #
7 sfConfig::set('sf_extjs2_default_adapter', 'ext');
8 sfConfig::set('sf_extjs2_adapters',
9   array(
10     'jquery' => array(
11       'adapter/jquery/jquery.js',
12       'adapter/jquery/jquery-plugins.js',
13       'adapter/jquery/ext-jquery-adapter.js'
14     ),
15     'prototype' => array(
16       'adapter/prototype/prototype.js',
17       'adapter/prototype/scriptaculous.js?load=effects.js',
18       'adapter/prototype/ext-prototype-adapter.js'
19     ),
20     'yui' => array(
21       'adapter/yui/yui-utilities.js',
22       'adapter/yui/ext-yui-adapter.js'
23     ),
24     'ext' => array(
25       'adapter/ext/ext-base.js'
26     )
27   )
28 );
29 #
30 # themes
31 #
32 sfConfig::set('sf_extjs2_default_theme', 'aero');
33 sfConfig::set('sf_extjs2_themes',
34   array(
35     'aero' => array( ),
36     'gray' => array( 'xtheme-gray.css' )
37   )
38 );
39 #
40 # base directories
41 #
42 sfConfig::set('sf_extjs2_js_dir', '/sfExtjs2Plugin/');
43 sfConfig::set('sf_extjs2_css_dir', '/sfExtjs2Plugin/resources/css/');
44 sfConfig::set('sf_extjs2_images_dir', '/sfExtjs2Plugin/resources/images/');
45 #
46 # spacer gif
47 #
48 sfConfig::set('sf_extjs2_spacer', '/sfExtjs2Plugin/resources/images/default/s.gif');
49 #
50 # attributes which must handled as array
51 #
52 sfConfig::set('sf_extjs2_list_attributes', array('items', 'tbar', 'bbar', 'buttons', 'plugins', 'view', 'fields'));
53 #
54 # array values that don't need quotes
55 #
56 sfConfig::set('sf_extjs2_quote_except',
57   array(
58     'value' => array('true', 'false', 'new Ext.', 'function', 'Ext.'),
59     'key'   => array('renderer', 'store', 'defaults', 'plugins', 'cm', 'ds', 'view', 'tbar', 'bbar')
60   )
61 );
62 #
63 # mapping plugin method against class
64 #
65 sfConfig::set('sf_extjs2_classes',
66   array(
67     // data
68     'JsonReader'   => 'Ext.data.JsonReader',
69     'Store'        => 'Ext.data.Store',
70     'HttpProxy'    => 'Ext.data.HttpProxy',   
71     'Template'     => 'Ext.Template'
72     'XTemplate'    => 'Ext.XTemplate',
73     // widgets
74     'BoxComponent'      => 'Ext.BoxComponent',
75     'Button'            => 'Ext.Button',
76     'GridPanel'         => 'Ext.grid.GridPanel',
77     'ColumnModel'       => 'Ext.grid.ColumnModel',
78     'GridView'          => 'Ext.grid.GridView',
79     'GroupingView'      => 'Ext.grid.GroupingView',
80     'EditorGridPanel'   => 'Ext.grid.EditorGridPanel',
81     'RowSelectionModel' => 'Ext.grid.RowSelectionModel',
82     'Panel'             => 'Ext.Panel',
83     'TabPanel'          => 'Ext.TabPanel',
84     'FormPanel'         => 'Ext.FormPanel',
85     'Viewport'          => 'Ext.Viewport',
86     'Window'            => 'Ext.Window',
87     'DateField'         => 'Ext.form.DateField',
88     'TextField'         => 'Ext.form.TextField',
89     'TimeField'         => 'Ext.form.TimeField',
90     'HtmlEditor'        => 'Ext.form.HtmlEditor',
91     'Menu'              => 'Ext.menu.Menu',
92     'Item'                    => 'Ext.menu.Item',   
93     'CheckItem'           => 'Ext.menu.CheckItem'
94     'Toolbar'           => 'Ext.Toolbar',
95     'MenuButton'        => 'Ext.Toolbar.MenuButton',
96     'Fill'              => 'Ext.Toolbar.Fill',
97     'PagingToolbar'     => 'Ext.PagingToolbar',
98     'MessageBox'        => 'Ext.MessageBox',
99     'KeyMap'            => 'Ext.KeyMap'
100   )
101 );
102 #
103 # default setting for classes
104 #
105
106 #
107 # data
108 #
109 sfConfig::set('Ext.data.JsonReader',
110   array(
111     'class'       => 'Ext.data.JsonReader',
112     'attributes'  => array()
113   )
114 );
115
116 sfConfig::set('Ext.data.Store',
117   array(
118     'class'       => 'Ext.data.Store',
119     'attributes'  => array()
120   )
121 );
122
123 sfConfig::set('Ext.data.HttpProxy',
124   array(
125     'class'       => 'Ext.data.HttpProxy',
126     'attributes'  => array()
127   )
128 );
129
130 sfConfig::set('Ext.Template',
131   array(
132     'class'       => 'Ext.Template',
133     'attributes'  => array()
134   )
135 );
136
137 sfConfig::set('Ext.XTemplate',
138   array(
139     'class'       => 'Ext.XTemplate',
140     'attributes'  => array()
141   )
142 );
143
144 #
145 # widgets
146 #
147 sfConfig::set('Ext.BoxComponent',
148   array(
149     'class'       => 'Ext.BoxComponent',
150     'attributes'  => array()
151   )
152 );
153
154 sfConfig::set('Ext.Button',
155   array(
156     'class'       => 'Ext.Button',
157     'attributes'  => array()
158   )
159 );
160
161 sfConfig::set('Ext.grid.GridPanel',
162   array(
163     'class'       => 'Ext.grid.GridPanel',
164     'attributes'  => array()
165   )
166 );
167
168 sfConfig::set('Ext.grid.ColumnModel',
169   array(
170     'class'       => 'Ext.grid.ColumnModel',
171     'attributes'  => array()
172   )
173 );
174
175 sfConfig::set('Ext.grid.GridView',
176   array(
177     'class'       => 'Ext.grid.GridView',
178     'attributes'  => array()
179   )
180 );
181
182 sfConfig::set('Ext.grid.GroupingView',
183   array(
184     'class'       => 'Ext.grid.GroupingView',
185     'attributes'  => array()
186   )
187 );
188
189 sfConfig::set('Ext.grid.EditorGridPanel',
190   array(
191     'class'       => 'Ext.grid.EditorGridPanel',
192     'attributes'  => array()
193   )
194 );
195
196 sfConfig::set('Ext.grid.RowSelectionModel',
197   array(
198     'class'       => 'Ext.grid.RowSelectionModel',
199     'attributes'  => array()
200   )
201 );
202
203 sfConfig::set('Ext.Panel',
204   array(
205     'class'       => 'Ext.Panel',
206     'attributes'  => array()
207   )
208 );
209
210 sfConfig::set('Ext.TabPanel',
211   array(
212     'class'       => 'Ext.TabPanel',
213     'attributes'  => array(
214       'resizeTabs'      => 'true',
215       'minTabWidth'     => '100',
216       'tabWidth'        => '150',
217       'activeTab'       => '0',
218       'enableTabScroll' => 'true',
219       'defaults'        => '{ autoScroll: true }'
220     )
221   )
222 );
223
224 sfConfig::set('Ext.FormPanel',
225   array(
226     'class'       => 'Ext.FormPanel',
227     'attributes'  => array()
228   )
229 );
230
231 sfConfig::set('Ext.Viewport',
232   array(
233     'class'       => 'Ext.Viewport',
234     'attributes'  => array('layout' => 'border')
235   )
236 );
237
238 sfConfig::set('Ext.Window',
239   array(
240     'class'       => 'Ext.Window',
241     'attributes'  => array(
242       'constrain'   => 'true',
243       'layout'      => 'fit',
244       'width'       => '500',
245       'height'      => '300',
246       'closeAction' => 'hide',
247       'plain'       => 'true'
248     )
249   )
250 );
251
252 sfConfig::set('Ext.form.DateField',
253   array(
254     'class'       => 'Ext.form.DateField',
255     'attributes'  => array()
256   )
257 );
258
259 sfConfig::set('Ext.form.TextField',
260   array(
261     'class'       => 'Ext.form.TextField',
262     'attributes'  => array()
263   )
264 );
265
266 sfConfig::set('Ext.form.TimeField',
267   array(
268     'class'       => 'Ext.form.TimeField',
269     'attributes'  => array()
270   )
271 );
272
273 sfConfig::set('Ext.form.HtmlEditor',
274   array(
275     'class'       => 'Ext.form.HtmlEditor',
276     'attributes'  => array()
277   )
278 );
279
280 sfConfig::set('Ext.menu.Menu',
281   array(
282     'class'       => 'Ext.menu.Menu',
283     'attributes'  => array()
284   )
285 );
286
287 sfConfig::set('Ext.menu.Item',
288   array(
289     'class'       => 'Ext.menu.Item',
290     'attributes'  => array()
291   )
292 );
293
294 sfConfig::set('Ext.menu.CheckItem',
295   array(
296     'class'       => 'Ext.menu.CheckItem',
297     'attributes'  => array()
298   )
299 );
300
301 sfConfig::set('Ext.Toolbar',
302   array(
303     'class'       => 'Ext.Toolbar',
304     'attributes'  => array()
305   )
306 );
307
308 sfConfig::set('Ext.Toolbar.MenuButton',
309   array(
310     'class'       => 'Ext.Toolbar.MenuButton',
311     'attributes'  => array()
312   )
313 );
314
315 sfConfig::set('Ext.Toolbar.Fill',
316   array(
317     'class'       => 'Ext.Toolbar.Fill',
318     'attributes'  => array()
319   )
320 );
321
322 sfConfig::set('Ext.PagingToolbar',
323   array(
324     'class'       => 'Ext.PagingToolbar',
325     'attributes'  => array()
326   )
327 );
328
329 sfConfig::set('Ext.MessageBox',
330   array(
331     'class'       => 'Ext.MessageBox',
332     'attributes'  => array()
333   )
334 );
335
336
337 sfConfig::set('Ext.KeyMap',
338   array(
339     'class'       => 'Ext.KeyMap',
340     'attributes'  => array()
341   )
342 );
343
344
345 sfConfig::set('anonymousClass',
346   array(
347     'class'       => 'anonymousClass',
348     'attributes'  => array()
349   )
350 );
351
352 ?>
353
Note: See TracBrowser for help on using the browser.