当前位置: 首页>>代码示例>>PHP>>正文


PHP QuickBooks_Object::asXML方法代码示例

本文整理汇总了PHP中QuickBooks_Object::asXML方法的典型用法代码示例。如果您正苦于以下问题:PHP QuickBooks_Object::asXML方法的具体用法?PHP QuickBooks_Object::asXML怎么用?PHP QuickBooks_Object::asXML使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在QuickBooks_Object的用法示例。


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

示例1: asXML

 public function asXML($root = null, $parent = null)
 {
     switch ($parent) {
         case QUICKBOOKS_ADD_SALESRECEIPT:
             $root = 'SalesTaxLineAdd';
             break;
         case QUICKBOOKS_MOD_SALESRECEIPT:
             $root = 'SalesTaxLineMod';
             break;
     }
     return parent::asXML($root);
 }
开发者ID:dsesar,项目名称:quickbooks-php-devkit,代码行数:12,代码来源:SalesTaxLine.php

示例2: asXML

 public function asXML($root = null, $parent = null)
 {
     switch ($parent) {
         case QUICKBOOKS_ADD_INVOICE:
             $root = 'DiscountLineAdd';
             break;
         case QUICKBOOKS_MOD_INVOICE:
             $root = 'DiscountLineMod';
             break;
     }
     return parent::asXML($root);
 }
开发者ID:Edgargm87,项目名称:efapcom,代码行数:12,代码来源:DiscountLine.php

示例3: asXML

 public function asXML($root = null, $parent = null)
 {
     //print('INVOICE got called asXML: ' . $root . ', ' . $parent . "\n");
     //exit;
     switch ($root) {
         case QUICKBOOKS_ADD_INVOICE:
             //if (isset($this->_object['InvoiceLine']))
             //{
             //	$this->_object['InvoiceLineAdd'] = $this->_object['InvoiceLine'];
             //}
             foreach ($this->_object['InvoiceLineAdd'] as $key => $obj) {
                 $obj->setOverride('InvoiceLineAdd');
             }
             if (!empty($this->_object['ShippingLineAdd'])) {
                 foreach ($this->_object['ShippingLineAdd'] as $key => $obj) {
                     $obj->setOverride('ShippingLineAdd');
                 }
             }
             if (!empty($this->_object['DiscountLineAdd'])) {
                 foreach ($this->_object['DiscountLineAdd'] as $key => $obj) {
                     $obj->setOverride('DiscountLineAdd');
                 }
             }
             if (!empty($this->_object['SalesTaxLineAdd'])) {
                 foreach ($this->_object['SalesTaxLineAdd'] as $key => $obj) {
                     $obj->setOverride('SalesTaxLineAdd');
                 }
             }
             break;
         case QUICKBOOKS_MOD_INVOICE:
             if (isset($this->_object['InvoiceLine'])) {
                 $this->_object['InvoiceLineMod'] = $this->_object['InvoiceLine'];
             }
             break;
     }
     //print_r($this->_object);
     return parent::asXML($root, $parent);
 }
开发者ID:dsesar,项目名称:quickbooks-php-devkit,代码行数:38,代码来源:Invoice.php

示例4: asXML

 public function asXML($root = null, $parent = null)
 {
     $this->_cleanup();
     switch ($parent) {
         case QUICKBOOKS_ADD_RECEIVEPAYMENT:
             $root = 'AppliedToTxnAdd';
             break;
         case QUICKBOOKS_MOD_RECEIVEPAYMENT:
             $root = 'AppliedToTxnMod';
             break;
     }
     return parent::asXML($root);
 }
开发者ID:Edgargm87,项目名称:efapcom,代码行数:13,代码来源:AppliedToTxn.php

