You are here

function RepeatedElementsArray::serialize in Salesforce Suite 5

Same name and namespace in other branches
  1. 5.2 includes/salesforce.php \RepeatedElementsArray::serialize()

File

includes/salesforce.php, line 541

Class

RepeatedElementsArray
helps SOAP-ENC arrays to be encoded as repeated elements.

Code

function serialize($use = 'encoded') {
  $xml = "";
  foreach ($this->values as $value) {
    $xml .= "<{$this->elementName}>{$value}</{$this->elementName}>";
  }
  return $xml;
}