From: Alan Knowles Date: Fri, 18 Jan 2019 01:35:59 +0000 (+0800) Subject: remove Bjs file in wrong location X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=4d91a1a635365c6995c33a441d547918e21dd70a remove Bjs file in wrong location --- diff --git a/_translations_/Bjs.php b/_translations_/Bjs.php deleted file mode 100644 index a69223cd..00000000 --- a/_translations_/Bjs.php +++ /dev/null @@ -1,71 +0,0 @@ -json = json_decode(file_get_contents($file)); - $this->iterateFields($this->json->items); - } - - function iterateFields($ar) - { - foreach($ar as $o) { - - switch ($o->xtype) { - case "ComboBox": - $this->fields[] = $o->{'String hiddenName'}; - // fall throught.. - $k = isset($o->{'String name'}) ? 'String name' : 'string name'; - - if (!isset($o->{$k})) { - break; // allowed to not exit. - } - $this->fields[] = $o->{$k}; - - case "Input": - case "TextArea": - case "CheckBox": - case "DateField": - case "Radio": - case "RadioSet": - case "PhoneInput": - case "NumberField": - $k = isset($o->{'String name'}) ? 'String name' : 'string name'; - - if (!isset($o->{$k})) { - echo "missing string name"; - print_r($o);exit; - } - $this->fields[] = $o->{$k}; - break; - - case "MoneyField": - $k = isset($o->{'String currencyName'}) ? 'String currencyName' : 'string currencyName'; - - $this->fields[] = $o->{$k}; - $k = isset($o->{'String name'}) ? 'String name' : 'string name'; - $this->fields[] = $o->{$k}; - break; - default: - if (isset($o->items)) { - $this->fields = $this->iterateFields($o->items); - } - } - - } - - } - - -}