Function to fetch the array of the skills category structure.
array
build_array_skills
([string $slng = 'eng'], [ $limit = -1], [ $counter = 0], [ $level = 10], [ $cid = 0], [ $title = ''], [ $visible = 1], [ $propersort = false])
-
string
$slng: short language identifier (default eng)
-
$limit
-
$counter
-
$level
-
$cid
-
$title
-
$visible
-
$propersort
Function to determine if a skill category can be removed from the datastore
void
can_remove_skill_categories
()
void
cron_reset_skill_parentid_duplicates
()
Function to fetch the user count currently opted to a particular skill category id
void
fetch_skills_category_count
([integer $cid = 0])
-
integer
$cid: category id
Function to fetch the user count currently opted to a particular skill category id recursively.
This function is only called on the main parent skill categories.
void
fetch_skills_category_recursive_count
([integer $cid = 0], [ $counter = 0])
-
integer
$cid: category id
-
$counter
Function to fetch all children category id numbers returns in comma separated values.
string
fetch_skills_children
([integer $cid = 0])
-
integer
$cid: category id number (or all)
Function to fetch all skill children category id numbers recursivly in comma separated values based on a parent category id number.
This function is useful because it reads from the cache and does not hit the database.
string
fetch_skills_children_ids
([string $cid = 'all'])
-
string
$cid: category id number (or all)
Function to
string
fetch_skills_columns
(integer $parentid, [string $slng = 'eng'], boolean $showcount, integer $level, boolean $prepopulate, boolean $columns, [mixed $doajax = false], [ $customfield1 = ''], [ $customfield2 = ''])
-
integer
$parentid: parent category id
-
string
$slng: short language identifier (default = eng)
-
boolean
$showcount: show the skills category count?
-
integer
$level: skill category level
-
boolean
$prepopulate: determine if we should pre-populate skill categories
-
boolean
$columns: determine if we are using ajax for sending sid[]'s to the page outside the iframe
-
mixed
$doajax: custom field for future development $param mixed custom field for future development
-
$customfield1
-
$customfield2
Function to process and fetch categories
nothing
get_cats
(array $result, [integer $parentid = 0], [integer $level = 1], [ $counter = 0])
-
array
$result: category results array
-
integer
$parentid: parent id
-
integer
$level: category level
-
$counter
Redefinition of:
- categories::get_cats()
- Function to process and fetch categories
Function to process and fetch categories recusively
nothing
get_cats_recursive
(array $result, [integer $parentid = 0], [integer $level = 1], [integer $counter = 0])
-
array
$result: category results array
-
integer
$parentid: category parent id
-
integer
$level: category level
-
integer
$counter: counter (default 0)
Redefinition of:
- categories::get_cats_recursive()
- Function to process and fetch categories recusively
Function to determine if a user is skilled in a particular category based on his/her skills selection
array
is_user_skilled
([integer $userid = 0], [integer $cid = 0], [mixed $customfield1 = ''], [mixed $customfield2 = ''])
-
integer
$userid: user id
-
integer
$cid: skill category id
-
mixed
$customfield1: custom field for future development
-
mixed
$customfield2: custom field for future development
Function to fetch the meta tag keywords text of a category.
mixed
keywords
([string $slng = 'eng'], [integer $cid = 0], [boolean $commaafter = false], [boolean $showinputkeywords = false])
-
string
$slng: short language identifier (default eng)
-
integer
$cid: category id
-
boolean
$commaafter: insert comma after? (default false)
-
boolean
$showinputkeywords: show input keywords (default false)
Redefinition of:
- categories::keywords()
- Function to fetch the meta tag keywords text of a category.
Function to fetch the parent id of a skill category.
integer
parentid
([string $slng = 'eng'], [integer $cid = 0])
-
string
$slng: short language identifier (default eng)
-
integer
$cid: category id
Redefinition of:
- categories::parentid()
- Function to fetch the parentid of a category.
Function to print the skills categories with checkboxes with the ability to pre-populate previously selected checkboxes.
string
print_skills_children
([integer $parentid = 0], integer $level, boolean $showcount, integer $userid, boolean $prepopulate, [string $slng = 'eng'], [boolean $doajax = false], [mixed $customfield1 = ''], [mixed $customfield2 = ''])
-
integer
$parentid: parentid
-
integer
$level: level
-
boolean
$showcount: show the experts in skills count?
-
integer
$userid: user id to obtain pre-population info from
-
boolean
$prepopulate: pre-populate selected checkboxes
-
string
$slng: short form language indentifier (default eng)
-
boolean
$doajax: determine if we should use ajax or not (default false)
-
mixed
$customfield1: custom field for future development
-
mixed
$customfield2: custom field for future development
Function to print the main subcategory columns of a particular category being viewed or selected
void
print_skills_columns
([string $slng = 'eng'], [boolean $showcount = 1], [boolean $prepopulate = true], [integer $columns = 4], [boolean $doajax = false], [mixed $customfield1 = ''], [ $customfield2 = ''])
-
string
$slng: short language code
-
boolean
$showcount: show category counts? (default yes)
-
boolean
$prepopulate: pre-populate skills (default true)
-
integer
$columns: number of columns to display (default 4)
-
boolean
$doajax: do ajax logic for advanced searches? (default false)
-
mixed
$customfield1: custom field for future development
-
$customfield2
Function to remove skill categories recursively
void
remove_skills_category_recursive
([integer $cid = 0])
-
integer
$cid: category id
Function to update and set the proper category level for each category
void
set_levels_skills
()
Function to set skill level and update the datastore
void
set_levels_skills_update
(integer $cid, integer $parentid, integer $level, [integer $cid_save = ''])
-
integer
$cid: category id
-
integer
$parentid: parent category id
-
integer
$level: level
-
integer
$cid_save: category id to update
Inherited Methods
Inherited From categories
categories::categories()
categories::api_multicategory_select()
categories::auctioncount()
categories::bestmatch_auction_count()
categories::bidamounttypes()
categories::bidgroupdisplay()
categories::bidgrouping()
categories::breadcrumb()
categories::budgetgroup()
categories::build_array()
categories::can_post()
categories::cattype()
categories::construct_categories()
categories::description()
categories::display_children()
categories::fetch_children()
categories::fetch_children_ids()
categories::fetch_level_padding()
categories::fetch_parent_ids()
categories::fetch_portfolio_count()
categories::fetch_profile_answer_count()
categories::fetch_profile_question_count()
categories::fetch_profile_verification_count()
categories::finalvaluegroup()
categories::fixedfeeamount()
categories::get_cats()
categories::get_cats_recursive()
categories::incrementgroup()
categories::insertiongroup()
categories::keywords()
categories::level()
categories::nondisclosefeeamount()
categories::parentid()
categories::print_category_jump_js()
categories::print_category_newicon()
categories::print_searchable_questions()
categories::propersort()
categories::proxy_bid_ready()
categories::rebuild_category_geometry()
categories::rebuild_category_geometry_install()
categories::rebuild_category_tree()
categories::recursive()
categories::searchable_question_count()
categories::set_levels()
categories::set_levels_update()
categories::title()
categories::usefixedfees()
categories::useproxybid()
categories::usereserveprice()
categories::visible()
categories::wantads_in_category()