Class categories_skills

Description

Category Skills class to perform the majority of category skill related functions within ILance.

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

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

categories
   |
   --categories_skills
Variable Summary
mixed $cats
mixed $fetchskills
Method Summary
array build_array_skills ([string $slng = 'eng'], [ $limit = -1], [ $counter = 0], [ $level = 10], [ $cid = 0], [ $title = ''], [ $visible = 1], [ $propersort = false])
void fetch_skills_category_count ([integer $cid = 0])
void fetch_skills_category_recursive_count ([integer $cid = 0], [ $counter = 0])
string fetch_skills_children ([integer $cid = 0])
string fetch_skills_children_ids ([string $cid = 'all'])
string fetch_skills_columns (integer $parentid, [string $slng = 'eng'], boolean $showcount, integer $level, boolean $prepopulate, boolean $columns, [mixed $doajax = false], [ $customfield1 = ''], [ $customfield2 = ''])
nothing get_cats (array $result, [integer $parentid = 0], [integer $level = 1], [ $counter = 0])
nothing get_cats_recursive (array $result, [integer $parentid = 0], [integer $level = 1], [integer $counter = 0])
array is_user_skilled ([integer $userid = 0], [integer $cid = 0], [mixed $customfield1 = ''], [mixed $customfield2 = ''])
mixed keywords ([string $slng = 'eng'], [integer $cid = 0], [boolean $commaafter = false], [boolean $showinputkeywords = false])
integer parentid ([string $slng = 'eng'], [integer $cid = 0])
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 = ''])
void print_skills_columns ([string $slng = 'eng'], [boolean $showcount = 1], [boolean $prepopulate = true], [integer $columns = 4], [boolean $doajax = false], [mixed $customfield1 = ''], [ $customfield2 = ''])
void remove_skills_category_recursive ([integer $cid = 0])
void set_levels_skills_update (integer $cid, integer $parentid, integer $level, [integer $cid_save = ''])
Variables
mixed $cats = array() (line 32)

Redefinition of:
categories::$cats
mixed $cidusercount = 0 (line 31)
mixed $fetchskills = array() (line 30)

Inherited Variables

Inherited from categories

categories::$buildarray
categories::$cat_map
categories::$custom
categories::$fetch
categories::$subs
Methods
build_array_skills (line 41)

Function to fetch the array of the skills category structure.

  • return: Returns category array 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
can_remove_skill_categories (line 480)

Function to determine if a skill category can be removed from the datastore

void can_remove_skill_categories ()
cron_reset_skill_parentid_duplicates (line 636)
void cron_reset_skill_parentid_duplicates ()
fetch_skills_category_count (line 576)

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
fetch_skills_category_recursive_count (line 601)

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
fetch_skills_children (line 431)

Function to fetch all children category id numbers returns in comma separated values.

  • return: Returns category id's in comma separate values (ie: 1,3,4,6)
string fetch_skills_children ([integer $cid = 0])
  • integer $cid: category id number (or all)
fetch_skills_children_ids (line 405)

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.

  • return: Returns category id's in comma separate values (ie: 1,3,4,6)
string fetch_skills_children_ids ([string $cid = 'all'])
  • string $cid: category id number (or all)
fetch_skills_columns (line 268)

Function to

  • return: Returns HTML formatted display of skill category columns
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
get_cats (line 103)

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
get_cats_recursive (line 121)

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
is_user_skilled (line 150)

Function to determine if a user is skilled in a particular category based on his/her skills selection

  • return: Returns true or false if user is skilled in a particular category
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
keywords (line 370)

Function to fetch the meta tag keywords text of a category.

  • return: Returns category array structure (or All Categories) text otherwise
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.
parentid (line 348)

Function to fetch the parent id of a skill category.

  • return: Returns parentid of a category or 0 otherwise
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.
print_skills_children (line 194)

Function to print the skills categories with checkboxes with the ability to pre-populate previously selected checkboxes.

  • return: Returns HTML formatted checkboxes beside each Skill category
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
print_skills_columns (line 329)

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
remove_skills_category_recursive (line 453)

Function to remove skill categories recursively

void remove_skills_category_recursive ([integer $cid = 0])
  • integer $cid: category id
set_levels_skills (line 503)

Function to update and set the proper category level for each category

void set_levels_skills ()
set_levels_skills_update (line 538)

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()

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