Class auction_post

Description

Auction posting class to perform the majority of printing and displaying of filters and other form elements for service and product auctions.

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

Located in /api/class.auction_post.inc.php (line 29)

auction
   |
   --auction_post
Method Summary
string day ([string $day = ''], [string $fieldname = 'day'], [string $idname = 'day'], [boolean $showtitle = false])
string duration ([string $fieldname = 'duration'], [ $disabled = false])
string fetch_email_invites ([integer $projectid = 0])
string fetch_member_invites ([integer $projectid = 0])
integer get_filters_quantity ([integer $cid = 0])
string handle_revision_log_changes ([string $cattype = 'service'], [string $appendextra = ''])
string hour ([string $hour = ''], [string $fieldname = 'hour'], [string $idname = 'hour'], [boolean $showtitle = false])
string min ([string $min = ''], [string $fieldname = 'min'], [string $idname = 'min'], [boolean $showtitle = false])
string month ([string $month = ''], [string $fieldname = 'month'], [string $idname = 'month'], [boolean $showtitle = false])
string print_additional_info_input ([string $fieldname = 'additional_info'], [ $disabled = false])
string print_bid_amount_type ([integer $cid = 0], [string $cattype = ''])
string print_bid_filters ()
string print_bid_privacy ([string $fieldname = 'bid_details'], [ $disabled = false])
string print_budget_insertion_fees ([integer $cid = 0])
string print_budget_logic_type ([integer $cid = 0], [string $cattype = 'service'], [bool $dojs = 1], [bool $showinsertionfees = false])
string print_budget_logic_type_js ([integer $cid = 0], [string $cattype = 'service'], [integer $selected = ''])
string print_budget_logic_type_links ([integer $cid = 0], [string $cattype = 'service'], [integer $selected = ''])
string print_duration_logic ([string $fieldname = 'duration_unit'], [ $disabled = false])
string print_escrow_filter ([integer $cid = 0], [string $cattype = ''], [string $feetype = ''], [ $disabled = false])
string print_event_type_filter ([ $cattype = ''], [ $fieldname = 'project_details'], [ $disabled = false])
string print_extend_auction ([string $fieldname = 'extend'])
string print_final_value_fees ([integer $cid = 0], [string $cattype = 'service'], [string $bidamounttype = ''])
string print_insertion_fees ([integer $cid = 0], [string $cattype = ''])
string print_invitation_controls ([string $cattype = 'service'])
string print_js ([ $cattype = ''], [ $isbulkupload = false])
string print_keywords_input ([string $fieldname = 'keywords'], [ $disabled = false])
string print_listing_enhancements ([string $cattype = 'service'], [ $extra = ''])
string print_payment_method ([ $fieldname = 'paymethod'], [ $id = 'paymethod'], [ $checkboxes = false])
string print_payment_method_options ([integer $selected = ''], [string $cbfieldname = ''], [string $checkboxes = false])
string print_profile_bid_filters ([integer $cid = 0], [string $displaymode = ''], [string $catype = 'service'], [integer $projectid = 0])
string print_public_board ([ $fieldname = 'filter_publicboard'], [ $disabled = false])
string print_return_policy ([ $disabled = false])
string print_selling_format_logic ([ $disabled = false])
nothing print_shipping_logic ([string $disabled = false], string 1)
string print_shipping_partners ([ $fieldname = 'shipperid'], [ $hideshipperid = false], [ $domestic = true], [ $international = false], [ $shipperid = 0])
string print_ship_handling_logic ([boolean $disabled = false])
string print_title_input ([string $fieldname = 'project_title'], [ $disabled = false])
string print_video_description_input ([string $fieldname = 'description_videourl'], [ $disabled = false])
null process_custom_profile_questions ([array $custom = array()], [integer $projectid = 0], [string $userid = 0], [ $mode = ''])
null process_custom_questions ([array $custom = array()], [integer $projectid = 0], [string $mode = ''])
string sec ([string $sec = ''], [string $fieldname = 'sec'], [string $idname = 'sec'], [boolean $showtitle = false])
string year ([string $year = ''], [string $fieldname = 'year'], [string $idname = 'year'], [boolean $showtitle = false], [boolean $allownextyear = false])
Methods
day (line 2699)

Function to print a day pulldown menu.

  • return: HTML representation of the day pulldown menu
string day ([string $day = ''], [string $fieldname = 'day'], [string $idname = 'day'], [boolean $showtitle = false])
  • string $day: selected day value (optional)
  • string $fieldname: fieldname
  • string $idname: id name
  • boolean $showtitle: show the first option in pulldown as "day" phrase?
duration (line 1164)

Function to print a duration pulldown menu.

  • return: HTML representation of the duration pulldown menu
string duration ([string $fieldname = 'duration'], [ $disabled = false])
  • string $fieldname: selected duration value (optional)
  • $disabled
