| 1 | package WWW::Salesforce::Serializer; | ||||||||||
| 2 | |||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 2 | ▶ | use SOAP::Lite; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 2 | our @ISA = qw( SOAP::Serializer ); | |||||||||
| 8 | |||||||||||
| 9 | 2 | our $VERSION = '0.303'; | |||||||||
| 10 | 2 | $VERSION = eval $VERSION; | |||||||||
| 11 | |||||||||||
| 12 | |||||||||||
| 13 | #************************************************************************** | ||||||||||
| 14 | # encode_object( $object, $name, $type, $attr ) | ||||||||||
| 15 | # -- overloaded encode_object() function to take care of problem | ||||||||||
| 16 | # with xsi:nil="true" attribute of tags that have no attributes | ||||||||||
| 17 | #************************************************************************** | ||||||||||
| 18 | sub encode_object { | ||||||||||
| 19 | 0 | ▶ | my ( $self, $object, $name, $type, $attr ) = @_; | ||||||||
|
Subroutine
encode_object: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 20 | |||||||||||
| 21 | #print "\n\t\t",$name," *********************************************\n" if $name; | ||||||||||
| 22 | 0 | ▶ | if ( defined $attr->{'xsi:nil'} ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 23 | 0 | delete $attr->{'xsi:nil'}; | |||||||||
| 24 | 0 | return [ $name, {%$attr} ]; | |||||||||
| 25 | } | ||||||||||
| 26 | 0 | return $self->SUPER::encode_object( $object, $name, $type, $attr ); | |||||||||
| 27 | } | ||||||||||
| 28 | |||||||||||
| 29 | 2 | 1; | |||||||||