| @@ 647-649 (lines=3) @@ | ||
| 644 | ); |
|
| 645 | if($previous!=0) $values["previousRequest"]=intval($previous); |
|
| 646 | $xml="<history>\n"; |
|
| 647 | foreach($values as $tag=>$value) { |
|
| 648 | $xml.=sprintf("<%s>%s</%s>\n",$tag, htmlspecialchars($value, ENT_COMPAT),$tag); |
|
| 649 | } |
|
| 650 | ||
| 651 | $xml.="<notes>"; |
|
| 652 | if($employeeNote!="") { |
|
| @@ 683-685 (lines=3) @@ | ||
| 680 | "eventType"=>"used", |
|
| 681 | ); |
|
| 682 | $xml="<history>\n"; |
|
| 683 | foreach($values as $tag=>$value) { |
|
| 684 | $xml.=sprintf("<%s>%s</%s>\n",$tag, htmlspecialchars($value, ENT_COMPAT),$tag); |
|
| 685 | } |
|
| 686 | $xml.="</history>"; |
|
| 687 | $request->content=$xml; |
|
| 688 | echo $xml; |
|
| @@ 716-718 (lines=3) @@ | ||
| 713 | "amount"=>$amount |
|
| 714 | ); |
|
| 715 | $xml="<history>\n"; |
|
| 716 | foreach($values as $tag=>$value) { |
|
| 717 | $xml.=sprintf("<%s>%s</%s>\n",$tag, htmlspecialchars($value, ENT_COMPAT),$tag); |
|
| 718 | } |
|
| 719 | $xml.="</history>"; |
|
| 720 | $request->content=$xml; |
|
| 721 | return $this->httpHandler->sendRequest( $request ); |
|