public function toXMLString() { $str = ''; if ($this->ApprovalType != null) { $str .= '<ebl:ApprovalType>' . PPUtils::escapeInvalidXmlCharsRegex($this->ApprovalType) . '</ebl:ApprovalType>'; } if ($this->ApprovalSubType != null) { $str .= '<ebl:ApprovalSubType>' . PPUtils::escapeInvalidXmlCharsRegex($this->ApprovalSubType) . '</ebl:ApprovalSubType>'; } if ($this->OrderDetails != null) { $str .= '<ebl:OrderDetails>'; $str .= $this->OrderDetails->toXMLString(); $str .= '</ebl:OrderDetails>'; } if ($this->PaymentDirectives != null) { $str .= '<ebl:PaymentDirectives>'; $str .= $this->PaymentDirectives->toXMLString(); $str .= '</ebl:PaymentDirectives>'; } if ($this->Custom != null) { $str .= '<ebl:Custom>' . PPUtils::escapeInvalidXmlCharsRegex($this->Custom) . '</ebl:Custom>'; } return $str; }
public function toXMLString() { $str = ''; if ($this->ApprovalType != null) { //prop is not a collection //prop not complex //prop is not value $str .= '<ebl:ApprovalType>' . $this->ApprovalType . '</ebl:ApprovalType>'; } if ($this->ApprovalSubType != null) { //prop is not a collection //prop not complex //prop is not value $str .= '<ebl:ApprovalSubType>' . $this->ApprovalSubType . '</ebl:ApprovalSubType>'; } if ($this->OrderDetails != null) { //prop is not a collection //prop is complex //prop is not enum //does not contain attribute or is attribute $str .= '<ebl:OrderDetails>'; $str .= $this->OrderDetails->toXMLString(); $str .= '</ebl:OrderDetails>'; } if ($this->PaymentDirectives != null) { //prop is not a collection //prop is complex //prop is not enum //does not contain attribute or is attribute $str .= '<ebl:PaymentDirectives>'; $str .= $this->PaymentDirectives->toXMLString(); $str .= '</ebl:PaymentDirectives>'; } if ($this->Custom != null) { //prop is not a collection //prop not complex //prop is not value $str .= '<ebl:Custom>' . $this->Custom . '</ebl:Custom>'; } return $str; }