HomeHelpTrac

Changeset 15392 for trunk/modules


Ignore:
Timestamp:
07/27/11 23:05:15 (10 months ago)
Author:
Alexander Trofimov
Message:

Ticket #2572

Location:
trunk/modules/boonex/store/classes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/boonex/store/classes/BxStoreDb.php

    r15211 r15392  
    4545        $this->_sFieldFeatured = 'featured'; 
    4646        $this->_sFieldCreated = 'created'; 
     47        $this->_sTableFans = ''; 
     48        $this->_sTableAdmins = ''; 
    4749        $this->_sFieldAllowViewTo = 'allow_view_product_to'; 
    4850    } 
     
    146148    } 
    147149 
    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) { 
    149159        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')"); 
    150160    } 
  • trunk/modules/boonex/store/classes/BxStoreModule.php

    r15211 r15392  
    409409    function serviceUnregisterCartItem($iClientId, $iSellerId, $iItemId, $iItemCount, $sOrderId) { 
    410410        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); 
    411418    } 
    412419 
Note: See TracChangeset for help on using the changeset viewer.