function removeBidFulfillment($lPackageID, $bFulfillmentOnly) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- if (!bTestForURLHack('showAuctions')) { return; } $this->load->helper('dl_util/verify_id'); verifyID($this, $lPackageID, 'package ID'); $this->load->model('auctions/mpackages', 'cPackages'); $this->load->model('img_docs/mimage_doc', 'clsImgDoc'); $this->load->helper('dl_util/link_auction'); $this->load->helper('auctions/auction'); $this->cPackages->loadPackageByPacID($lPackageID); $package =& $this->cPackages->packages[0]; // if associated with a donation, remove gift record if (!is_null($package->lGiftID)) { $this->load->model('donations/mdonations', 'clsGifts'); $this->load->model('util/mrecycle_bin', 'clsRecycle'); $this->load->model('personalization/muser_fields', 'clsUF'); $this->clsGifts->retireSingleGift($package->lGiftID, null); } if (!$bFulfillmentOnly) { $this->cPackages->removeBid($lPackageID); } redirect_AuctionPackage($lPackageID); }
function redirectViaContextType($enumType, $lForeignID) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- switch ($enumType) { case CENUM_CONTEXT_AUCTION: redirect_Auction($lForeignID); break; case CENUM_CONTEXT_AUCTIONITEM: redirect_AuctionItem($lForeignID); break; case CENUM_CONTEXT_AUCTIONPACKAGE: redirect_AuctionPackage($lForeignID); break; case CENUM_CONTEXT_BIZ: redirect_Biz($lForeignID); break; case CENUM_CONTEXT_CLIENT: redirect_Client($lForeignID); break; case CENUM_CONTEXT_GIFT: redirect_Gift($lForeignID); break; case CENUM_CONTEXT_GRANTPROVIDER: redirect_GrantProvider($lForeignID); break; case CENUM_CONTEXT_PEOPLE: redirect_People($lForeignID); break; case CENUM_CONTEXT_SPONSORSHIP: redirect_SponsorshipRecord($lForeignID); break; case CENUM_CONTEXT_USER: redirect_User($lForeignID); break; case CENUM_CONTEXT_VOLUNTEER: redirect_VolRec($lForeignID); break; case CENUM_CONTEXT_LOCATION: redirect_ClientLocRec($lForeignID); break; case CENUM_CONTEXT_ORGANIZATION: redirect_Organization($lForeignID); break; case CENUM_CONTEXT_STAFF: redirect_User($lForeignID); break; case CENUM_CONTEXT_INVITEM: redirect_InventoryItem($lForeignID); break; case CENUM_CONTEXT_GENERIC: default: screamForHelp($enumType . ': Switch type not implemented</b><br>error on <b>line:</b> ' . __LINE__ . '<br><b>file:</b> ' . __FILE__ . '<br><b>function:</b> ' . __FUNCTION__); break; } }