示例5: asXML

 public function asXML($root = null, $parent = null)
 {
     switch ($root) {
         case QUICKBOOKS_ADD_CHECK:
             if (!empty($this->_object['ItemLineAdd'])) {
                 foreach ($this->_object['ItemLineAdd'] as $key => $obj) {
                     $obj->setOverride('ItemLineAdd');
                 }
             }
             if (!empty($this->_object['ItemGroupLineAdd'])) {
                 foreach ($this->_object['ItemGroupLineAdd'] as $key => $obj) {
                     $obj->setOverride('ItemGroupLineAdd');
                 }
             }
             if (!empty($this->_object['ExpenseLineAdd'])) {
                 foreach ($this->_object['ExpenseLineAdd'] as $key => $obj) {
                     $obj->setOverride('ExpenseLineAdd');
                 }
             }
             if (!empty($this->_object['ApplyCheckToTxnAdd'])) {
                 foreach ($this->_object['ApplyCheckToTxnAdd'] as $key => $obj) {
                     $obj->setOverride('ApplyCheckToTxnAdd');
                 }
             }
             break;
         case QUICKBOOKS_MOD_CHECK:
             if (isset($this->_object['ItemLine'])) {
                 $this->_object['ItemLineMod'] = $this->_object['ItemLine'];
             }
             break;
     }
     return parent::asXML($root, $parent);
 }
开发者ID:Edgargm87,项目名称:efapcom,代码行数:33,代码来源:Check.php

示例6: asXML

 public function asXML($root = null, $parent = null)
 {
     switch ($parent) {
         case QUICKBOOKS_ADD_CHECK:
             $root = 'ItemLineAdd';
             break;
         case QUICKBOOKS_MOD_CHECK:
             $root = 'ItemLineMod';
             break;
     }
     return parent::asXML($root);
 }
开发者ID:Edgargm87,项目名称:efapcom,代码行数:12,代码来源:ItemLine.php

示例7: asXML

 public function asXML($root = null, $parent = null)
 {
     switch ($root) {
         case QUICKBOOKS_ADD_INVENTORYADJUSTMENT:
             foreach ($this->_object['InventoryAdjustmentLineAdd'] as $key => $obj) {
                 $obj->setOverride('InventoryAdjustmentLineAdd');
             }
             break;
     }
     return parent::asXML($root);
 }
开发者ID:Edgargm87,项目名称:efapcom,代码行数:11,代码来源:InventoryAdjustment.php

示例8: asXML

 public function asXML($root = null, $parent = null)
 {
     $this->_cleanup();
     switch ($parent) {
         case QUICKBOOKS_ADD_ESTIMATE:
             $root = 'EstimateLineAdd';
             break;
         case QUICKBOOKS_MOD_ESTIMATE:
             $root = 'EstimateLineMod';
             break;
     }
     return parent::asXML($root);
 }
开发者ID:dsesar,项目名称:quickbooks-php-devkit,代码行数:13,代码来源:EstimateLine.php

示例9: asXML

 public function asXML($root = null, $parent = null)
 {
     switch ($root) {
         case QUICKBOOKS_ADD_ESTIMATE:
             foreach ($this->_object['EstimateLineAdd'] as $key => $obj) {
                 $obj->setOverride('EstimateLineAdd');
             }
             break;
         case QUICKBOOKS_MOD_ESTIMATE:
             if (isset($this->_object['EstimateLine'])) {
                 $this->_object['EstimateLineMod'] = $this->_object['EstimateLine'];
             }
             break;
     }
     return parent::asXML($root, $parent);
 }
开发者ID:dsesar,项目名称:quickbooks-php-devkit,代码行数:16,代码来源:Estimate.php

示例10: asXML

 public function asXML($root = null, $parent = null)
 {
     $this->_cleanup();
     switch ($parent) {
         case QUICKBOOKS_ADD_INVOICE:
             $root = 'InvoiceLineAdd';
             break;
         case QUICKBOOKS_MOD_INVOICE:
             $root = 'InvoiceLineMod';
             break;
     }
     return parent::asXML($root);
 }
开发者ID:Edgargm87,项目名称:efapcom,代码行数:13,代码来源:InvoiceLine.php

