Changeset 6646
- Timestamp:
- 12/20/07 21:02:44 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfExtjs2Plugin/trunk/config/config.php
r6621 r6646 1 1 <?php 2 sfConfig::set('sf_extjs2_version', 'v0.5 0');2 sfConfig::set('sf_extjs2_version', 'v0.51'); 3 3 sfConfig::set('sf_extjs2_comment', true); 4 4 # … … 50 50 # attributes which must handled as array 51 51 # 52 sfConfig::set('sf_extjs2_list_attributes', array('items', 'tbar', 'b uttons', 'plugins', 'view', 'tbar', 'bbar', 'fields'));52 sfConfig::set('sf_extjs2_list_attributes', array('items', 'tbar', 'bbar', 'buttons', 'plugins', 'view', 'fields')); 53 53 # 54 54 # array values that don't need quotes … … 86 86 'Item' => 'Ext.menu.Item', 87 87 'CheckItem' => 'Ext.menu.CheckItem', 88 'Toolbar' => 'Ext.Toolbar', 88 89 'MenuButton' => 'Ext.Toolbar.MenuButton', 89 90 'KeyMap' => 'Ext.KeyMap' … … 249 250 250 251 252 sfConfig::set('Ext.Toolbar', 253 array( 254 'class' => 'Ext.Toolbar', 255 'attributes' => array() 256 ) 257 ); 258 251 259 sfConfig::set('Ext.Toolbar.MenuButton', 252 260 array( plugins/sfExtjs2Plugin/trunk/lib/helper/sfExtjs2Helper.php
r6621 r6646 5 5 * @description sfExtjs2Plugin is a symfony plugin that provides an easy to use wrapper for the Ext javascript library 6 6 * @author Benjamin Runnels<benjamin.r.runnels [at] citi [dot] com>, Leon van der Ree, Wolfgang Kubens<wolfgang.kubens [at] gmx [dot] net> 7 * @version 0.0.5 07 * @version 0.0.51 8 8 * @last modified 12.19.2007 Wolfgang 9 9 * - Added method asVar … … 163 163 unset($attributes['parameters']); 164 164 } 165 165 166 166 # syntax A is a shortform of syntax B 167 167 # if syntax A is used then convert syntax A to syntax B … … 182 182 } 183 183 } 184 184 185 185 // get source of component 186 186 $source = call_user_func(array('sfExtjs2Plugin', 'getExtObjectComponent'), $attributes['attributes'], sfConfig::get($class), $parameters); 187 187 188 188 // if 'name' is assigned then we must render 189 189 // either a Javascript variable or an attribute of this … … 244 244 'new %s (%s%s%s)', 245 245 $config['class'], 246 $parameters != '' ? $parameters: '',246 $parameters != '' ? '['.$parameters.']' : '', 247 247 $parameters != '' && $attributes != '' ? ',' : '', 248 248 $attributes