function _quickbooks_hook_loginsuccess($requestID, $user, $hook, &$err, $hook_data, $callback_config) { //Agrega a la cola los queries oara la sincronizacion. try { enqueuePurchaseOrders(); enqueueInvoices(); } catch (Exception $e) { QuickBooks_Utilities::log(QB_QUICKBOOKS_DSN, "_quickbooks_hook_loginsuccess " . $e->getMessage()); } }
// send the response // framework calls response handler, calls any error handlers // framework sends back a percentage done // HTTP disconnect $obj = new My_Class_Name(); $map = array( QUICKBOOKS_ADD_CUSTOMER => array( array( $obj, 'my_method_name_for_requests' ), array( $obj, 'my_method_name_for_responses' ) ), ); $errmap = array( 500 => array( $obj, 'my_method_name_for_handling_500_errors' ), );