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


PHP QuickBooks_Object::asList方法代码示例

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


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

示例1: _mapApplicationIDs

 /**
  * 
  * 
  * @param string $request
  * @param QuickBooks_Object $obj
  * @param boolean $continue_on_error
  * @param string $err
  * @return array
  */
 protected function _mapApplicationIDs($request, &$obj, $continue_on_error, &$err)
 {
     foreach ($obj->asList($request) as $key => $value) {
         if (is_array($value)) {
             // this function neeeds to beable to handle arrays, or objects
             /*
             foreach ($value as $subvalue)
             {
             	$err = '';
             	if ($this->_mapApplicationIDs($request, $subvalue, $continue_on_error, $err))
             	{
             		; // do nothing
             	}
             	else if (!$continue_on_error)
             	{
             		$err = 'Recursive map error: ' . $err;
             		return false;
             	}
             }
             */
         } else {
             /*
             				if (substr($key, strlen(QUICKBOOKS_API_APPLICATIONID) * -1, strlen(QUICKBOOKS_API_APPLICATIONID)) == QUICKBOOKS_API_APPLICATIONID)
             				{
             					$type = null;
             					$tag = null;
             					$ID = null;
             					$obj->decodeApplicationID($value, $type, $tag, $ID);
             					
             					if ($ListID_or_TxnID = $this->_mapToQuickBooksID($type, $ID))
             					{
             						$back = substr($key, 0, -1 * (strlen(QUICKBOOKS_API_APPLICATIONID) + 1));
             						
             						$obj->set($back . ' ' . $tag, $ListID_or_TxnID);
             					}
             					else if (!$continue_on_error)
             					{
             						$err = 'Unable to map key: ' . $key;
             						return false;
             					}
             				}*/
         }
     }
     return true;
 }
开发者ID:Edgargm87,项目名称:efapcom,代码行数:54,代码来源:API.php

示例2: asList

 public function asList($request)
 {
     switch ($request) {
         case 'InvoiceAddRq':
             if (isset($this->_object['InvoiceLine'])) {
                 $this->_object['InvoiceLineAdd'] = $this->_object['InvoiceLine'];
             }
             if (isset($this->_object['ShippingLine'])) {
                 $this->_object['ShippingLineAdd'] = $this->_object['ShippingLine'];
             }
             if (isset($this->_object['SalesTaxLine'])) {
                 $this->_object['SalesTaxLineAdd'] = $this->_object['SalesTaxLine'];
             }
             if (isset($this->_object['DiscountLine'])) {
                 $this->_object['DiscountLineAdd'] = $this->_object['DiscountLine'];
             }
             break;
         case 'InvoiceModRq':
             if (isset($this->_object['InvoiceLine'])) {
                 $this->_object['InvoiceLineMod'] = $this->_object['InvoiceLine'];
             }
             break;
     }
     return parent::asList($request);
 }
开发者ID:dsesar,项目名称:quickbooks-php-devkit,代码行数:25,代码来源:Invoice.php

示例3: asList

 public function asList($request)
 {
     switch ($request) {
         case 'CheckAddRq':
             if (isset($this->_object['ItemLine'])) {
                 $this->_object['ItemLineAdd'] = $this->_object['ItemLine'];
             }
             if (isset($this->_object['ItemGroupLine'])) {
                 $this->_object['ItemGroupLineAdd'] = $this->_object['ItemGroupLine'];
             }
             if (isset($this->_object['ExpenseLine'])) {
                 $this->_object['ExpenseLineAdd'] = $this->_object['ExpenseLine'];
             }
             if (isset($this->_object['AddCheckToTxn'])) {
                 $this->_object['AddCheckToTxnAdd'] = $this->_object['AddCheckToTxn'];
             }
             break;
         case 'CheckModRq':
             break;
     }
     return parent::asList($request);
 }
开发者ID:Edgargm87,项目名称:efapcom,代码行数:22,代码来源:Check.php

示例4: asList

 public function asList($request)
 {
     switch ($request) {
         case QUICKBOOKS_ADD_INVENTORYADJUSTMENT . 'Rq':
             if (isset($this->_object['InventoryAdjustmentLine'])) {
                 $this->_object['InventoryAdjustmentLineAdd'] = $this->_object['InventoryAdjustmentLine'];
             }
             break;
     }
     return parent::asList($request);
 }
开发者ID:Edgargm87,项目名称:efapcom,代码行数:11,代码来源:InventoryAdjustment.php

示例5: asList

 public function asList($request)
 {
     switch ($request) {
         case 'EstimateAddRq':
             if (isset($this->_object['EstimateLine'])) {
                 $this->_object['EstimateLineAdd'] = $this->_object['EstimateLine'];
             }
             break;
         case 'EstimateModRq':
             if (isset($this->_object['EstimateLine'])) {
                 $this->_object['EstimateLineMod'] = $this->_object['EstimateLine'];
             }
             break;
     }
     return parent::asList($request);
 }
开发者ID:dsesar,项目名称:quickbooks-php-devkit,代码行数:16,代码来源:Estimate.php

示例6: asList

 public function asList($request)
 {
     switch ($request) {
         case QUICKBOOKS_ADD_RECEIPTITEM . 'Rq':
             if (isset($this->_object['ItemLine'])) {
                 $this->_object['ItemLineAdd'] = $this->_object['ItemLine'];
             }
             if (isset($this->_object['ItemGroupLine'])) {
                 $this->_object['ItemGroupLineAdd'] = $this->_object['ItemGroupLine'];
             }
             if (isset($this->_object['ExpenseLine'])) {
                 $this->_object['ExpenseLineAdd'] = $this->_object['ExpenseLine'];
             }
             break;
         case QUICKBOOKS_MOD_RECEIPTITEM . 'Rq':
             if (isset($this->_object['ItemLine'])) {
                 $this->_object['ItemLineMod'] = $this->_object['ItemLine'];
             }
             if (isset($this->_object['ItemGroupLine'])) {
                 $this->_object['ItemGroupLineMod'] = $this->_object['ItemGroupLine'];
             }
             if (isset($this->_object['ExpenseLine'])) {
                 $this->_object['ExpenseLineMod'] = $this->_object['ExpenseLine'];
             }
             break;
         case QUICKBOOKS_QUERY_RECEIPTITEM . 'Rq':
             if (isset($this->_object['ItemLine'])) {
                 $this->_object['ItemLineQuery'] = $this->_object['ItemLine'];
             }
             if (isset($this->_object['ItemGroupLine'])) {
                 $this->_object['ItemGroupLineQuery'] = $this->_object['ItemGroupLine'];
             }
             if (isset($this->_object['ExpenseLIne'])) {
                 $this->_object['ExpenseLineQuery'] = $this->_object['ExpenseLine'];
             }
             break;
     }
     return parent::asList($request);
 }
开发者ID:Edgargm87,项目名称:efapcom,代码行数:39,代码来源:ReceiptItem.php


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