@@ -37,19 +37,6 @@ public function anonymizeAll()
3737 $ this ->_anonymizeRemainingQuoteAddresses ();
3838 }
3939
40- public function getResults ()
41- {
42- return array (
43- 'Customers ' => sizeof ($ this ->_anonymizedCustomerIds ),
44- 'Customers Addresses ' => sizeof ($ this ->_anonymizedCustomerAddressIds ),
45- 'Orders ' => sizeof ($ this ->_anonymizedOrderIds ),
46- 'Order Addresses ' => sizeof ($ this ->_anonymizedOrderAddressIds ),
47- 'Quotes ' => sizeof ($ this ->_anonymizedQuoteIds ),
48- 'Quote Addresses ' => sizeof ($ this ->_anonymizedQuoteAddressIds ),
49- 'Newsletter Subscribers ' => sizeof ($ this ->_anonymizedNewsletterSubscriberIds ),
50- );
51- }
52-
5340 /**
5441 * @param Mage_Customer_Model_Resource_Customer_Collection $customers
5542 */
@@ -316,7 +303,7 @@ protected function _anonymizeRemainingQuoteAddresses()
316303 {
317304 $ quoteAddresses = Mage::getModel ('sales/quote_address ' )
318305 ->getCollection ()
319- ->addFieldToFilter ('address_id ' , array ('nin ' => $ this ->_anonymizedOrderAddressIds ));
306+ ->addFieldToFilter ('address_id ' , array ('nin ' => $ this ->_anonymizedQuoteAddressIds ));
320307
321308 foreach ($ quoteAddresses as $ quoteAddress ) {
322309
@@ -522,4 +509,20 @@ protected function _fetchRandomCustomerData($count)
522509
523510 return $ this ->_unusedCustomerData ;
524511 }
512+
513+ /**
514+ * @return array
515+ */
516+ public function getResults ()
517+ {
518+ return array (
519+ 'Customers ' => sizeof ($ this ->_anonymizedCustomerIds ),
520+ 'Customers Addresses ' => sizeof ($ this ->_anonymizedCustomerAddressIds ),
521+ 'Orders ' => sizeof ($ this ->_anonymizedOrderIds ),
522+ 'Order Addresses ' => sizeof ($ this ->_anonymizedOrderAddressIds ),
523+ 'Quotes ' => sizeof ($ this ->_anonymizedQuoteIds ),
524+ 'Quote Addresses ' => sizeof ($ this ->_anonymizedQuoteAddressIds ),
525+ 'Newsletter Subscribers ' => sizeof ($ this ->_anonymizedNewsletterSubscriberIds ),
526+ );
527+ }
525528}
0 commit comments