@@ 603-610 (lines=8) @@ | ||
600 | $xml .= "<$name$xmlns xsi:type=\"xsd:boolean\"$atts>$val</$name>"; |
|
601 | } |
|
602 | break; |
|
603 | case (is_int($val) || is_int($val) || $type === 'int'): |
|
604 | $this->debug('serialize_val: serialize int'); |
|
605 | if ($use === 'literal') { |
|
606 | $xml .= "<$name$xmlns$atts>$val</$name>"; |
|
607 | } else { |
|
608 | $xml .= "<$name$xmlns xsi:type=\"xsd:int\"$atts>$val</$name>"; |
|
609 | } |
|
610 | break; |
|
611 | case (is_float($val) || is_float($val) || $type === 'float'): |
|
612 | $this->debug('serialize_val: serialize float'); |
|
613 | if ($use === 'literal') { |
|
@@ 611-618 (lines=8) @@ | ||
608 | $xml .= "<$name$xmlns xsi:type=\"xsd:int\"$atts>$val</$name>"; |
|
609 | } |
|
610 | break; |
|
611 | case (is_float($val) || is_float($val) || $type === 'float'): |
|
612 | $this->debug('serialize_val: serialize float'); |
|
613 | if ($use === 'literal') { |
|
614 | $xml .= "<$name$xmlns$atts>$val</$name>"; |
|
615 | } else { |
|
616 | $xml .= "<$name$xmlns xsi:type=\"xsd:float\"$atts>$val</$name>"; |
|
617 | } |
|
618 | break; |
|
619 | case (is_string($val) || $type === 'string'): |
|
620 | $this->debug('serialize_val: serialize string'); |
|
621 | $val = $this->expandEntities($val); |
|
@@ 619-627 (lines=9) @@ | ||
616 | $xml .= "<$name$xmlns xsi:type=\"xsd:float\"$atts>$val</$name>"; |
|
617 | } |
|
618 | break; |
|
619 | case (is_string($val) || $type === 'string'): |
|
620 | $this->debug('serialize_val: serialize string'); |
|
621 | $val = $this->expandEntities($val); |
|
622 | if ($use === 'literal') { |
|
623 | $xml .= "<$name$xmlns$atts>$val</$name>"; |
|
624 | } else { |
|
625 | $xml .= "<$name$xmlns xsi:type=\"xsd:string\"$atts>$val</$name>"; |
|
626 | } |
|
627 | break; |
|
628 | case is_object($val): |
|
629 | $this->debug('serialize_val: serialize object'); |
|
630 | if (get_class($val) === 'soapval') { |