QuickBooks/Callbacks/SQL/Callbacks.php
public static function ListDeletedQueryResponse($requestID, $user, $action, $ID, $extra, &$err, $last_action_time, $last_actionident_time, $xml, $idents, $config = array() )
	{
		$Driver = QuickBooks_Driver_Singleton::getInstance();
		
		$Parser = new QuickBooks_XML_Parser($xml);
		
		$errnum = 0;
		$errmsg = '';
		$Doc = $Parser->parse($errnum, $errmsg);
		$Root = $Doc->getRoot();
		
		$List = $Root->getChildAt('QBXML QBXMLMsgsRs ListDeletedQueryRs');
		
		foreach ($List->children() as $Node)
		{
			$map = array();
			$others = array();
			
			QuickBooks_SQL_Schema::mapToSchema(trim(QuickBooks_Utilities::objectToXMLElement($Node->getChildDataAt('ListDeletedRet ListDelType'))), QUICKBOOKS_SQL_SCHEMA_MAP_TO_SQL, $map, $others);
			
			if (isset($map[0]))
			{
				$table = $map[0];
				
				$data = array(
					'qbsql_flag_deleted' => 1, 
					);
					
				$multipart = array( 'ListID' => $Node->getChildDataAt('ListDeletedRet ListID') );
				
				$Driver->update(QUICKBOOKS_DRIVER_SQL_PREFIX_SQL . $table, $data, array( $multipart ));
			}
		}
		
		return true;
	}
public static function ListDeletedQueryResponse($requestID, $user, $action, $ID, $extra, &$err, $last_action_time, $last_actionident_time, $xml, $idents, $config = array() )
	{
		$Driver = QuickBooks_Driver_Singleton::getInstance();
		
		$Parser = new QuickBooks_XML_Parser($xml);
		
		$errnum = 0;
		$errmsg = '';
		$Doc = $Parser->parse($errnum, $errmsg);
		$Root = $Doc->getRoot();
		
		$List = $Root->getChildAt('QBXML QBXMLMsgsRs ListDeletedQueryRs');
		
		foreach ($List->children() as $Node)
		{
			$map = array();
			$others = array();
			
			QuickBooks_SQL_Schema::mapToSchema(trim(QuickBooks_Utilities::objectToXMLElement($Node->getChildDataAt('ListDeletedRet ListDelType'))), QUICKBOOKS_SQL_SCHEMA_MAP_TO_SQL, $map, $others);
			
			if (isset($map[0]))
			{
				$table = $map[0];
				
				$data = array(
					'qbsql_flag_deleted' => 1, 
					);
					
				$multipart = array( 'ListID' => $Node->getChildDataAt('ListDeletedRet ListID') );
				
				$Driver->update(QUICKBOOKS_DRIVER_SQL_PREFIX_SQL . $table, $data, array( $multipart ));
			}
		}
		
		return true;
	}
Handle a list of deleted items from QuickBooks