fetch_email_invites (line 2540)

Function to obtain the email invitation email list line by line using \n as line seperator.

  • return: line by line email list
string fetch_email_invites ([integer $projectid = 0])
  • integer $projectid: auction id
fetch_member_invites (line 2571)

Function to obtain the username invitation list line by line using \n as line seperator.

  • return: line by line username list
string fetch_member_invites ([integer $projectid = 0])
  • integer $projectid: auction id
get_filters_quantity (line 3951)

Function to fetch the number of filters available for displaying within the auction posting interface.

  • return: return the count amount
integer get_filters_quantity ([integer $cid = 0])
  • integer $cid: category id
handle_revision_log_changes (line 4471)

Function to handle the revision log changes made to an auction event

string handle_revision_log_changes ([string $cattype = 'service'], [string $appendextra = ''])
  • string $cattype: category type (service or product)
  • string $appendextra: extra data to append
hour (line 2744)

Function to print an hour pulldown menu.

  • return: HTML representation of the hour pulldown menu
string hour ([string $hour = ''], [string $fieldname = 'hour'], [string $idname = 'hour'], [boolean $showtitle = false])
  • string $hour: selected hour value (optional)
  • string $fieldname: fieldname
  • string $idname: id name
  • boolean $showtitle: show the first option in pulldown as "hour" phrase?
min (line 2788)

Function to print a minute pulldown menu.

  • return: HTML representation of the minute pulldown menu
string min ([string $min = ''], [string $fieldname = 'min'], [string $idname = 'min'], [boolean $showtitle = false])
  • string $min: selected minute value (optional)
  • string $fieldname: fieldname
  • string $idname: id name
  • boolean $showtitle: show the first option in pulldown as "min" phrase?
month (line 2655)

Function to print a month pulldown menu.

  • return: HTML representation of the month pulldown menu
string month ([string $month = ''], [string $fieldname = 'month'], [string $idname = 'month'], [boolean $showtitle = false])
  • string $month: selected month value (optional)
  • string $fieldname: fieldname
  • string $idname: id name
  • boolean $showtitle: show the first option in pulldown as "month" phrase?
print_additional_info_input (line 1596)

Function to print the auction's additional information box

  • return: HTML representation of the additional info textarea
string print_additional_info_input ([string $fieldname = 'additional_info'], [ $disabled = false])
  • string $fieldname: form fieldname
  • $disabled
print_auction_preview (line 3979)

Function to print the auction preview

string print_auction_preview ()
print_bid_amount_type (line 412)

Function to print the available bid amount types for the auction poster to select based on the admin defined bid types for this particular category.

  • return: HTML representation of the bid amount type form elements
string print_bid_amount_type ([integer $cid = 0], [string $cattype = ''])
  • integer $cid: category id
  • string $cattype: category type
print_bid_filters (line 37)

Function to print bid filters controlled via radio button and multiple selective options during the post of a new service or product auction.

  • return: HTML representation of the bid filters permitted
string print_bid_filters ()
print_bid_privacy (line 1636)

Function to print a the bid privacy form options (open, sealed, blind or full)

  • return: HTML representation of the bid privacy radio options
string print_bid_privacy ([string $fieldname = 'bid_details'], [ $disabled = false])
  • string $fieldname: selected duration value (optional)
  • $disabled
print_budget_insertion_fees (line 2108)

Function to print any applicable service budget insertion fees during the posting of an auction.

  • return: HTML representation of the insertion fee table
string print_budget_insertion_fees ([integer $cid = 0])
  • integer $cid: category id
print_budget_logic_type (line 468)

Function to print the budget logic selectable options. For example, the poster could select "I do not wish to disclose my budget" or he/she can select the appropriate budget range to select.

Additionally, admins can assign "insertion fees" to any budget group. Insertion fees will also be shown (their value) if they have been assigned to this category (based on the level of budget). EX:

  • Small Project ($100-$500) - Insertion Fee: $3.00
  • Medium Project ($500-$1000) - Insertion Fee: $5.00
etc.

  • return: HTML representation of the bid amount type form elements
string print_budget_logic_type ([integer $cid = 0], [string $cattype = 'service'], [bool $dojs = 1], [bool $showinsertionfees = false])
  • integer $cid: category id
  • string $cattype: category type (service)
  • bool $dojs: do javascript (default true)
  • bool $showinsertionfees: show insertion fees (default false)
print_budget_logic_type_js (line 629)

Function to print the budget javascript details for the yahoo slider widget

  • return: array of budgets for yahoo slider widget
string print_budget_logic_type_js ([integer $cid = 0], [string $cattype = 'service'], [integer $selected = ''])
  • integer $cid: category id
  • string $cattype: category type (service/product)
  • integer $selected: selected budget id
print_budget_logic_type_links (line 533)

