Class bid_fields

Description

Class to handle the auction posting interface for any type of auction supported in ILance.

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

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

bid
   |
   --bid_fields
Method Summary
boolean can_display_bid_field ([integer $fieldid = 0], [integer $cid = 0])
string construct_bid_fields ([integer $cid = 0], [integer $projectid = 0], [string $mode = ''], [string $type = ''], [integer $bidid = 0], [boolean $separator = true])
string fetch_answer_count_submitted ([integer $fieldid = 0])
string fetch_categories_assigned ([integer $fieldid = 0], [boolean $countonly = true])
string print_bid_field_checkboxes ([integer $cid = 0], [string $slng = 'eng'])
string print_bid_field_count_in_category ([integer $cid = 0])
null process_custom_bid_fields ([array $custom = array()], [integer $projectid = 0], [string $bidid = 0], [ $id = 0])
Methods
can_display_bid_field (line 949)

Function to determine if a field can be displayed for the viewing category

  • return: Returns true or false
boolean can_display_bid_field ([integer $fieldid = 0], [integer $cid = 0])
  • integer $fieldid: field id
  • integer $cid: category id
construct_bid_fields (line 42)

Function to handle all answerable auction questions within the posting system.

  • return: HTML representation of the custom auction questions
string construct_bid_fields ([integer $cid = 0], [integer $projectid = 0], [string $mode = ''], [string $type = ''], [integer $bidid = 0], [boolean $separator = true])
  • integer $cid: category id
  • integer $projectid: project id
  • string $mode: display mode (input, preview, update, output1)
  • string $type: category type (service or product)
  • integer $bidid: bid id
  • boolean $separator: force separator (<hr> tag)? (default true)
fetch_answer_count_submitted (line 1160)

Function to fetch the count of all answers submitted for a particular bid field id

  • return: Returns HTML representation of a count
string fetch_answer_count_submitted ([integer $fieldid = 0])
  • integer $fieldid: bid field id
fetch_categories_assigned (line 1111)

Function to print out how many categories are currently associated with the calling bid field id

  • return: Returns HTML representation of a count
string fetch_categories_assigned ([integer $fieldid = 0], [boolean $countonly = true])
  • integer $fieldid: bid field id
  • boolean $countonly: result in countonly? (default true)
print_bid_field_checkboxes (line 1049)

Function to print all bid fields and checkboxes for updating and adding new categories in the AdminCP

  • return: Returns HTML representation of checkboxes as bid fields selectors
string print_bid_field_checkboxes ([integer $cid = 0], [string $slng = 'eng'])
  • integer $cid: category id
  • string $slng: short language identifier (default eng)
print_bid_field_count_in_category (line 1187)

Function to fetch the count of all bid fields within a particular category

  • return: Returns HTML representation of a count
string print_bid_field_count_in_category ([integer $cid = 0])
  • integer $cid: category id
process_custom_bid_fields (line 974)

Function to process the custom auction questions to be saved in the database

null process_custom_bid_fields ([array $custom = array()], [integer $projectid = 0], [string $bidid = 0], [ $id = 0])
  • array $custom: custom array
  • integer $projectid: project id
  • string $bidid: category mode (service or product)
  • $id

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:50 +0200 by phpDocumentor 1.4.1