6 * currenly only extracts $this->fields from the list..
12 var $fields = array();
14 function __construct($file)
17 $this->json = json_decode(file_get_contents($file));
18 $this->iterateFields($this->json->items);
19 $this->iterateColumns($this->json->items);
22 function iterateFields($ar)
28 $this->fields[] = $o->{'String hiddenName'};
30 $k = isset($o->{'String name'}) ? 'String name' : 'string name';
32 if (!isset($o->{$k})) {
33 break; // allowed to not exit.
35 $this->fields[] = $o->{$k};
45 $k = isset($o->{'String name'}) ? 'String name' : 'string name';
47 if (!isset($o->{$k})) {
48 echo "missing string name";
51 $this->fields[] = $o->{$k};
55 $k = isset($o->{'String currencyName'}) ? 'String currencyName' : 'string currencyName';
57 $this->fields[] = $o->{$k};
58 $k = isset($o->{'String name'}) ? 'String name' : 'string name';
59 $this->fields[] = $o->{$k};
62 if (isset($o->items)) {
63 $this->iterateFields($o->items);