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


PHP QuickBooks_Object::fromQBXML方法代码示例

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


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

示例1: print_r

	</CustomerRet>';
// Create the customer
$Object = QuickBooks_Object::fromQBXML($qbxml);
// Print it out
print_r($Object);
// Does it work for qbXML ADD requests too?
$qbxml = '
	<CustomerAdd>
		<Name>20706 - Eastern XYZ University</Name>
		<CompanyName>Eastern XYZ University</CompanyName>
		<FirstName>Keith</FirstName>
		<LastName>Palmer</LastName>
		<BillAddress>
			<Addr1>Eastern XYZ University</Addr1>
			<Addr2>College of Engineering</Addr2>
			<Addr3>123 XYZ Road</Addr3>
			<City>Storrs-Mansfield</City>
			<State>CT</State>
			<PostalCode>06268</PostalCode>
			<Country>United States</Country>
		</BillAddress>
		<Phone>860-634-1602</Phone>
		<AltPhone>860-429-0021</AltPhone>
		<Fax>860-429-5183</Fax>
		<Email>keith@consolibyte.com</Email>
		<Contact>Keith Palmer</Contact>
	</CustomerAdd>';
// Create it...
$Object = QuickBooks_Object::fromQBXML($qbxml);
// Print it...
print_r($Object);
开发者ID:dsesar,项目名称:quickbooks-php-devkit,代码行数:31,代码来源:example_qbxml_to_object.php

示例2:

		<TimeModified>2009-10-11T14:26:12</TimeModified>
		<EditSequence>1234</EditSequence>
		<Name>7lb Box</Name>
		<IsActive>true</IsActive>
		<UnitOfMeasureType>Weight</UnitOfMeasureType>
		<BaseUnit>
			<Name>Pounds</Name>
			<Abbreviation>lbs</Abbreviation>
		</BaseUnit>
		<RelatedUnit>
			<Name>15lb Box</Name>
			<Abbreviation>15lbs</Abbreviation>
			<ConversionRatio>2</ConversionRatio>
		</RelatedUnit>
		<RelatedUnit>
			<Name>25lb Box</Name>
			<Abbreviation>25lbs</Abbreviation>
			<ConversionRatio>4</ConversionRatio>
		</RelatedUnit>
		<DefaultUnit>
			<UnitUsedFor>Sales</UnitUsedFor>
			<Unit>Pound</Unit>
		</DefaultUnit>
		<DefaultUnit>
			<UnitUsedFor>Purchase</UnitUsedFor>
			<Unit>2 Pounds</Unit>
		</DefaultUnit>
	</UnitOfMeasureSetRet>';
$UnitOfMeasureSet = QuickBooks_Object::fromQBXML($qbxml);
print_r($UnitOfMeasureSet);
print $UnitOfMeasureSet->asQBXML(QUICKBOOKS_ADD_UNITOFMEASURESET);
开发者ID:djeraseit,项目名称:quickbooks-php,代码行数:31,代码来源:test_unitofmeasureset_and_salestaxcode.php


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