本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}