Changeset 15392 for trunk/modules
- Timestamp:
- 07/27/11 23:05:15 (10 months ago)
- Location:
- trunk/modules/boonex/store/classes
- Files:
-
- 2 edited
-
BxStoreDb.php (modified) (2 diffs)
-
BxStoreModule.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/boonex/store/classes/BxStoreDb.php
r15211 r15392 45 45 $this->_sFieldFeatured = 'featured'; 46 46 $this->_sFieldCreated = 'created'; 47 $this->_sTableFans = ''; 48 $this->_sTableAdmins = ''; 47 49 $this->_sFieldAllowViewTo = 'allow_view_product_to'; 48 50 } … … 146 148 } 147 149 148 function getBroadcastRecipients ($iProductId) { 150 function removeCustomersFromAllEntries ($iProfileId) { 151 $iProfileId = (int)$iProfileId; 152 if (!$iProfileId) 153 return false; 154 155 return $this->query ("DELETE FROM `" . $this->_sPrefix . "customers` WHERE `client_id` = " . $iProfileId); 156 } 157 158 function getBroadcastRecipients ($iProductId) { 149 159 return $this->getAll ("SELECT DISTINCT `p`.`ID`, `p`.`Email` FROM `" . $this->_sPrefix . "customers` AS `tc` INNER JOIN `" . $this->_sPrefix . $this->_sTableMediaPrefix . "files` AS `tf` ON (`tf`.`id` = `tc`.`file_id` AND `tf`.`entry_id` = '$iProductId') INNER JOIN `Profiles` as `p` ON (`p`.`ID` = `tc`.`client_id` AND `p`.`Status` = 'Active')"); 150 160 } -
trunk/modules/boonex/store/classes/BxStoreModule.php
r15211 r15392 409 409 function serviceUnregisterCartItem($iClientId, $iSellerId, $iItemId, $iItemCount, $sOrderId) { 410 410 return $this->_oDb->unregisterCustomer ($iClientId, $iItemId, $sOrderId); 411 } 412 413 function serviceDeleteProfileData ($iProfileId) { 414 parent::serviceDeleteProfileData($iProfileId); 415 416 // delete from list of customers 417 $this->_oDb->removeCustomersFromAllEntries ($iProfileId); 411 418 } 412 419
Note: See TracChangeset
for help on using the changeset viewer.