當前位置: 首頁>>代碼示例>>PHP>>正文


PHP SimpleXMLElement::addChild方法代碼示例

本文整理匯總了PHP中Miva\Provisioning\Builder\SimpleXMLElement::addChild方法的典型用法代碼示例。如果您正苦於以下問題:PHP SimpleXMLElement::addChild方法的具體用法?PHP SimpleXMLElement::addChild怎麽用?PHP SimpleXMLElement::addChild使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Miva\Provisioning\Builder\SimpleXMLElement的用法示例。


在下文中一共展示了SimpleXMLElement::addChild方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: 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

示例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:
  * 
  *   <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

示例4: 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

示例5: toXml

 /**
  * {@inheritDoc}
  * 
  * Format:
  * 
  * <Module code="customfields" feature="fields_cust">
  *  <CustomerField_Value customer="login" field="code">No</CustomerField_Value>
  * </Module>
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<Module />');
     $xmlObject->addAttribute('code', 'customfields');
     $xmlObject->addAttribute('feature', 'fields_cust');
     $mainTag = $xmlObject->addChild('CustomerField_Value', $this->getValue());
     $mainTag->addAttribute('customer', $this->getCustomerLogin());
     $mainTag->addAttribute('field', $this->getFieldCode());
     return $xmlObject;
 }
開發者ID:ghassani,項目名稱:miva-provision,代碼行數:19,代碼來源:CustomerFieldValue.php

示例6: toXml

 /**
  * {@inheritDoc}
  * 
  * Format:
  * 
  * <Module code="customfields" feature="util">
  *   <Group_Add>
  *      <Code>group_code</Code>
  *      <Name>Group Name</Name>
  *  </Group_Add>
  * </Module>
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<Module />');
     $xmlObject->addAttribute('code', 'customfields');
     $xmlObject->addAttribute('feature', 'util');
     $mainTag = $xmlObject->addChild('Group_Add');
     $mainTag->addChild('Code', $this->getCode());
     $mainTag->addChild('Name', $this->getName())->addAttribute('method-call', 'addCDATA');
     return $xmlObject;
 }
開發者ID:ghassani,項目名稱:miva-provision,代碼行數:22,代碼來源:GroupAdd.php

示例7: toXml

 /**
  * {@inheritDoc}
  * 
  * Format:
  * 
  * <Product>                                       (required)
  *      <Code>p1</Code>                             (required)
  *      <Quantity>1</Quantity>                      (required)
  *      <DateInStock>                               (optional)
  *          <Day>01</Day>                                   (required)
  *          <Month>01</Month>                               (required)
  *          <Year>1970</Year>                               (required)
  *          <Hour>00</Hour>                                 (optional)
  *          <Minute>01</Minute>                             (optional)
  *       </DateInStock>
  * </Product>
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<Product />');
     $xmlObject->addChild('Code', $this->getCode());
     $xmlObject->addChild('Quantity', $this->getQuantity());
     if ($this->getDateInStock() instanceof \DateTime) {
         $dateInStockXml = $xmlObject->addChild('DateInStock');
         XmlHelper::dateTimeToXml($dateInStockXml, $this->getDateInStock());
     }
     return $xmlObject;
 }
開發者ID:ghassani,項目名稱:miva-provision,代碼行數:28,代碼來源:ProductListProduct.php

示例8: toXml

 /**
  * {@inheritDoc}
  *
  * Format:
  *
  *   <Customer_Update login="BAR">
  *       <Login>c1</Login>
  *       <LostPasswordEmail>noreply@miva.com</LostPasswordEmail>
  *       <Password>c1</Password>
  *       <ShipFirstName>Testy</ShipFirstName>
  *       <ShipLastName>Testerman</ShipLastName>
  *       <ShipEmail>noreply@miva.com</ShipEmail>
  *       <ShipPhone>555-555-5555</ShipPhone>
  *       <ShipFax>555-555-1212</ShipFax>
  *       <ShipCompany>MivaCorp</ShipCompany>
  *       <ShipAddress>5060 Santa Fe St</ShipAddress>
  *       <ShipCity>San Diego</ShipCity>
  *       <ShipStateCode>CA</ShipStateCode>
  *       <ShipZip>92109</ShipZip>
  *       <ShipCountryCode>US</ShipCountryCode>
  *       <BillFirstName>Testy</BillFirstName>
  *       <BillLastName>Testerman</BillLastName>
  *       <BillEmail>noreply@miva.com</BillEmail>
  *       <BillPhone>555-555-5555</BillPhone>
  *       <BillFax>555-555-1212</BillFax>
  *       <BillCompany>MivaCorp</BillCompany>
  *       <BillAddress>5060 Santa Fe St</BillAddress>
  *       <BillCity>San Diego</BillCity>
  *       <BillStateCode>CA</BillStateCode>
  *       <BillZip>92109</BillZip>
  *       <BillCountryCode>US</BillCountryCode>
  *   </Customer_Update>
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<Customer_Update />');
     $xmlObject->addAttribute('login', $this->getLogin());
     if ($this->getNewLogin()) {
         $xmlObject->addChild('Login', $this->getNewLogin());
     }
     if ($this->getLostPasswordEmail()) {
         $xmlObject->addChild('LostPasswordEmail', $this->getLostPasswordEmail());
     }
     if ($this->getPassword()) {
         $xmlObject->addChild('Password', $this->getPassword());
     }
     if ($this->getShipFirstName()) {
         $xmlObject->addChild('ShipFirstName', $this->getShipFirstName());
     }
     if ($this->getShipLastName()) {
         $xmlObject->addChild('ShipLastName', $this->getShipLastName());
     }
     if ($this->getShipEmail()) {
         $xmlObject->addChild('ShipEmail', $this->getShipEmail());
     }
     if ($this->getShipPhone()) {
         $xmlObject->addChild('ShipPhone', $this->getShipPhone());
     }
     if ($this->getShipFax()) {
         $xmlObject->addChild('ShipFax', $this->getShipFax());
     }
     if ($this->getShipCompany()) {
         $xmlObject->addChild('ShipCompany', $this->getShipCompany());
     }
     if ($this->getShipAddress()) {
         $xmlObject->addChild('ShipAddress', $this->getShipAddress());
     }
     if ($this->getShipCity()) {
         $xmlObject->addChild('ShipCity', $this->getShipCity());
     }
     if ($this->getShipStateCode()) {
         $xmlObject->addChild('ShipStateCode', $this->getShipStateCode());
     }
     if ($this->getShipZip()) {
         $xmlObject->addChild('ShipZip', $this->getShipZip());
     }
     if ($this->getShipCountryCode()) {
         $xmlObject->addChild('ShipCountryCode', $this->getShipCountryCode());
     }
     if ($this->getBillFirstName()) {
         $xmlObject->addChild('BillFirstName', $this->getBillFirstName());
     }
     if ($this->getBillLastName()) {
         $xmlObject->addChild('BillLastName', $this->getBillLastName());
     }
     if ($this->getBillEmail()) {
         $xmlObject->addChild('BillEmail', $this->getBillEmail());
     }
     if ($this->getBillPhone()) {
         $xmlObject->addChild('BillPhone', $this->getBillPhone());
     }
     if ($this->getBillFax()) {
         $xmlObject->addChild('BillFax', $this->getBillFax());
     }
     if ($this->getBillCompany()) {
         $xmlObject->addChild('BillCompany', $this->getBillCompany());
     }
     if ($this->getBillAddress()) {
         $xmlObject->addChild('BillAddress', $this->getBillAddress());
     }
//.........這裏部分代碼省略.........
開發者ID:ghassani,項目名稱:miva-provision,代碼行數:101,代碼來源:CustomerUpdate.php

示例9: toXml

 /**
  * {@inheritDoc}
  * 
  * Format (Pre MM9):
  * 
  *  <PriceGroup_Add>
  *      <Name>Warrior</Name>
  *      <Pricing>Discount</Pricing>
  *      <Amount>10.00</Amount>
  *  </PriceGroup_Add>
  *
  *
  * Format (MM9):
  *
  *  <PriceGroup_Add>
  *      <Name>Warrior</Name>
  *      <Eligibility>Coupon,All,Customer,LoggedIn</Eligibility>
  *      <NotValidBefore>
  *          <Day>01</Day>									(required)
  *          <Month>01</Month>								(required)
  *          <Year>1970</Year>								(required)
  *          <Minute>30</Minute>								(optional)
  *          <Hour>12</Hour>									(optional)
  *      </NotValidBefore>
  *      <NotValidAfter>
  *          <Day>01</Day>									(required)
  *          <Month>01</Month>								(required)
  *          <Year>1970</Year>								(required)
  *          <Minute>30</Minute>								(optional)
  *          <Hour>12</Hour>									(optional)
  *      </NotValidAfter>
  *      <Priority>100</Priority>
  *
  *      <!-- One of the following -->
  *
  *      <Pricing>Retail,Cost,Discount,Markup</Pricing>
  *      <Amount>10.00</Amount>
  *
  *      <!-- or -->
  *
  *      <Module>discount_addon|discount_addon|discount_basket|discount_buyxgety|discount_product|discount_shipping_product|discount_shipping_basket| discount_saleprice|discount_volume</Module>
  *      <Description>Textual Description</Description>
  *      <DisplayInBasket>No</DisplayInBasket>
  *      <QualifyingMinimumSubtotal>0.00</QualifyingMinimumSubtotal>
  *      <QualifyingMaximumSubtotal>0.00</QualifyingMaximumSubtotal>
  *      <QualifyingMinimumQuantity>0</QualifyingMinimumQuantity>
  *      <QualifyingMaximumQuantity>0</QualifyingMaximumQuantity>
  *      <QualifyingMinimumWeight>0.00</QualifyingMinimumWeight>
  *      <QualifyingMaximumWeight>0.00</QualifyingMaximumWeight>
  *      <BasketMinimumSubtotal>0.00</BasketMinimumSubtotal>
  *      <BasketMaximumSubtotal>0.00</BasketMaximumSubtotal>
  *      <BasketMinimumQuantity>0</BasketMinimumQuantity>
  *      <BasketMaximumQuantity>0</BasketMaximumQuantity>
  *      <BasketMinimumWeight>0.00</BasketMinimumWeight>
  *      <BasketMaximumWeight>0.00</BasketMaximumWeight>
  *
  *      <Settings>
  *      <!-- Module-specific settings -->
  *      </Settings>
  *      <Exclusions>
  *          <Exclusion group_name="xxx" type="basket|group|item" />
  *      </Exclusions>
  *  </PriceGroup_Add>
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<PriceGroup_Add />');
     if ($version < Version::NINE) {
         $xmlObject->addChild('Name', $this->getName());
         $xmlObject->addChild('Pricing', $this->getPricing());
         $xmlObject->addChild('Amount', $this->getAmount());
         return $xmlObject;
     }
     $xmlObject->addChild('Name', $this->getName());
     $xmlObject->addChild('Eligibility', $this->getEligibility());
     if ($this->getNotValidBefore() instanceof \DateTime) {
         $date = $this->getNotValidBefore();
         $notValidBefore = $xmlObject->addChild('NotValidBefore');
         $notValidBefore->addChild('Day', $date->format('d'));
         $notValidBefore->addChild('Month', $date->format('m'));
         $notValidBefore->addChild('Year', $date->format('Y'));
         $notValidBefore->addChild('Minute', $date->format('i'));
         $notValidBefore->addChild('Hour', $date->format('h'));
     }
     if ($this->getNotValidAfter() instanceof \DateTime) {
         $date = $this->getNotValidAfter();
         $notValidAfter = $xmlObject->addChild('NotValidAfter');
         $notValidAfter->addChild('Day', $date->format('d'));
         $notValidAfter->addChild('Month', $date->format('m'));
         $notValidAfter->addChild('Year', $date->format('Y'));
         $notValidAfter->addChild('Minute', $date->format('i'));
         $notValidAfter->addChild('Hour', $date->format('h'));
     }
     if ($this->getPriority()) {
         $xmlObject->addChild('Priority', $this->getPriority());
     }
     if (!$this->getModule()) {
         $xmlObject->addChild('Pricing', $this->getPricing());
         $xmlObject->addChild('Amount', $this->getAmount());
         return $xmlObject;
//.........這裏部分代碼省略.........
開發者ID:ghassani,項目名稱:miva-provision,代碼行數:101,代碼來源:PriceGroupAdd.php

示例10: toXml

 /**
  * {@inheritDoc}
  * 
  * Format:
  * 
  *  <AffiliateOptions_Update>
  *        <Active>Active</Active>
  *        <ApplicationStatus>ApplicationStatus</ApplicationStatus>
  *        <DefaultCommissionHit>1.0000</DefaultCommissionHit>
  *        <DefaultCommissionPercentOfOrder>1.0000</DefaultCommissionPercentOfOrder>
  *        <DefaultCommissionOrderFlatFee>1.0000</DefaultCommissionOrderFlatFee>
  *        <PayoutThreshold>1.0000</PayoutThreshold>
  *        <LinkImage>LinkImage</LinkImage>
  *        <LinkText>LinkText</LinkText>
  *        <Terms>Terms</Terms>
  *    </AffiliateOptions_Update>
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<AffiliateOptions_Update />');
     $xmlObject->addChild('Active', $this->getActive());
     $xmlObject->addChild('ApplicationStatus', $this->getApplicationStatus());
     $xmlObject->addChild('DefaultCommissionHit', $this->getDefaultCommissionHit());
     $xmlObject->addChild('DefaultCommissionPercentOfOrder', $this->getDefaultCommissionPercentOfOrder());
     $xmlObject->addChild('DefaultCommissionOrderFlatFee', $this->getDefaultCommissionOrderFlatFee());
     $xmlObject->addChild('PayoutThreshold', $this->getPayoutThreshold());
     $xmlObject->addChild('LinkImage', $this->getLinkImage());
     $xmlObject->addChild('LinkText', $this->getLinkText());
     $xmlObject->addChild('Terms', $this->getTerms());
     return $xmlObject;
 }
開發者ID:ghassani,項目名稱:miva-provision,代碼行數:31,代碼來源:AffiliateOptionsUpdate.php

示例11: toXml

 /**
  * {@inheritDoc}
  * 
  * Format:    
  *                    
  * <UltimateGiftCertificates_AddKey certcode="TEST_ADD">  
  *    <Certkey>TEST2</Certkey>
  *    <Balance>5000</Balance> 
  *    <Expires>11</Expires> 
  *    <Issued>TIMESTAMP</Issued> 
  *    <Expires>TIMESTAMP</Expires> 
  *    <Balance>FLOAT</Balance> 
  *    <Lastused>TIMESTAMP</Lastused> 
  *       <Order>INTEGER</Order> 
  *       <Status>INTEGER</Status> 
  *        <RecipientEmail>STRING</RecipientEmail> 
  *       <RecipientName>STRING</RecipientName> 
  *      <RecipientMessage>STRING</RecipientMessage> 
  *       <SenderFirstName>STRING</SenderFirstName> 
  *        <SenderLastName>STRING</SenderLastName> 
  *        <SenderEmail>STRING</SenderEmail> 
  *  </UltimateGiftCertificates_AddKey>
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<UltimateGiftCertificates_AddKey />');
     $xmlObject->addAttribute('certcode', $this->getCertCode());
     $xmlObject->addChild('Certkey', $this->getCertKey());
     $xmlObject->addChild('Balance', $this->getBalance());
     if ($this->getExpires() instanceof \DateTime) {
         $xmlObject->addChild('Expires', $this->getExpires()->getTimestamp());
     } else {
         $xmlObject->addChild('Expires', $this->getExpires());
     }
     if ($this->getIssued() instanceof \DateTime) {
         $xmlObject->addChild('Issued', $this->getIssued()->getTimestamp());
     } else {
         $xmlObject->addChild('Issued', $this->getIssued());
     }
     if ($this->getLastUsed() && $this->getLastUsed() instanceof \DateTime) {
         $xmlObject->addChild('Issued', $this->getLastUsed()->getTimestamp());
     } else {
         if ($this->getLastUsed()) {
             $xmlObject->addChild('Issued', $this->getLastUsed());
         }
     }
     if ($this->getOrder()) {
         $xmlObject->addChild('Order', $this->getOrder());
     }
     if ($this->getStatus()) {
         $xmlObject->addChild('Status', $this->getStatus() ? 'Yes' : 'No');
     }
     if ($this->getRecipientEmail()) {
         $xmlObject->addChild('RecipientEmail', $this->getRecipientEmail());
     }
     if ($this->getRecipientName()) {
         $xmlObject->addChild('RecipientName', $this->getRecipientName());
     }
     if ($this->getRecipientMessage()) {
         $xmlObject->addChild('RecipientMessage', $this->getRecipientMessage());
     }
     if ($this->getSenderFirstName()) {
         $xmlObject->addChild('SenderFirstName', $this->getSenderFirstName());
     }
     if ($this->getSenderLastName()) {
         $xmlObject->addChild('SenderLastName', $this->getSenderLastName());
     }
     if ($this->getSenderEmail()) {
         $xmlObject->addChild('SenderEmail', $this->getSenderEmail());
     }
     return $xmlObject;
 }
開發者ID:ghassani,項目名稱:miva-provision,代碼行數:72,代碼來源:AddKey.php

示例12: toXml

 /**
  * {@inheritDoc}
  *
  * Format:
  *  <Order_Add_Product order_id="X">
  *      <Code></Code>
  *      <Status></Status>
  *      <Quantity></Quantity>
  *      <TrackingNumber></TrackingNumber> <!-- optional -->
  *      <TrackingType></TrackingType> <!-- optional -->
  *      <Shipment>
  *          <!-- SEE Child/OrderShipment -->
  *      </Shipment>
  * </Order_Add_Product>
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<Order_Add_Product />');
     $xmlObject->addAttribute('order_id', $this->getOrderId());
     $xmlObject->addChild('Code', $this->getCode());
     $xmlObject->addChild('Status', $this->getStatus());
     if ($this->getTrackingNumber()) {
         $xmlObject->addChild('TrackingNumber', $this->getTrackingNumber());
     }
     if ($this->getTrackingType()) {
         $xmlObject->addChild('TrackingType', $this->getTrackingType());
     }
     if ($this->getShipment()) {
         XmlHelper::appendToParent($xmlObject, $this->getShipment()->toXml());
     }
     return $xmlObject;
 }
開發者ID:ghassani,項目名稱:miva-provision,代碼行數:32,代碼來源:OrderAddProduct.php

示例13: toXml

 /**
  * {@inheritDoc}
  * 
  * Format:
  * 
  * <Country_Add>
  *       <Name>Burchtopia</Name>
  *       <Code>BR</Code>
  *       <ISO_Code>123</ISO_Code>
  *   </Country_Add>
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<Country_Add></Country_Add>');
     $xmlObject->addChild('Name', $this->getName());
     $xmlObject->addChild('Code', $this->getCode());
     $xmlObject->addChild('ISO_Code', $this->getIsoCode());
     return $xmlObject;
 }
開發者ID:ghassani,項目名稱:miva-provision,代碼行數:19,代碼來源:CountryAdd.php

示例14: toXml

 /**
  * {@inheritDoc}
  * 
  * Format:
  * 
  *  <UpsoldProduct_Add>
  *      <ProductCode>backpack</ProductCode>
  *      <Display>Total</Display>
  *      <RequiredAmount>50.00</RequiredAmount>
  *      <Pricing>AbsolutePrice</Pricing>
  *      <Price>17.00</Price>
  *  </UpsoldProduct_Add>
  *
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<UpsoldProduct_Add />');
     $xmlObject->addChild('ProductCode', $this->getProductCode());
     $xmlObject->addChild('Display', $this->getDisplay());
     $xmlObject->addChild('RequiredAmount', $this->getRequiredAmount());
     $xmlObject->addChild('Pricing', $this->getPricing());
     $xmlObject->addChild('Price', $this->getPrice());
     return $xmlObject;
 }
開發者ID:ghassani,項目名稱:miva-provision,代碼行數:24,代碼來源:UpsoldProductAdd.php

示例15: toXml

 /**
  * {@inheritDoc}
  * 
  * Format:
  * 
  * <Settings_Update>
  *       <ForcePasswordAfterDays>10</ForcePasswordAfterDays>
  *       <PasswordReuse>5</PasswordReuse>
  *       <MinimumPasswordLength>3</MinimumPasswordLength>
  *       <PasswordComplexity>none</PasswordComplexity>
  *       <ImageJPEGQuality>12</ImageJPEGQuality>
  *  </Settings_Update>
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<Settings_Update />');
     $xmlObject->addChild('ForcePasswordAfterDays', $this->getForcePasswordAfterDays());
     $xmlObject->addChild('PasswordReuse', $this->getPasswordReuse());
     $xmlObject->addChild('MinimumPasswordLength', $this->getMinimumPasswordLength());
     $xmlObject->addChild('PasswordComplexity', $this->getImageJPEGQuality());
     return $xmlObject;
 }
開發者ID:ghassani,項目名稱:miva-provision,代碼行數:22,代碼來源:SettingsUpdate.php


注:本文中的Miva\Provisioning\Builder\SimpleXMLElement::addChild方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。