64 |
$structfields = array(); |
$structfields = array(); |
65 |
|
|
66 |
foreach ($result[0] as $key => $value) { |
foreach ($result[0] as $key => $value) { |
67 |
$structinfo[$key] = new XML_RPC_Value($value,"string"); |
if ($key == 'all'){ |
68 |
|
$datall = array(); |
69 |
|
foreach ($result[0][$key] as $keyall => $valall) { |
70 |
|
|
71 |
|
if ($keyall == 'fieldlist'){ |
72 |
|
$datall2 = array(); |
73 |
|
foreach ($result[0][$key][$keyall] as $fieldkey => $fieldval){ |
74 |
|
$datall2 = new XML_RPC_Value($fieldval,"string"); |
75 |
|
} |
76 |
|
$datall[$keyall] = new XML_RPC_Value($datall2,"struct"); |
77 |
|
}else{ |
78 |
|
$datall[$keyall] = new XML_RPC_Value($valall,"string"); |
79 |
|
} |
80 |
|
} |
81 |
|
$structinfo[$key] = new XML_RPC_Value($datall,"struct"); |
82 |
|
}else{ |
83 |
|
$structinfo[$key] = new XML_RPC_Value($value,"string"); |
84 |
|
} |
85 |
} |
} |
86 |
|
|
87 |
#foreach ($result[1] as $key => $value) { |
#foreach ($result[1] as $key => $value) { |