foreach($ar as $o) {
switch ($o->xtype) {
- case "ComboBox":
+ case "ComboBox":
+ if (!isset($o->{'String hiddenName'})) {
+ continue;
+ }
$this->fields[] = $o->{'String hiddenName'};
// fall throught..
$k = isset($o->{'String name'}) ? 'String name' : 'string name';
function iterateColumns($ar)
{
foreach($ar as $o) {
-
+ switch ($o->xtype) {
+ case "ColumnModel":
+ $this->cols[] = $o;
+ break;
+ default:
+ if (isset($o->items)) {
+ $this->iterateColumns($o->items);
+ }
+ }
+ }
+ }
}