projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f6cf480
)
_translations_/Bjs.php
author
Alan Knowles
<alan@roojs.com>
Thu, 17 Jan 2019 05:18:26 +0000
(13:18 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 17 Jan 2019 05:18:26 +0000
(13:18 +0800)
_translations_/Bjs.php
patch
|
blob
|
history
diff --git
a/_translations_/Bjs.php
b/_translations_/Bjs.php
index
e6c38a7
..
a69223c
100644
(file)
--- a/
_translations_/Bjs.php
+++ b/
_translations_/Bjs.php
@@
-15,24
+15,23
@@
class Pman_Core_Bjs {
{
$this->json = json_decode(file_get_contents($file));
{
$this->json = json_decode(file_get_contents($file));
-
$this->iterateFields($this->json->items);
}
$this->iterateFields($this->json->items);
}
- function iterateFields($ar
, $res
)
+ function iterateFields($ar)
{
foreach($ar as $o) {
switch ($o->xtype) {
case "ComboBox":
{
foreach($ar as $o) {
switch ($o->xtype) {
case "ComboBox":
- $
re
s[] = $o->{'String hiddenName'};
+ $
this->field
s[] = $o->{'String hiddenName'};
// fall throught..
$k = isset($o->{'String name'}) ? 'String name' : 'string name';
if (!isset($o->{$k})) {
break; // allowed to not exit.
}
// fall throught..
$k = isset($o->{'String name'}) ? 'String name' : 'string name';
if (!isset($o->{$k})) {
break; // allowed to not exit.
}
- $
re
s[] = $o->{$k};
+ $
this->field
s[] = $o->{$k};
case "Input":
case "TextArea":
case "Input":
case "TextArea":
@@
-48,25
+47,24
@@
class Pman_Core_Bjs {
echo "missing string name";
print_r($o);exit;
}
echo "missing string name";
print_r($o);exit;
}
- $
re
s[] = $o->{$k};
+ $
this->field
s[] = $o->{$k};
break;
case "MoneyField":
$k = isset($o->{'String currencyName'}) ? 'String currencyName' : 'string currencyName';
break;
case "MoneyField":
$k = isset($o->{'String currencyName'}) ? 'String currencyName' : 'string currencyName';
- $
re
s[] = $o->{$k};
+ $
this->field
s[] = $o->{$k};
$k = isset($o->{'String name'}) ? 'String name' : 'string name';
$k = isset($o->{'String name'}) ? 'String name' : 'string name';
- $
re
s[] = $o->{$k};
+ $
this->field
s[] = $o->{$k};
break;
default:
if (isset($o->items)) {
break;
default:
if (isset($o->items)) {
- $
res = $this->iterateFields($o->items,$re
s);
+ $
this->fields = $this->iterateFields($o->item
s);
}
}
}
}
}
}
- return $res;
}
}