Class bid_service

Description

Function to handle inserting a service reverse auction bid

  • author: ILance
  • version: $Revision: 1.0.0 $

Located in /api/class.bid_service.inc.php (line 28)

bid
   |
   --bid_service
Method Summary
void placebid ([integer $bidderid = 0], [string $proposal = ''], [integer $lowbidnotify = 0], [integer $lasthournotify = 0], [integer $subscribed = 0], [integer $id = 0], [string $project_user_id = 0], [integer $bidamount = 0], [string $estimate_days = 0], [string $bidstate = ''], [string $bidamounttype = ''], [array $bidcustom = ''], [string $bidfieldanswers = ''], [boolean $paymethod = ''], [ $showerrormessages = true])
Methods
placebid (line 52)

Function for inserting a new service bid proposal on a service auction event.

If a service provider has already placed a bid on this particular project this function will update that previous bid to the new amount specified. Additionally, if the previous bid was declined this new bid will be inserted vs being updated.

void placebid ([integer $bidderid = 0], [string $proposal = ''], [integer $lowbidnotify = 0], [integer $lasthournotify = 0], [integer $subscribed = 0], [integer $id = 0], [string $project_user_id = 0], [integer $bidamount = 0], [string $estimate_days = 0], [string $bidstate = ''], [string $bidamounttype = ''], [array $bidcustom = ''], [string $bidfieldanswers = ''], [boolean $paymethod = ''], [ $showerrormessages = true])
  • integer $bidderid: bidder id
  • string $proposal: bid proposal message
  • integer $lowbidnotify: low bid notify filter (optional)
  • integer $lasthournotify: last hour notify filter (optional)
  • integer $subscribed: project id
  • integer $id: project owner id
  • string $project_user_id: bid amount
  • integer $bidamount: estimated number of days
  • string $estimate_days: bid state status
  • string $bidstate: bid amount type
  • string $bidamounttype: custom argument
  • array $bidcustom: bid field answers
  • string $bidfieldanswers: payment method chosen by the provider during bid
  • boolean $paymethod: show error messages (disable if you want to call this function via API to hide html error messages; this will then only return true or false) - default true
  • $showerrormessages

Inherited Methods

Inherited From bid

bid::bid_filter_checkup()
bid::construct_bid_details_pulldown()
bid::fetch_auction_win_amount()
bid::fetch_auction_win_type()
bid::fetch_average_bid()
bid::fetch_average_lowest_highest_bid_amounts()
bid::fetch_awarded_bid_amount()
bid::fetch_bid_amount()
bid::fetch_declined_bids()
bid::fetch_highest_bid()
bid::fetch_highest_bidder()
bid::fetch_lowest_bidder_info()
bid::fetch_minimum_bid()
bid::fetch_retracted_bids()
bid::fetch_second_highest_bid()
bid::fetch_shortlisted_bids()
bid::fetch_transaction_status()
bid::has_bids()
bid::has_highest_bidder()
bid::has_winning_bidder()
bid::is_highest_bidder()
bid::is_outbid()
bid::is_valid_bid_range()
bid::is_winner()
bid::product_bid_filter_checkup()
bid::set_bid_counters()
bid::user_can_bid()
bid::wait_approval_unaward_cron()

Documentation generated on Mon, 08 Aug 2011 17:40:51 +0200 by phpDocumentor 1.4.1