| @@ 515-522 (lines=8) @@ | ||
| 512 | $xml .= "<$name$xmlns xsi:type=\"xsd:boolean\"$atts>$val</$name>"; |
|
| 513 | } |
|
| 514 | break; |
|
| 515 | case (is_int($val) || is_long($val) || $type == 'int'): |
|
| 516 | $this->debug("serialize_val: serialize int"); |
|
| 517 | if ($use == 'literal') { |
|
| 518 | $xml .= "<$name$xmlns$atts>$val</$name>"; |
|
| 519 | } else { |
|
| 520 | $xml .= "<$name$xmlns xsi:type=\"xsd:int\"$atts>$val</$name>"; |
|
| 521 | } |
|
| 522 | break; |
|
| 523 | case (is_float($val)|| is_double($val) || $type == 'float'): |
|
| 524 | $this->debug("serialize_val: serialize float"); |
|
| 525 | if ($use == 'literal') { |
|
| @@ 523-530 (lines=8) @@ | ||
| 520 | $xml .= "<$name$xmlns xsi:type=\"xsd:int\"$atts>$val</$name>"; |
|
| 521 | } |
|
| 522 | break; |
|
| 523 | case (is_float($val)|| is_double($val) || $type == 'float'): |
|
| 524 | $this->debug("serialize_val: serialize float"); |
|
| 525 | if ($use == 'literal') { |
|
| 526 | $xml .= "<$name$xmlns$atts>$val</$name>"; |
|
| 527 | } else { |
|
| 528 | $xml .= "<$name$xmlns xsi:type=\"xsd:float\"$atts>$val</$name>"; |
|
| 529 | } |
|
| 530 | break; |
|
| 531 | case (is_string($val) || $type == 'string'): |
|
| 532 | $this->debug("serialize_val: serialize string"); |
|
| 533 | $val = $this->expandEntities($val); |
|
| @@ 531-539 (lines=9) @@ | ||
| 528 | $xml .= "<$name$xmlns xsi:type=\"xsd:float\"$atts>$val</$name>"; |
|
| 529 | } |
|
| 530 | break; |
|
| 531 | case (is_string($val) || $type == 'string'): |
|
| 532 | $this->debug("serialize_val: serialize string"); |
|
| 533 | $val = $this->expandEntities($val); |
|
| 534 | if ($use == 'literal') { |
|
| 535 | $xml .= "<$name$xmlns$atts>$val</$name>"; |
|
| 536 | } else { |
|
| 537 | $xml .= "<$name$xmlns xsi:type=\"xsd:string\"$atts>$val</$name>"; |
|
| 538 | } |
|
| 539 | break; |
|
| 540 | case is_object($val): |
|
| 541 | $this->debug("serialize_val: serialize object"); |
|
| 542 | if (get_class($val) == 'soapval') { |
|