Bjs.php
[Pman.Core] / Bjs.php
diff --git a/Bjs.php b/Bjs.php
index 576cf44..38eac38 100644 (file)
--- a/Bjs.php
+++ b/Bjs.php
@@ -10,7 +10,7 @@ class Pman_Core_Bjs {
     
     var $json;
     var $fields = array();
-    
+    var $cols = array();
     function __construct($file)
     {
         
@@ -67,6 +67,20 @@ class Pman_Core_Bjs {
         }
         
     }
-    
+    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);
+                    }
+            }
+        }
+    }
+     
     
 }