projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more quote identeiifers fixessss
[Pman.Core]
/
Bjs.php
diff --git
a/Bjs.php
b/Bjs.php
index
1950d84
..
f2a4379
100644
(file)
--- a/
Bjs.php
+++ b/
Bjs.php
@@
-10,12
+10,13
@@
class Pman_Core_Bjs {
var $json;
var $fields = array();
var $json;
var $fields = array();
-
+ var $cols = array();
function __construct($file)
{
$this->json = json_decode(file_get_contents($file));
$this->iterateFields($this->json->items);
function __construct($file)
{
$this->json = json_decode(file_get_contents($file));
$this->iterateFields($this->json->items);
+ $this->iterateColumns($this->json->items);
}
function iterateFields($ar)
}
function iterateFields($ar)
@@
-23,7
+24,10
@@
class Pman_Core_Bjs {
foreach($ar as $o) {
switch ($o->xtype) {
foreach($ar as $o) {
switch ($o->xtype) {
- case "ComboBox":
+ case "ComboBox":
+ if (!isset($o->{'String hiddenName'})) {
+ continue 2;
+ }
$this->fields[] = $o->{'String hiddenName'};
// fall throught..
$k = isset($o->{'String name'}) ? 'String name' : 'string name';
$this->fields[] = $o->{'String hiddenName'};
// fall throught..
$k = isset($o->{'String name'}) ? 'String name' : 'string name';
@@
-66,6
+70,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);
+ }
+ }
+ }
+ }
+
}
}