Function to activate single or multiple users from the marketplace
string
activate_user
([array $ids = array()])
-
array
$ids: array with user ids flagged for activation
Function to fetch the description of a particular phrase group within the datastore
string
api_phrasegroupname
([integer $phrasegroup = ''])
-
integer
$phrasegroup: phrase group
Function to generate a pulldown menu based on auction details.
string
auction_details_pulldown
([integer $selected = ''], [bool $showall = 0], [ $type = 'service'])
-
integer
$selected: project id (or currently selected auction id value)
-
bool
$showall: determines if we should display "Select all" as an option in the pulldown
-
$type
Function to generate a pulldown menu based on auction details.
string
auction_details_pulldown2
([string $selected = ''], [bool $showall = 0], [string $type = 'product'])
-
string
$selected: text which will be selected in the pulldown
-
bool
$showall: determines if we should display "Select all" as an option in the pulldown
-
string
$type: auction type service/product
Function to generate a pulldown menu based on auction state details.
string
auction_state_pulldown
([integer $projectid = 0])
-
integer
$projectid: project id (or currently selected auction id value)
Function to generate a pulldown menu based on auction status details.
string
auction_status_pulldown
([integer $selected = ''], [ $showall = true], [ $type = 'service'])
-
integer
$selected: project id (or currently selected auction id value)
-
$showall
-
$type
Function to ban single or multiple users from the marketplace
string
ban_user
([array $ids = array()])
-
array
$ids: array with user ids flagged for ban
Function to ban single or multiple users from the marketplace
string
cancel_user
([array $ids = array()])
-
array
$ids: array with user ids flagged for ban
Function to construct and print a category pulldown menu.
string
category_pulldown
([integer $cid = 0], [string $cattype = 'service'], [string $slng = 'eng'])
-
integer
$cid: category id
-
string
$cattype: category tyoe
-
string
$slng: short language identifier (eng is default)
Function to print the admininstration configuration input template menus.
string
construct_admin_input
([string $configgroup = ''], [ $returnurl = ''])
-
string
$configgroup: config group
-
$returnurl
Function to print out bid amount types
string
construct_bidamounttypes
([integer $cid = 0], [boolean $entiredefault = 1])
-
integer
$cid: category id
-
boolean
$entiredefault: set default type as entire project? (default true)
Function to construct and print out the budget group pulldown menu
string
construct_budget_group_pulldown
(string $budgetgroup, string $cattype)
-
string
$budgetgroup: budget group name
-
string
$cattype: category type (service or product)
Function to construct and print comma separated data with predefined headings.
string
construct_csv_data
(array $data, array $headings)
-
array
$data: data
-
array
$headings: heading array
void
construct_escrow_balance
()
Function to construct and print out the final value group pulldown menu
string
construct_finalvalue_group_pulldown
(string $finalvaluegroup, string $cattype)
-
string
$finalvaluegroup: final value group name
-
string
$cattype: category type (service or product)
Function to construct and print an html table with predefined headings.
string
construct_html_table
(array $data, array $headings)
-
array
$data: data
-
array
$headings: heading array
Function to construct and print out the increment group pulldown menu
string
construct_increment_group_pulldown
(string $incrementgroup, string $cattype)
-
string
$incrementgroup: increment group name
-
string
$cattype: category type (service or product)
Function to construct and print out the insertion group pulldown menu
string
construct_insertion_group_pulldown
(string $insertiongroup, string $cattype)
-
string
$insertiongroup: insertion group name
-
string
$cattype: category type (service or product)
Function to create a new user.
void
construct_new_member
([string $username = ''], [string $password = ''], [string $salt = ''], [string $secretquestion = ''], [string $secretanswer = ''], [string $email = ''], [string $first = ''], [string $last = ''], [string $address = ''], [string $address2 = ''], [string $city = ''], [string $state = ''], [string $zipcode = ''], [string $phone = ''], [integer $country = ''], [string $dob = ''], [string $rid = ''], [integer $languageid = ''], [integer $currencyid = ''], [integer $usertimezone = ''], [boolean $usertimezone_dst = 0], [string $categories = ''], [integer $isadmin = 0])
-
string
$username: username
-
string
$password: password
-
string
$salt: password salt
-
string
$secretquestion: secret question
-
string
$secretanswer: secret answer
-
string
$email: email
-
string
$first: first name
-
string
$last: last name
-
string
$address: address 1
-
string
$address2: address 2
-
string
$city: city
-
string
$state: state
-
string
$zipcode: zip code
-
string
$phone: phone number
-
integer
$country: country id
-
string
$dob: date of birth
-
string
$rid: referral code
-
integer
$languageid: language id
-
integer
$currencyid: currency id
-
integer
$usertimezone: timezone id
-
boolean
$usertimezone_dst: use dst? (default disabled)
-
string
$categories: newsletter categories (default none)
-
integer
$isadmin: is admin (default off)
Function to print out a parents integer text input field
string
construct_parent_int_input
([integer $variableinfo = ''], [string $value = ''], [string $description = ''], [string $inputtype = ''], [string $class = 'alt1'], [ $sort = '0'], [ $help = ''])
-
integer
$variableinfo: configuration varname
-
string
$value: value
-
string
$description: description
-
string
$inputtype: input type
-
string
$class: class (default alt1)
-
$sort
-
$help
Function to print out a parents pulldown menu input field
string
construct_parent_pulldown_input
([integer $variableinfo = ''], [string $value = ''], [string $description = ''], [string $inputtype = ''], [string $class = 'alt1'], [ $sort = '0'], [ $inputcode = ''], [ $help = ''])
-
integer
$variableinfo: configuration varname
-
string
$value: value
-
string
$description: description
-
string
$inputtype: input type
-
string
$class: class (default alt1)
-
$sort
-
$inputcode
-
$help
Function to print out a parents textarea text input field
string
construct_parent_textarea_input
([integer $variableinfo = ''], [string $value = ''], [string $description = ''], [string $inputtype = ''], [string $class = 'alt1'], [ $sort = '0'], [ $help = ''])
-
integer
$variableinfo: configuration varname
-
string
$value: value
-
string
$description: description
-
string
$inputtype: input type
-
string
$class: class (default alt1)
-
$sort
-
$help
Function to print out a parents "yes or no" input field (based on radio buttons)
string
construct_parent_yesno_input
([integer $variableinfo = ''], [string $value = ''], [string $description = ''], [string $inputtype = ''], [string $class = 'alt1'], [ $sort = '0'], [ $help = ''])
-
integer
$variableinfo: configuration varname
-
string
$value: value
-
string
$description: description
-
string
$inputtype: input type
-
string
$class: class (default alt1)
-
$sort
-
$help
Function to print the payment modules configuration input template menus.
string
construct_paymodules_input
([string $configgroup = ''], [ $returnurl = ''])
-
string
$configgroup: config group
-
$returnurl
Function to print integer type settings.
string
construct_paymodules_parent_int_input
([integer $id = 0], [string $value = ''], [string $description = ''], [string $inputtype = ''], [string $class = 'alt1'], [ $variableinfo = ''], [ $help = ''], [ $sort = 0], string $ilconfig[])
-
string
$ilconfig[]: name
-
integer
$id: config id
-
string
$value: value
-
string
$description: description
-
string
$inputtype: input type
-
string
$class: background color
-
$variableinfo
-
$help
-
$sort
Function to print password field type settings.
string
construct_paymodules_parent_pass_input
([integer $id = 0], [string $value = ''], [string $description = ''], [string $inputtype = ''], [string $class = 'alt1'], [ $variableinfo = ''], [ $help = ''], [ $sort = 0], string $ilconfig[])
-
string
$ilconfig[]: name
-
integer
$id: config id
-
string
$value: value
-
string
$description: description
-
string
$inputtype: input type
-
string
$class: background color
-
$variableinfo
-
$help
-
$sort
Function to print pulldown selection menu field type settings.
string
construct_paymodules_parent_pulldown_input
([integer $id = 0], [string $value = ''], [string $description = ''], [string $inputtype = ''], [string $class = 'alt1'], [ $variableinfo = ''], [string $inputcode = ''], [ $help = ''], [ $sort = 0], string $ilconfig[])
-
string
$ilconfig[]: name
-
integer
$id: config id
-
string
$value: value
-
string
$description: description
-
string
$inputtype: input type
-
string
$class: background color
-
string
$inputcode: pulldown menu input code
-
$variableinfo
-
$help
-
$sort
Function to print textarea field type settings.
string
construct_paymodules_parent_textarea_input
([integer $id = 0], [string $value = ''], [string $description = ''], [string $inputtype = ''], [string $class = 'alt1'], [ $variableinfo = ''], [ $help = ''], [ $sort = 0], string $ilconfig[])
-
string
$ilconfig[]: name
-
integer
$id: config id
-
string
$value: value
-
string
$description: description
-
string
$inputtype: input type
-
string
$class: background color
-
$variableinfo
-
$help
-
$sort
Function to print text field type settings.
string
construct_paymodules_parent_text_input
([integer $id = 0], [string $value = ''], [string $description = ''], [string $inputtype = ''], [string $class = 'alt1'], [ $variableinfo = ''], [ $help = ''], [ $sort = 0], string $ilconfig[])
-
string
$ilconfig[]: name
-
integer
$id: config id
-
string
$value: value
-
string
$description: description
-
string
$inputtype: input type
-
string
$class: background color
-
$variableinfo
-
$help
-
$sort
Function to print yes or no type radio boxes for yes / no type settings.
string
construct_paymodules_parent_yesno_input
([integer $id = 0], [string $value = ''], [string $description = ''], [string $inputtype = ''], [string $class = 'alt1'], [ $variableinfo = ''], [ $help = ''], [ $sort = 0], string $ilconfig[])
-
string
$ilconfig[]: name
-
integer
$id: config id
-
string
$value: value
-
string
$description: description
-
string
$inputtype: input type
-
string
$class: css class
-
$variableinfo
-
$help
-
$sort
void
construct_revenue_balance
()
Function to construct and print tab separated data with predefined headings.
string
construct_tsv_data
(array $data, array $headings)
-
array
$data: data
-
array
$headings: heading array
Function to decode HTML entities
string
decode_entities
(string $text, [string $quote_style = ENT_COMPAT], [ $characterset = 'ISO-8859-1'])
-
string
$text: text
-
string
$quote_style: quotes style (default ENT_COMPAT)
-
$characterset
Function to print the default payment gateway within a pulldown menu.
string
default_gateway_pulldown
([string $value = ''], [string $key = 'use_internal_gateway'])
-
string
$value: config value
-
string
$key: config key
Function to print the email departments pulldown menu.
string
email_departments_pulldown
([ $selected = ''])
void
fetch_admincp_news
()
Function to fetch the current auction enhancements details
string
fetch_auction_enhancements_list
([integer $projectid = 0])
-
integer
$projectid: project id
Function to fetch how many categories are currently associated with this particular budget group.
integer
fetch_budget_catcount
(string $group)
-
string
$group: budget group name
Function to fetch the schedule details of a task used in the self-cron automation system
string
fetch_cron_schedule
(array $cron)
-
array
$cron: array data of schedule
void
fetch_custom_phrases_count
()
void
fetch_email_department_count
([ $departmentid = 0])
Function to print the email departments pulldown menu.
string
fetch_email_department_title
([ $selected = ''])
Function to fetch how many categories are currently associated with this particular final value group.
integer
fetch_fv_catcount
(string $cattype, string $group)
-
string
$cattype: category type (service or product)
-
string
$group: final value group name
Function to fetch how many categories are currently associated with this particular bid increment group.
integer
fetch_increment_catcount
(string $group)
-
string
$group: increment group name
Function to fetch how many budget ranges are currently associated with this particular insertion group.
integer
fetch_insertion_budget_catcount
(string $group)
-
string
$group: insertion group name
Function to fetch how many categories are currently associated with this particular insertion group.
integer
fetch_insertion_catcount
(string $cattype, string $group)
-
string
$cattype: category type (service or product)
-
string
$group: insertion group name
Function to print all phrase groups in the database within a pulldown menu.
string
fetch_language_name
([integer $languageid = 0])
-
integer
$languageid: language id
void
fetch_latest_news
()
void
fetch_master_phrases_count
()
void
fetch_moved_phrases_count
()
Function to fetch all fields to use within the Reporting section of the AdminCP
array
fetch_reporting_fields
( $sql, $fields)
Function to fetch the task variable name for a given cron job within the automation system
string
fetch_task_varname
(integer $cronid)
-
integer
$cronid: cron job id
void
fetch_total_phrases_count
()
Function for inserting a new bid increment in the database.
void
insert_bid_increment
([string $from = 0], [string $to = 0], [string $amount = 0], [integer $cid = 0], [integer $sort = 0], [string $groupname = ''])
-
string
$from: increment from
-
string
$to: increment to
-
string
$amount: increment amount
-
integer
$cid: category id (optional)
-
integer
$sort: display sort order in the admincp
-
string
$groupname: bid increment group name
Function for inserting a new budget group.
void
insert_budget_group
([string $groupname = ''], [string $description = ''])
-
string
$groupname: group name
-
string
$description: description
Function for inserting a new insertion fee.
void
insert_budget_range
([string $title = ''], [string $fieldname = ''], [string $budgetfrom = 0], [string $budgetto = 0], [integer $groupname = ''], [string $insgroupname = ''], [ $sort = 0])
-
string
$title: insertion fee from
-
string
$fieldname: insertion fee to
-
string
$budgetfrom: insertion fee amount
-
string
$budgetto: insertion group name
-
integer
$groupname: insertion sorting display order
-
string
$insgroupname: state
-
$sort
Function to insert a new final value fee.
void
insert_fv_fee
([string $from = 0], [string $to = 0], [bool $amountfixed = 0], [bool $amountpercent = 0], [integer $sort = 100], [string $groupname = ''], [string $state = ''])
-
string
$from: final value from
-
string
$to: final value to
-
bool
$amountfixed: is amount fixed?
-
bool
$amountpercent: is amount percentage?
-
integer
$sort: display sorting order
-
string
$groupname: final value group name
-
string
$state: state
Function for inserting a new final value group.
void
insert_fv_group
([string $groupname = ''], [string $state = ''], [string $description = ''])
-
string
$groupname: final value group
-
string
$state: state
-
string
$description: description
Function for inserting a new bid increment group. Additionally, the groupname will be replaced with underscores if the string contains spaces.
void
insert_increment_group
([string $groupname = ''], [string $description = ''])
-
string
$groupname: group name
-
string
$description: description
Function for inserting a new insertion fee.
void
insert_insertion_fee
([string $from = 0], [string $to = 0], [string $amount = 0], [string $groupname = ''], [integer $sort = 0], [string $state = ''])
-
string
$from: insertion fee from
-
string
$to: insertion fee to
-
string
$amount: insertion fee amount
-
string
$groupname: insertion group name
-
integer
$sort: insertion sorting display order
-
string
$state: state
Function for inserting a new insertion group.
void
insert_insertion_group
([string $groupname = ''], [string $state = ''], [string $description = ''])
-
string
$groupname: insertion group
-
string
$state: state
-
string
$description: description
Function to print all phrase groups in the database within a pulldown menu.
string
phrasegroup_pulldown
()
Function to print all phrases in the database within a pulldown menu.
string
phraselist_pulldown
([integer $phrasegroup = ''], [integer $languageid = 0])
-
integer
$phrasegroup: phrase group
-
integer
$languageid: language id
Function to print the AdminCP navigation menu
string
print_admincp_nav
([string $slng = 'eng'], [string $currenturl = ''])
-
string
$slng: short form language identifier
-
string
$currenturl: current url
Function to print the AdminCP sub navigation menus
string
print_admincp_subnav
([string $rootnav = ''], [string $currenturl = ''], [string $slng = 'eng'])
-
string
$rootnav: current root nav we're on
-
string
$currenturl: current url we're on
-
string
$slng: short form language identifier
Function to print the admin users pulldown menu
string
print_admins_pulldown
([string $selected = ''])
-
string
$selected: selected option
Function to print a pulldown menu with any available scripts that can be tracked and auditted
string
print_audit_scripts_pulldown
([string $selected = ''])
-
string
$selected: selected option
Function to print a pulldown with budget group values as the options.
string
print_budget_group_pulldown
([string $selected = ''], [bool $shownoneselected = ''])
-
string
$selected: selected value
-
bool
$shownoneselected: if true, will show "please select value" option
void
print_from_to_date_range
()
Function to print a pulldown with final value group values as the options.
string
print_fv_group_pulldown
([string $selected = ''], [bool $shownoneselected = ''], [string $state = ''])
-
string
$selected: selected value
-
bool
$shownoneselected: if true, will show "please select value" option
-
string
$state: category state
Function to print a pulldown with bid increment group values as the options.
string
print_increment_group_pulldown
([string $selected = ''], [bool $shownoneselected = ''], [string $state = ''])
-
string
$selected: selected value
-
bool
$shownoneselected: if true, will show "please select value" option
-
string
$state: category state
Function to print a pulldown with insertion group values as the options.
string
print_insertion_group_pulldown
([integer $selected = ''], [bool $shownoneselected = 0], [string $state = ''], [ $fieldname = 'groupid'])
-
integer
$selected: selected insertion group id
-
bool
$shownoneselected: if true, will show "please select value" option
-
string
$state: category state
-
$fieldname
Function to print the invoice types pulldown menu
string
print_invoicetype_pulldown
([string $invoicetype = ''], [ $fieldname = 'invoicetype'])
-
string
$invoicetype: invoice type
-
$fieldname
Function to print the members pulldown menu
string
print_members_pulldown
([string $selected = ''], [boolean $showallusers = 1])
-
string
$selected: selected option
-
boolean
$showallusers: show all users (default true)
Function to print the migration billing pulldown menu
string
print_migrate_billing_pulldown
([string $selected = ''])
-
string
$selected: selected option
Function to print the "migrate to" pulldown menu for subscription plans within the AdminCP
string
print_migrate_to_pulldown
([string $selected = ''])
-
string
$selected: selected option
Function to print a pulldown for enabling or disabling moderation
string
print_moderation_pulldown
([string $value = ''], [string $variableinfo = ''])
-
string
$value: value
-
string
$variableinfo: key
Function to print out the profile filter types pulldown menu
string
print_profile_filtertype_pulldown
([string $selected = ''])
-
string
$selected: selected option
Function to construct and print out the role type pulldown menu
string
print_roletype_pulldown
([string $selected = ''])
-
string
$selected: selected role type
Function to construct and print out the role user type pulldown menu
string
print_roleusertype_pulldown
([string $selected = ''])
-
string
$selected: selected role user type
Function to print out the scheduled tasks pulldown menu
string
print_scheduled_tasks_pulldown
([string $selected = ''])
-
string
$selected: selected option
Function to print out a pulldown menu with all files used in ILance.
string
print_template_filelist_pulldown
()
Function to fetch the latest version of ILance
string
print_version
()
Function to print the products or add-ons installed pulldown menu.
string
products_pulldown
([ $selected = 'ilance'])
Function to remove & allow rebuild of the javascript phrase cache file
nothing
rebuild_language_cache
()
Function to remove an existing bid increment.
void
remove_bid_increment
([integer $id = 0])
-
integer
$id: increment id
Function for removing an existing budget group.
void
remove_budget_group
([integer $groupid = 0])
-
integer
$groupid: group id
Function for removing an existing budget range.
void
remove_budget_range
([integer $budgetid = 0])
-
integer
$budgetid: budget id
Function to remove an existing final value fee.
void
remove_fv_fee
([integer $id = 0])
-
integer
$id: final value fee id
Function to remove an existing final value group
void
remove_fv_group
([integer $id = 0])
-
integer
$id: final value group id
Function for removing an existing bid increment group. This function will additionally deassociate any categories using this group.
void
remove_increment_group
([integer $groupid = 0])
-
integer
$groupid: group id
Function to remove an existing insertion fee.
void
remove_insertion_fee
([integer $id = 0])
-
integer
$id: insertion fee id
Function to remove an existing insertion group.
void
remove_insertion_group
([integer $id = 0])
-
integer
$id: insertion group id
Function to remove a registration question from the database.
void
remove_registration_question
([integer $id = 0])
-
integer
$id: registration question id
Function to remove single or multiple users from the marketplace
string
remove_user
([array $ids = array()], [bool $removeinvoices = true], [bool $removelistings = true], [bool $removeescrow = true], [bool $removebuynoworders = true], [bool $removebids = true])
-
array
$ids: array with user ids flagged for removal
-
bool
$removeinvoices: remove invoices for user? (default no)
-
bool
$removelistings: remove listings for user? (default no)
-
bool
$removeescrow: remove escrow for user? (default no)
-
bool
$removebuynoworders: remove buynow orders for user? (default no)
-
bool
$removebids: remove bids for user? (default no)
Function to print out a phrase based on a text string for the scheduled task
string
scheduled_task_phrase
(string $selected)
-
string
$selected: selected task
Function to suspend single or multiple users from the marketplace
string
suspend_user
([array $ids = array()])
-
array
$ids: array with user ids flagged for suspension
Function to print all template groups within a multiple select list menu.
string
template_groups
()
Function to unsuspend single or multiple users from the marketplace
string
unsuspend_user
([array $ids = array()])
-
array
$ids: array with user ids flagged for unsuspension
Function to unverify single or multiple users from the marketplace
string
unverify_user
([array $ids = array()])
-
array
$ids: array with user ids flagged for unverification
Function for inserting a new bid increment in the database.
void
update_bid_increment
([integer $incrementid = 0], [string $from = 0], [string $to = 0], [string $amount = 0], [integer $cid = 0], [integer $sort = 0], [string $groupname = ''])
-
integer
$incrementid: increment id (optional)
-
string
$from: increment from
-
string
$to: increment to
-
string
$amount: increment amount
-
integer
$cid: category id (optional)
-
integer
$sort: display sort order in the admincp
-
string
$groupname: bid increment group name
Function to update an existing budget group
void
update_budget_group
([integer $groupid = 0], [string $groupname = ''], [string $description = ''])
-
integer
$groupid: group id
-
string
$groupname: group name
-
string
$description: description
Function for updating an existing budget range.
void
update_budget_range
([integer $budgetid = 0], [string $title = ''], [string $budgetfrom = 0], [string $budgetto = 0], [integer $groupid = 0], [integer $insertiongroupid = '-1'], [ $sort = 10])
-
integer
$budgetid: budget id
-
string
$title: title
-
string
$budgetfrom: budget from
-
string
$budgetto: budget to
-
integer
$groupid: group id
-
integer
$insertiongroupid: sort display order
-
$sort
Function to update an existing final value fee.
void
update_fv_fee
([string $from = 0], [string $to = 0], [bool $amountfixed = 0], [bool $amountpercent = 0], [integer $groupid = 0], [integer $tierid = 0], [integer $sort = 10])
-
string
$from: final value fee from
-
string
$to: final value fee to
-
bool
$amountfixed: is amount fixed?
-
bool
$amountpercent: is amount percentage?
-
integer
$groupid: final value group id
-
integer
$tierid: final value tier id
-
integer
$sort: sort display order
Function to update an existing increment group
void
update_increment_group
([integer $groupid = 0], [string $newgroupname = ''], [string $newdescription = ''])
-
integer
$groupid: group id
-
string
$newgroupname: group name
-
string
$newdescription: description
Function to update an existing insertion fee.
void
update_insertion_fee
([string $from = 0], [string $to = 0], [string $amount = 0], [integer $groupid = 0], [integer $insertionid = ''], [ $sort = 0])
-
string
$from: insertion fee from
-
string
$to: insertion fee to
-
string
$amount: insertion fee amount
-
integer
$groupid: insertion id
-
integer
$insertionid: sort display order
-
$sort