Function to print the budget links

  • return: HTML representation of the budget as a link
string print_budget_logic_type_links ([integer $cid = 0], [string $cattype = 'service'], [integer $selected = ''])
  • integer $cid: category id
  • string $cattype: category type (service/product)
  • integer $selected: selected budget id
print_duration_logic (line 1204)

Function to print a duration logic menu.

  • return: HTML representation of the duration logic form elements
string print_duration_logic ([string $fieldname = 'duration_unit'], [ $disabled = false])
  • string $fieldname: selected duration value (optional)
  • $disabled
print_escrow_filter (line 706)

Function to print the escrow filter option so that the auction poster can enable or disable escrow to secure any funds for mentioned services or products during the transaction/delivery process.

  • return: HTML representation of the filter form elements
string print_escrow_filter ([integer $cid = 0], [string $cattype = ''], [string $feetype = ''], [ $disabled = false])
  • integer $cid: category id
  • string $cattype: category type (service)
  • string $feetype: fee type (service, servicebuyer, serviceprovider, productmerchant, productbuyer)
  • $disabled
print_event_type_filter (line 939)

Function to print the auction event type form filtering options.

  • return: HTML representation of the payment method form elements
string print_event_type_filter ([ $cattype = ''], [ $fieldname = 'project_details'], [ $disabled = false])
  • $cattype
  • $fieldname
  • $disabled
print_extend_auction (line 1565)

Function to print the auction's extend features after the listing was posted (update mode)

  • return: HTML representation of the keywords input
string print_extend_auction ([string $fieldname = 'extend'])
  • string $fieldname: form fieldname
print_final_value_fees (line 2210)

Function to print final value fees formatted in a html table. This function takes into consideration if the viewing user is exempt from final value fees.

  • return: Returns category id's in comma separate values (ie: 1,3,4,6)
string print_final_value_fees ([integer $cid = 0], [string $cattype = 'service'], [string $bidamounttype = ''])
  • integer $cid: category id number
  • string $cattype: category type (service/product)
  • string $bidamounttype: bid amount type
print_insertion_fees (line 1947)

Function to print any applicable insertion fees during the posting of an auction. This function takes into consideration if the viewing user is exempt from insertion fees.

  • return: HTML representation of the insertion fee table
string print_insertion_fees ([integer $cid = 0], [string $cattype = ''])
  • integer $cid: category id
  • string $cattype: category type (service/product)
print_invitation_controls (line 1271)

Function to print the invitation boxes and special javascript to let users add more than one row for multiple email addresses

  • return: HTML representation of the bid privacy radio options
string print_invitation_controls ([string $cattype = 'service'])
  • string $cattype
print_js (line 3994)

Function to print the javascript on this form

string print_js ([ $cattype = ''], [ $isbulkupload = false])
  • $cattype
  • $isbulkupload
print_keywords_input (line 1495)

Function to print the auction's keywords / tags used for search engine optimization and other functions like displaying ads relevant to the auctions or categories

  • return: HTML representation of the keywords input
string print_keywords_input ([string $fieldname = 'keywords'], [ $disabled = false])
  • string $fieldname: selected duration value (optional)
  • $disabled
print_listing_enhancements (line 1742)

Function to print the available auction enhancement upsell options like bold, highlight background, featured, etc.

  • return: HTML representation of the listing enhancement form options
string print_listing_enhancements ([string $cattype = 'service'], [ $extra = ''])
  • string $cattype: category type (service or product)
  • $extra
print_payment_method (line 910)

Function to print the payment method input field to allow the poster to enter delivery instructions.

  • return: HTML representation of the payment method form elements
string print_payment_method ([ $fieldname = 'paymethod'], [ $id = 'paymethod'], [ $checkboxes = false])
  • $fieldname
  • $id
  • $checkboxes
print_payment_method_options (line 854)

Function to print the payment method options for a select box

  • return: HTML representation of the pulldown <option>
string print_payment_method_options ([integer $selected = ''], [string $cbfieldname = ''], [string $checkboxes = false])
  • integer $selected: selected option
  • string $cbfieldname: checkbox fieldname
  • string $checkboxes: show checkboxes for output? (default false)
print_price_logic_type_js (line 374)

Function to print the hourly rate price javascript details for the yahoo slider widget

void print_price_logic_type_js ()
print_profile_bid_filters (line 204)

Function to print profile bid filters controlled via radio button and multiple selective options during the post of a new service or product auction such as ranges (from / to values) and pulldown menu options (including multiple choice selection values).

This function is called in the advanced search menu as well as when a user is posting a new listing.

  • return: HTML representation of the bid filters permitted
string print_profile_bid_filters ([integer $cid = 0], [string $displaymode = ''], [string $catype = 'service'], [integer $projectid = 0])
  • integer $cid: category id
  • string $displaymode: display mode (input, preview, output)
  • string $catype: category type (service)
  • integer $projectid: project id (for updating listing)
