void
archive_expired_auctions
()
Function to print auction icons based on the selected filters of the associated auction id.
string
auction_icons
([array $res = array()])
-
array
$res: auction result set
Function to calculate the exact time left based on a few date and time parameters and prints text or flash countdown applets.
This function is optimized to prevent a new call to the database.
string
auction_timeleft
([integer $projectid = 0], [string $class = 'alt1'], [string $valign = 'center'], [boolean $timeintext = 0], [boolean $showlivebids = 0], [boolean $forcenoflash = 0], [boolean $showfullformat = false], [string $date_starts = ''], [string $mytime = ''], [string $starttime = ''])
-
integer
$projectid: project id
-
string
$class: class background color (default alt1)
-
string
$valign: vert. alignment (default center)
-
boolean
$timeintext: show the time left in text? (true or false) (default false)
-
boolean
$showlivebids: show live bids placed in applet? (true or false) (default false)
-
boolean
$forcenoflash: force no flash applet (true or false) (default false)
-
boolean
$showfullformat: show the full timeleft string? (default false) ie: 2d, 1h, 3m, 5+ vs. 2d, 1h+
-
string
$date_starts: date starts (datetime) format
-
string
$mytime: timestamp of date end - now
-
string
$starttime: timestamp of start date - now
Function to fetch the insertion fee amount associated within a particular budget group
string
calculate_insertion_fee_in_budget_group
([string $groupname = ''])
-
string
$groupname: insertion group name
Function to calculate the exact time left based on a few date and time parameters.
string
calculate_time_left
(integer $datestarts, integer $starttime, integer $mytime)
-
integer
$datestarts: date starts
-
integer
$starttime: start time
-
integer
$mytime: time now
Function to handle the verification of auction counters in the category system. This function runs daily within cron.dailyrfp.php
string
category_listing_count_fixer
()
Function to print the bid amount types overview.
string
construct_bidamounttype
([string $selected = ''])
-
string
$selected: selected bid amount type (optional)
Function to print the bid amount types pulldown menu.
string
construct_bidamounttype_pulldown
([integer $selected = ''], [bool $disable = 0], [bool $dojs = 1], [integer $cid = ''], [string $cattype = ''])
-
integer
$selected: selected bid amount type value
-
bool
$disable: disable the bid amount type pulldown menu (true or false)
-
bool
$dojs: enable javascript (true or false)
-
integer
$cid: selected category id (optional)
-
string
$cattype: category type (service / product)
Function to print the budget overview details
string
construct_budget_overview
([integer $cid = 0], [integer $selected = 0], [boolean $notext = false], [boolean $nobrackets = false], [boolean $forcenocategory = false])
-
integer
$cid: category id
-
integer
$selected: selected id (optional)
-
boolean
$notext: don't show range title (default false)
-
boolean
$nobrackets: don't show brackets (default false)
-
boolean
$forcenocategory: force function to use raw budget id vs. the budget in place for the actual category. This is required for the search system if subcategories are also being called
Function to print the budget pulldown details
string
construct_budget_pulldown
(integer $cid, [integer $selected = ''], [string $fieldname = 'filtered_budgetid'], [bool $dojs = 1], [bool $showselect = 0], [bool $showinsertionfees = 0])
-
integer
$cid: category id
-
integer
$selected: selected id (optional)
-
string
$fieldname: field name to use
-
bool
$dojs: are we enabling javascript (true or false)
-
bool
$showselect: will we show the "please select" option as well?
-
bool
$showinsertionfees: will we show insertion fees within the pulldown menu that is generated?
Function to create the invoice icon to be clicked so providers can generate new transaction to their buyers.
string
construct_invoice_icon
([integer $sellerid = 0], [integer $buyerid = 0], [integer $projectid = 0])
-
integer
$sellerid: seller id
-
integer
$buyerid: buyer id
-
integer
$projectid: project id
Function to print the phrased measure values of the selected bid amount types.
string
construct_measure
([string $selected = ''])
-
string
$selected: selected bid amount type (optional)
Function to create the mediashare (workspace) icon.
string
construct_mediashare_icon
([integer $buyerid = 0], [integer $sellerid = 0], [integer $projectid = 0], [boolean $active = true])
-
integer
$buyerid: buyer id
-
integer
$sellerid: seller id
-
integer
$projectid: project id
-
boolean
$active: force if icon is active or disabled (active by default)
Function to create the private message board icons within various sections of the client control panel.
string
construct_pmb_icon
([integer $fromid = 0], [integer $toid = 0], [integer $projectid = 0], [boolean $adminmode = 0], [boolean $showicon = false])
-
integer
$fromid: from user id
-
integer
$toid: to user id
-
integer
$projectid: project id
-
boolean
$adminmode: force admin mode (true or false)
-
boolean
$showicon: show icon vs text? (default false)
Function to handle the expiry of featured status listings
string
expire_featured_status_listings
()
Function to fetch the type (project state) of an auction.
string
fetch_auction_type
([integer $projectid = 0])
-
integer
$projectid: auction id
Function to fetch a clickable link to the auction winner for a particular auction id.
integer
fetch_auction_winner
([integer $projectid = 0])
-
integer
$projectid: project id
Function to return template array data for recently viewed auctions stored in the users cookie.
Function now takes into consideration if a member is not active (don't display the listing).
string
fetch_ending_soon_auctions
([string $auctiontype = ''], [integer $columns = 5], [integer $rows = 1], [integer $cid = 0], [string $keywords = ''], [boolean $forcenoflash = false])
-
string
$auctiontype: auction type
-
integer
$columns: auction result columns (default 5)
-
integer
$rows: auction result rows (default 1)
-
integer
$cid: (optional) category id to pull listings from if specified
-
string
$keywords: (optional) keywords to search (titles & descriptions) when pulling listing results if specified
-
boolean
$forcenoflash: force no-flash for auction timers (default no force)
Function to return template array data for featured auctions in picture grid mode.
This function also take lowest unique bidding into account when displaying number of bids
Function now takes into consideration if a member is not active (don't display the listing).
string
fetch_featured_auctions
([string $auctiontype = ''], [integer $columns = 4], [integer $rows = 1], [integer $cid = 0], [string $keywords = ''], [boolean $forcenoflash = false], [array $excludelist = array()])
-
string
$auctiontype: auction type
-
integer
$columns: number of columns to display (default 4)
-
integer
$rows: number of rows to display (default 1)
-
integer
$cid: (optional) category id to pull listings from if specified
-
string
$keywords: (optional) keywords to search (titles & descriptions) when pulling listing results if specified
-
boolean
$forcenoflash: force no-flash for auction timers (default no force)
-
array
$excludelist: excluded project ids (to prevent search results showing both featured and regular listings simultaneously)
Function to return template array data for featured auctions in picture grid mode.
This function also take lowest unique bidding into account when displaying number of bids
Function now takes into consideration if a member is not active (don't display the listing).
string
fetch_latest_auctions
([string $auctiontype = ''], [integer $columns = 5], [integer $rows = 1], [integer $cid = 0], [string $keywords = ''], [boolean $forcenoflash = false])
-
string
$auctiontype: auction type
-
integer
$columns: auction limit (default 5)
-
integer
$rows: auction rows limit (default 1)
-
integer
$cid: (optional) category id to pull listings from if specified
-
string
$keywords: (optional) keywords to search (titles & descriptions) when pulling listing results if specified
-
boolean
$forcenoflash: force no-flash for auction timers (default no force)
Function to fetch the current purchase now price of a particular auction id.
string
fetch_purchase_now
([integer $projectid = 0])
-
integer
$projectid: project id
Function to return template array data for recently viewed auctions stored in the users cookie.
This function additionally provides {photo} variable to let the designer show the related photo for the item being shown within the HTML template.
Function now takes into consideration if a member is not active (don't display the listing). Additionally, this function will no longer show "ended" listings so only active open listings will appear in the recently viewed blocks.
string
fetch_recently_viewed_auctions
([string $auctiontype = ''], [integer $columns = 5], [integer $rows = 1], [integer $cid = 0], [string $keywords = ''], [boolean $forcenoflash = false])
-
string
$auctiontype: auction type
-
integer
$columns: auction result limit (default 5)
-
integer
$rows: auction rows limit (default 1)
-
integer
$cid: (optional) category id to pull listings from if specified
-
string
$keywords: (optional) keywords to search (titles & descriptions) when pulling listing results if specified
-
boolean
$forcenoflash: force no-flash for auction timers (default no force)
Function to fetch the current reserve price of a particular auction id.
integer
fetch_reserve_price
([integer $auctionid = 0])
-
integer
$auctionid: auction id
Function to fetch the current reserve price bit of a particular auction id.
string
fetch_reserve_price_bit
([integer $projectid = 0])
-
integer
$projectid: project id
Function to fetch the request for proposal budget amount for a particular project
string
fetch_rfp_budget
([integer $projectid = 0], [ $showicon = false])
-
integer
$projectid: project id
-
$showicon
Function to fetch the current transfer of ownership details
string
fetch_transfer_ownership
([integer $projectid = 0])
-
integer
$projectid: project id
Function to return template array data for a the buyer or seller currently being viewed. This function is usually called from the actual listing or profile page of the marketplace letting users see other related listings from the same seller (product listings) or buyer (service auction listings)
string
fetch_users_other_listings
([integer $userid = 0], [string $auctiontype = ''], [integer $limit = 5], [array $excludelist = array()], [boolean $forcenoflash = false])
-
integer
$userid: user id
-
string
$auctiontype: auction type (service or product)
-
integer
$limit: auction result limit (default 5)
-
array
$excludelist: array of project id's not to include in sellers listings
-
boolean
$forcenoflash: force no-flash for auction timers (default no force)
Function to relist product auction
nothing
relist_product_auction
([ $id = 0])
Function to relist service auction
nothing
relist_service_auction
([ $id = 0])
Function to handle the removal of item question / answers from deleted listings in the database. This function runs daily within cron.dailyrfp.php
string
remove_answers_from_deleted_listings
()
Function to handle the removal of item photos and slideshow images from deleted auctions in the database. This function runs daily within cron.dailyrfp.php
string
remove_photos_from_deleted_listings
()
Function to handle the removal of item shipping regions from deleted listings in the database. This function runs daily within cron.dailyrfp.php
string
remove_shipping_regions_from_deleted_listings
()
Function to rewrite photos based on orginal auction to new relisted auction
nothing
rewrite_photos
( $old_id, $new_id)