本文整理汇总了PHP中AbstractRequestType::toXMLString方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractRequestType::toXMLString方法的具体用法?PHP AbstractRequestType::toXMLString怎么用?PHP AbstractRequestType::toXMLString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AbstractRequestType
的用法示例。
在下文中一共展示了AbstractRequestType::toXMLString方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: toXMLString
public function toXMLString()
{
$str = '';
$str .= parent::toXMLString();
if ($this->ExternalRememberMeID != null) {
$str .= '<urn:ExternalRememberMeID>' . PPUtils::escapeInvalidXmlCharsRegex($this->ExternalRememberMeID) . '</urn:ExternalRememberMeID>';
}
if ($this->ExternalRememberMeOwnerDetails != null) {
$str .= '<urn:ExternalRememberMeOwnerDetails>';
$str .= $this->ExternalRememberMeOwnerDetails->toXMLString();
$str .= '</urn:ExternalRememberMeOwnerDetails>';
}
return $str;
}
示例2: toXMLString
public function toXMLString()
{
$flag = 0;
foreach ($this->ButtonVar as $var) {
if (strpos($var, 'bn=') !== FALSE) {
$flag = 1;
break;
}
}
if (!$flag) {
array_push($this->ButtonVar, "bn=PayPal_SDK");
}
return parent::toXMLString();
}
示例3: toXMLString
public function toXMLString()
{
$str = '';
$str .= parent::toXMLString();
if ($this->ExternalRememberMeID != null) {
//prop is not a collection
//prop not complex
//prop is not value
$str .= '<urn:ExternalRememberMeID>' . $this->ExternalRememberMeID . '</urn:ExternalRememberMeID>';
}
if ($this->ExternalRememberMeOwnerDetails != null) {
//prop is not a collection
//prop is complex
//prop is not enum
//does not contain attribute or is attribute
$str .= '<urn:ExternalRememberMeOwnerDetails>';
$str .= $this->ExternalRememberMeOwnerDetails->toXMLString();
$str .= '</urn:ExternalRememberMeOwnerDetails>';
}
return $str;
}