print_public_board (line 1708)

Function to print the public message board visibility or hidden options for the auction poster.

  • return: HTML representation of the public board form elements
string print_public_board ([ $fieldname = 'filter_publicboard'], [ $disabled = false])
  • $fieldname
  • $disabled
print_return_policy (line 3716)

Function to print the list of shipping partners

string print_return_policy ([ $disabled = false])
  • $disabled
print_selling_format_logic (line 2871)

Function to print the selling format logic for a product auction.

  • return: HTML representation of the selling format selection menus
string print_selling_format_logic ([ $disabled = false])
  • $disabled
print_shipping_logic (line 3203)

Function to print the shipping logic within a product auction.

nothing print_shipping_logic ([string $disabled = false], string 1)
  • string 1
  • string $disabled
print_shipping_partners (line 3896)

Function to print the list of shipping partners

string print_shipping_partners ([ $fieldname = 'shipperid'], [ $hideshipperid = false], [ $domestic = true], [ $international = false], [ $shipperid = 0])
  • $fieldname
  • $hideshipperid
  • $domestic
  • $international
  • $shipperid
print_ship_handling_logic (line 3685)

Function to print the shipping and handling duration and length in days it will take the seller to ship the item

  • return: HTML representation of the shipping and handling form elements
string print_ship_handling_logic ([boolean $disabled = false])
  • boolean $disabled: disabled? (default false)
print_title_input (line 1518)

Function to print the auction's title input

  • return: HTML representation of the keywords input
string print_title_input ([string $fieldname = 'project_title'], [ $disabled = false])
  • string $fieldname: form fieldname
  • $disabled
print_video_description_input (line 1543)

Function to print the auction's title input

  • return: HTML representation of the keywords input
string print_video_description_input ([string $fieldname = 'description_videourl'], [ $disabled = false])
  • string $fieldname: form fieldname
  • $disabled
process_custom_profile_questions (line 2475)

Function to process the custom auction profile filter questions

null process_custom_profile_questions ([array $custom = array()], [integer $projectid = 0], [string $userid = 0], [ $mode = ''])
  • array $custom: custom array
  • integer $projectid: project id
  • string $userid: category mode (service or product)
  • $mode
process_custom_questions (line 2372)

Function to process the custom auction questions

null process_custom_questions ([array $custom = array()], [integer $projectid = 0], [string $mode = ''])
  • array $custom: custom array
  • integer $projectid: project id
  • string $mode: category mode (service or product)
sec (line 2832)

Function to print a seconds pulldown menu.

  • return: HTML representation of the seconds pulldown menu
string sec ([string $sec = ''], [string $fieldname = 'sec'], [string $idname = 'sec'], [boolean $showtitle = false])
  • string $sec: selected seconds value (optional)
  • string $fieldname: fieldname
  • string $idname: id name
  • boolean $showtitle: show the first option in pulldown as "sec" phrase?
year (line 2606)

Function to print a year pulldown menu.

  • return: HTML representation of the year pulldown menu
string year ([string $year = ''], [string $fieldname = 'year'], [string $idname = 'year'], [boolean $showtitle = false], [boolean $allownextyear = false])
  • string $year: selected year value (optional)
  • string $fieldname: fieldname
  • string $idname: id name
  • boolean $showtitle: show the first option in pulldown as "year" phrase?
  • boolean $allownextyear: show the next year in the pulldown (default false which only shows current year)

Inherited Methods

Inherited From auction

auction::archive_expired_auctions()
auction::auction_icons()
auction::auction_timeleft()
auction::calculate_insertion_fee_in_budget_group()
auction::calculate_time_left()
auction::category_listing_count_fixer()
auction::construct_bidamounttype()
auction::construct_bidamounttype_pulldown()
auction::construct_budget_overview()
auction::construct_budget_pulldown()
auction::construct_invoice_icon()
auction::construct_measure()
auction::construct_mediashare_icon()
auction::construct_pmb_icon()
auction::expire_featured_status_listings()
auction::fetch_auction_type()
auction::fetch_auction_winner()
auction::fetch_ending_soon_auctions()
auction::fetch_featured_auctions()
auction::fetch_latest_auctions()
auction::fetch_purchase_now()
auction::fetch_recently_viewed_auctions()
auction::fetch_reserve_price()
auction::fetch_reserve_price_bit()
auction::fetch_rfp_budget()
auction::fetch_transfer_ownership()
auction::fetch_users_other_listings()
auction::relist_product_auction()
auction::relist_service_auction()
auction::remove_answers_from_deleted_listings()
auction::remove_photos_from_deleted_listings()
auction::remove_shipping_regions_from_deleted_listings()
auction::rewrite_photos()

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