• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Builder\SimpleXMLElement类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中Miva\Provisioning\Builder\SimpleXMLElement的典型用法代码示例。如果您正苦于以下问题:PHP SimpleXMLElement类的具体用法?PHP SimpleXMLElement怎么用?PHP SimpleXMLElement使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了SimpleXMLElement类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: toXml

 /**
  * {@inheritDoc}
  * 
  * Format:
  * 
  * <AttributeTemplate_Add code="spikes-armor" prompt="Armor Spikes" />
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<AttributeTemplate_Add />');
     $xmlObject->addAttribute('code', $this->getCode());
     $xmlObject->addAttribute('prompt', $this->getPrompt());
     return $xmlObject;
 }
开发者ID:ghassani,项目名称:miva-provision,代码行数:14,代码来源:AttributeTemplateAdd.php


示例2: toXml

 /**
  * {@inheritDoc}
  * 
  * Format:
  *
  * <ImageType_Add>
  *     <Code>type_1</Code>
  *     <Description>this is the description for type_1</Description>
  * </ImageType_Add>
  *   
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<ImageType_Add></ImageType_Add>');
     $xmlObject->addChild('Code', $this->getCode());
     $xmlObject->addChild('Description', $this->getDescription());
     return $xmlObject;
 }
开发者ID:ghassani,项目名称:miva-provision,代码行数:18,代码来源:ImageTypeAdd.php


示例3: toXml

 /**
  * {@inheritDoc}
  *
  * Format:
  *
  * <Order_Delete_Item order_id="1000" line_id="1000" />
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<Order_Delete_Item />');
     $xmlObject->addAttribute('order_id', $this->getOrderId());
     $xmlObject->addAttribute('line_id', $this->getLineId());
     return $xmlObject;
 }
开发者ID:ghassani,项目名称:miva-provision,代码行数:14,代码来源:OrderDeleteItem.php


示例4: toXml

 /**
  * {@inheritDoc}
  *
  * Format:
  *
  * <ProductAttribute_Delete product_code="chest" attribute_code="bar" />
  *
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<ProductAttribute_Delete />');
     $xmlObject->addAttribute('product_code', $this->getProductCode());
     $xmlObject->addAttribute('attribute_code', $this->getAttributeCode());
     return $xmlObject;
 }
开发者ID:ghassani,项目名称:miva-provision,代码行数:15,代码来源:ProductAttributeDelete.php


示例5: toXml

 /**
  * {@inheritDoc}
  *
  * Format:
  *
  *  <Attribute_Boolean attribute_code="text" present="true"/>
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<Attribute_Boolean />');
     $xmlObject->addAttribute('attribute_code', $this->getAttributeCode());
     $xmlObject->addAttribute('present', $this->getPresent() ? 'true' : 'false');
     return $xmlObject;
 }
开发者ID:ghassani,项目名称:miva-provision,代码行数:14,代码来源:ProductKitAttributeBoolean.php


示例6: toXml

 /**
  * {@inheritDoc}
  *
  * Format:
  *
  * <ShippingMethod module_code="upsxml" method_code="02" />
  *
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<ShippingMethod />');
     $xmlObject->addAttribute('module_code', $this->getModuleCode());
     $xmlObject->addAttribute('method_code', $this->getMethodCode());
     return $xmlObject;
 }
开发者ID:ghassani,项目名称:miva-provision,代码行数:15,代码来源:ShippingMethod.php


示例7: toXml

 /**
  * {@inheritDoc}
  *
  * Format:
  *
  * <CouponCustomer_Assign coupon_code="xxx" customer_login="yyy" />
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<CouponCustomer_Assign />');
     $xmlObject->addAttribute('coupon_code', $this->getCouponCode());
     $xmlObject->addAttribute('customer_login', $this->getCustomerLogin());
     return $xmlObject;
 }
开发者ID:ghassani,项目名称:miva-provision,代码行数:14,代码来源:CouponCustomerAssign.php


示例8: toXml

 /**
  * {@inheritDoc}
  * 
  * Format:
  * 
  *  <CategoryProduct_Assign category_code="Food" product_code="ale-gallon" />
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<CategoryProduct_Assign />');
     $xmlObject->addAttribute('category_code', $this->getCategoryCode());
     $xmlObject->addAttribute('product_code', $this->getProductCode());
     return $xmlObject;
 }
开发者ID:ghassani,项目名称:miva-provision,代码行数:14,代码来源:CategoryProductAssign.php


示例9: toXml

 /**
  * {@inheritDoc}
  * 
  * Format:
  * 
  *  <Attribute_Option attribute_code="select" option_code="s1" />
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<Attribute_Option />');
     $xmlObject->addAttribute('attribute_code', $this->getAttributeCode());
     $xmlObject->addAttribute('option_code', $this->getOptionCode());
     return $xmlObject;
 }
开发者ID:ghassani,项目名称:miva-provision,代码行数:14,代码来源:ProductVariantAttributeOption.php


示例10: toXml

 /**
  * {@inheritDoc}
  * 
  * Format:
  * 
  * <Item code="product_display">
  *      <ImageDimensions constrain="no"/>
  * </Item>
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<Item />');
     $xmlObject->addAttribute('code', $this->getCode());
     XmlHelper::appendArrayToParent($xmlObject, $this->getData());
     return $xmlObject;
 }
开发者ID:ghassani,项目名称:miva-provision,代码行数:16,代码来源:PageUpdateItem.php


示例11: toXml

 /**
  * {@inheritDoc}
  * 
  * Format:
  * 
  *  <ProductKit_Generate_Variants product_code="test" pricing_method="master"/>
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<ProductKit_Generate_Variants />');
     $xmlObject->addAttribute('product_code', $this->getProductCode());
     $xmlObject->addAttribute('pricing_method', $this->getPricingMethod());
     return $xmlObject;
 }
开发者ID:ghassani,项目名称:miva-provision,代码行数:14,代码来源:ProductKitGenerateVariants.php


示例12: toXml

 /**
  * {@inheritDoc}
  * 
  * Format:
  * 
  *   <MivaMailerSettings_Update>
  *       <Account/>
  *       <Server/>
  *   </MivaMailerSettings_Update>
  *
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<MivaMailerSettings_Update></MivaMailerSettings_Update>');
     $xmlObject->addChild('Account', $this->getAccount());
     $xmlObject->addChild('Server', $this->getServer());
     return $xmlObject;
 }
开发者ID:ghassani,项目名称:miva-provision,代码行数:18,代码来源:MivaMailerSettingsUpdate.php


示例13: toXml

 /**
  * {@inheritDoc}
  * 
  * Format:
  * 
  * <UpsellSettings_Update>
  *     <ProductsToShow>3</ProductsToShow>
  *     <MaxProductsToSelect>3</MaxProductsToSelect>
  * </UpsellSettings_Update>
  *
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<UpsellSettings_Update />');
     $xmlObject->addChild('ProductsToShow', $this->getProductsToShow());
     $xmlObject->addChild('MaxProductsToSelect', $this->getMaxProductsToSelect());
     return $xmlObject;
 }
开发者ID:ghassani,项目名称:miva-provision,代码行数:18,代码来源:UpsellSettingsUpdate.php


示例14: toXml

 /**
  * {@inheritDoc}
  * 
  * Format:
  * 
  * <AvailabilityGroupProduct_Assign group_name="Thief" product_code="kit-disguise" />
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<AvailabilityGroupCustomer_Assign />');
     $xmlObject->addAttribute('group_name', $this->getGroupName());
     $xmlObject->addAttribute('product_code', $this->getProductCode());
     return $xmlObject;
 }
开发者ID:ghassani,项目名称:miva-provision,代码行数:14,代码来源:AvailabilityGroupProductAssign.php


示例15: toXml

 /**
  * {@inheritDoc}
  *
  * Format:
  *
  *  <ProductRelatedProduct_Unassign product_code="bolts" relatedproduct_code="bolts-silver" />
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<ProductRelatedProduct_Unassign />');
     $xmlObject->addAttribute('product_code', $this->getProductCode());
     $xmlObject->addAttribute('relatedproduct_code', $this->getRelatedProductCode());
     return $xmlObject;
 }
开发者ID:ghassani,项目名称:miva-provision,代码行数:14,代码来源:ProductRelatedProductUnassign.php


示例16: toXml

 /**
  * {@inheritDoc}
  * 
  * Format:
  * 
  *  <ProductImage_Delete product_code="test" filepath="graphics/00000001/s2k_silver_front.jpg" />
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<ProductImage_Add></ProductImage_Add>');
     $xmlObject->addAttribute('product_code', $this->getProductCode());
     $xmlObject->addAttribute('filepath', $this->getFilePath());
     return $xmlObject;
 }
开发者ID:ghassani,项目名称:miva-provision,代码行数:14,代码来源:ProductImageDelete.php


示例17: toXml

 /**
  * {@inheritDoc}
  *
  * Format:
  *
  * <CouponPriceGroup_Assign coupon_code="xxx" group_name="yyy" />
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<CouponPriceGroup_Assign />');
     $xmlObject->addAttribute('coupon_code', $this->getCouponCode());
     $xmlObject->addAttribute('group_name', $this->getGroupName());
     return $xmlObject;
 }
开发者ID:ghassani,项目名称:miva-provision,代码行数:14,代码来源:CouponPriceGroupAssign.php


示例18: toXml

 /**
  * {@inheritDoc}
  *
  * Format:
  *
  * <Coupon_Delete code="xxx" />
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     if ($version < Version::NINE) {
         return;
     }
     $xmlObject = new SimpleXMLElement('<Coupon_Delete />');
     $xmlObject->addAttribute('code', $this->getCode());
     return $xmlObject;
 }
开发者ID:ghassani,项目名称:miva-provision,代码行数:16,代码来源:CouponDelete.php


示例19: toXml

 /**
  * {@inheritDoc}
  * 
  * Format:
  * 
  * <Module code="customfields" feature="fields_prod">
  *      <ProductField_Delete code="code" />
  *  </Module>
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<Module />');
     $xmlObject->addAttribute('code', 'customfields');
     $xmlObject->addAttribute('feature', 'fields_prod');
     $mainTag = $xmlObject->addChild('ProductField_Delete');
     $mainTag->addAttribute('Code', $this->getCode());
     return $xmlObject;
 }
开发者ID:ghassani,项目名称:miva-provision,代码行数:18,代码来源:ProductFieldDelete.php


示例20: toXml

 /**
  * {@inheritDoc}
  *
  * Format:
  *
  *  <Module code="discount_volume" feature="discount">
  *      <!-- Non-existent product -->
  *      <ProductPricingTable group_name="Volume Pricing Product Provisioning Test 01" product_code="non-existent" />
  *  </Module>
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<Module />');
     $xmlObject->addAttribute('code', 'discount_volume');
     $xmlObject->addAttribute('feature', 'discount');
     foreach ($this->getProductPricingTables() as $productPricingTable) {
         XmlHelper::appendToParent($xmlObject, $productPricingTable->toXml($version, $options));
     }
     return $xmlObject;
 }
开发者ID:ghassani,项目名称:miva-provision,代码行数:20,代码来源:Volume.php



注:本文中的Miva\Provisioning\Builder\SimpleXMLElement类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Mockery\Mock类代码示例发布时间:2022-05-23
下一篇:
PHP highcharts\Highcharts类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap