12 var $fields = array();
14 static function formFields($file)
17 $this->json = json_decode(file_get_contents($file));
19 $this->iterateFields($this->json->items);
22 function iterateFields($ar, $res)
28 $res[] = $o->{'String hiddenName'};
30 $k = isset($o->{'String name'}) ? 'String name' : 'string name';
32 if (!isset($o->{$k})) {
33 break; // allowed to not exit.
45 $k = isset($o->{'String name'}) ? 'String name' : 'string name';
47 if (!isset($o->{$k})) {
48 echo "missing string name";
55 $k = isset($o->{'String currencyName'}) ? 'String currencyName' : 'string currencyName';
58 $k = isset($o->{'String name'}) ? 'String name' : 'string name';
62 if (isset($o->items)) {
63 $res = $this->iterateFields($o->items,$res);