Exemple #1
0
 private static function _activateListingBySID($listingSid)
 {
     if (SJB_ListingDBManager::activateListingBySID($listingSid)) {
         if (SJB_ListingManager::setListingExpirationDateBySid($listingSid)) {
             SJB_ListingManager::deleteListingIDFromSendedNotificationsTable($listingSid);
             SJB_Cache::getInstance()->clean('matchingAnyTag', array(SJB_Cache::TAG_LISTINGS));
             SJB_Event::dispatch('listingActivated', $listingSid);
             return true;
         }
     }
     return false;
 }