var $json;
var $fields = array();
-
+ var $cols = array();
function __construct($file)
{
}
}
-
+ 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);
+ }
+ }
+ }
+ }
+
}