<?php
 class groupField extends baseField { var $Conf = array( 'xtype' => 'fieldcontainer', 'setAutoSize' => true, 'layout' => array( 'type' => 'hbox', 'pack' => 'start', 'align'=> 'stretch' ), 'defaults' => array('labelWidth'=> 'auto','margins' =>'0 30 0 0'), ); function edit($addConf,$R) { if(!$this->AllEls) { } $R['items'] = array(); $this->AllEls = array_merge($this->AllEls,array()); if($addConf['attr']['nr']) { for($i=$addConf['attr']['nr'];$i>=1;$i--) { $El = $this->AllEls[count($this->AllEls)-$i]; unset($El['width']); $R['items'][] = $El; } } return parent::edit($addConf,$R); } function editAllREl($allREl,$addConf,$R) { if($allREl) { $allREl = array_merge($allREl,array()); } $this->AllEls = $allREl; for($i=1;$i<=$addConf['attr']['nr'];$i++) { unset($allREl[count($allREl)-1]); } return $allREl; } } 