示例11: asXML

 public function asXML($root = null, $parent = null)
 {
     switch ($root) {
         case QUICKBOOKS_ADD_RECEIPTITEM:
             if (isset($this->_object['ItemLineAdd'])) {
                 foreach ($this->_object['ItemLineAdd'] as $key => $obj) {
                     $obj->setOverride('ItemLineAdd');
                 }
             }
             if (isset($this->_object['ItemGroupLineAdd'])) {
                 foreach ($this->_object['ItemGroupLineAdd'] as $key => $obj) {
                     $obj->setOverride('ItemGroupLineAdd');
                 }
             }
             if (isset($this->_object['ExpenseLineAdd'])) {
                 foreach ($this->_object['ExpenseLineAdd'] as $key => $obj) {
                     $obj->setOverride('ExpenseLineAdd');
                 }
             }
             break;
             // For possible future use...
             /*
             case QUICKBOOKS_QUERY_RECEIPTITEM:
             	if (isset($this->_object['ItemLineAdd']))
             	{
             		foreach ($this->_object['ItemLineQuery'] as $key => $obj)
             		{
             			$obj->setOverride('ItemLineQuery');
             		}
             	}
             	if (isset($this->_object['ItemGroupLineAdd']))
             	{
             		foreach ($this->_object['ItemGroupQuery'] as $key => $obj)
             		{
             			$obj->setOverride('ItemGroupQuery');
             		}
             	}
             	if (isset($this->_object['ExpenseLineAdd']))
             	{
             		foreach ($this->_object['ExpenseLineQuery'] as $key => $obj)
             		{
             			$obj->setOverride('ExpenseLineQuery');
             		}
             	}
             	break;
             */
         // For possible future use...
         /*
         case QUICKBOOKS_QUERY_RECEIPTITEM:
         	if (isset($this->_object['ItemLineAdd']))
         	{
         		foreach ($this->_object['ItemLineQuery'] as $key => $obj)
         		{
         			$obj->setOverride('ItemLineQuery');
         		}
         	}
         	if (isset($this->_object['ItemGroupLineAdd']))
         	{
         		foreach ($this->_object['ItemGroupQuery'] as $key => $obj)
         		{
         			$obj->setOverride('ItemGroupQuery');
         		}
         	}
         	if (isset($this->_object['ExpenseLineAdd']))
         	{
         		foreach ($this->_object['ExpenseLineQuery'] as $key => $obj)
         		{
         			$obj->setOverride('ExpenseLineQuery');
         		}
         	}
         	break;
         */
         case QUICKBOOKS_MOD_RECEIPTITEM:
             if (isset($this->_object['ItemLineAdd'])) {
                 foreach ($this->_object['ItemLineMod'] as $key => $obj) {
                     $obj->setOverride('ItemLineMod');
                 }
             }
             if (isset($this->_object['ItemGroupLineAdd'])) {
                 foreach ($this->_object['ItemGroupMod'] as $key => $obj) {
                     $obj->setOverride('ItemGroupMod');
                 }
             }
             if (isset($this->_object['ExpenseLineAdd'])) {
                 foreach ($this->_object['ExpenseLineMod'] as $key => $obj) {
                     $obj->setOverride('ExpenseLineMod');
                 }
             }
             break;
     }
     return parent::asXML($root);
 }
开发者ID:Edgargm87,项目名称:efapcom,代码行数:92,代码来源:ReceiptItem.php

示例12: asXML

 public function asXML($root = null, $parent = null)
 {
     switch ($parent) {
         case QUICKBOOKS_ADD_INVENTORYADJUSTMENT:
             $root = 'InventoryAdjustmentLineAdd';
             break;
             // Currently unimplemented
             /*
             			case QUICKBOOKS_QUERY_INVENTORYADJUSTMENT:
             				$root = 'InventoryAdjustmentLineQuery';
             				break;
             */
     }
     return parent::asXML($root);
 }
开发者ID:Edgargm87,项目名称:efapcom,代码行数:15,代码来源:InventoryAdjustmentLine.php

示例13: asXML

 public function asXML($root = null, $parent = null)
 {
     switch ($root) {
         case QUICKBOOKS_ADD_RECEIVEPAYMENT:
             /*
             if (isset($this->_object['AppliedToTxn']))
             {
             	$this->_object['AppliedToTxnAdd'] = $this->_object['AppliedToTxn'];
             }
             */
             if ($this->exists('AppliedToTxnAdd')) {
                 foreach ($this->_object['AppliedToTxnAdd'] as $key => $obj) {
                     $obj->setOverride('AppliedToTxnAdd');
                 }
             }
             break;
         case QUICKBOOKS_MOD_INVOICE:
             // finish me!
             break;
     }
     return parent::asXML($root, $parent);
 }
开发者ID:dsesar,项目名称:quickbooks-php-devkit,代码行数:22,代码来源:ReceivePayment.php


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