public function toXMLString() { $str = ''; if ($this->Description != null) { $str .= '<ebl:Description>' . PPUtils::escapeInvalidXmlCharsRegex($this->Description) . '</ebl:Description>'; } if ($this->TrialPeriod != null) { $str .= '<ebl:TrialPeriod>'; $str .= $this->TrialPeriod->toXMLString(); $str .= '</ebl:TrialPeriod>'; } if ($this->PaymentPeriod != null) { $str .= '<ebl:PaymentPeriod>'; $str .= $this->PaymentPeriod->toXMLString(); $str .= '</ebl:PaymentPeriod>'; } if ($this->MaxFailedPayments != null) { $str .= '<ebl:MaxFailedPayments>' . PPUtils::escapeInvalidXmlCharsRegex($this->MaxFailedPayments) . '</ebl:MaxFailedPayments>'; } if ($this->ActivationDetails != null) { $str .= '<ebl:ActivationDetails>'; $str .= $this->ActivationDetails->toXMLString(); $str .= '</ebl:ActivationDetails>'; } if ($this->AutoBillOutstandingAmount != null) { $str .= '<ebl:AutoBillOutstandingAmount>' . PPUtils::escapeInvalidXmlCharsRegex($this->AutoBillOutstandingAmount) . '</ebl:AutoBillOutstandingAmount>'; } return $str; }
public function toXMLString() { $str = ''; if ($this->Description != null) { //prop is not a collection //prop not complex //prop is not value $str .= '<ebl:Description>' . $this->Description . '</ebl:Description>'; } if ($this->TrialPeriod != null) { //prop is not a collection //prop is complex //prop is not enum //does not contain attribute or is attribute $str .= '<ebl:TrialPeriod>'; $str .= $this->TrialPeriod->toXMLString(); $str .= '</ebl:TrialPeriod>'; } if ($this->PaymentPeriod != null) { //prop is not a collection //prop is complex //prop is not enum //does not contain attribute or is attribute $str .= '<ebl:PaymentPeriod>'; $str .= $this->PaymentPeriod->toXMLString(); $str .= '</ebl:PaymentPeriod>'; } if ($this->MaxFailedPayments != null) { //prop is not a collection //prop not complex //prop is not value $str .= '<ebl:MaxFailedPayments>' . $this->MaxFailedPayments . '</ebl:MaxFailedPayments>'; } if ($this->ActivationDetails != null) { //prop is not a collection //prop is complex //prop is not enum //does not contain attribute or is attribute $str .= '<ebl:ActivationDetails>'; $str .= $this->ActivationDetails->toXMLString(); $str .= '</ebl:ActivationDetails>'; } if ($this->AutoBillOutstandingAmount != null) { //prop is not a collection //prop not complex //prop is not value $str .= '<ebl:AutoBillOutstandingAmount>' . $this->AutoBillOutstandingAmount . '</ebl:AutoBillOutstandingAmount>'; } return $str; }