Functions Summary | |
---|---|
array | cot_tag_cloud(string area, string order, int limit) Collects data for a tag cloud in some area. |
array | cot_tag_complete(string tag, int min_length) Gets an array of autocomplete options for a given tag |
int | cot_tag_count(string tag, string area, mixed extra) Returns number of items tagged with a specific keyword |
bool | cot_tag_exists(string tag) Checks whether the tag has already been registered in the dictionary |
bool | cot_tag_isset(string tag, int item, string area, mixed extra) Checks whether a tag has been already set on a specific item |
array | cot_tag_list(mixed item, string area, mixed extra) Returns an array containing tags which have been set on an item / items |
array | cot_tag_parse(string input) Parses user input into array of valid and safe tags |
string | cot_tag_parse_query(string qs, array join_columns) Parses search string into SQL query |
string | cot_tag_prep(string tag) Convert the tag to lowercase and prepare it for SQL operations. |
static void | cot_tag_register(string tag) Attempts to register a tag in the dictionary. |
bool | cot_tag_remove(string tag, int item, string area, mixed extra) Removes tag reference from a specific item |
int | cot_tag_remove_all(int item, string area, mixed extra) Removes all tags attached to an item, or all tags from area if item is set to 0. |
void | cot_tag_search_form(string area) Global tag cloud and search form |
string | cot_tag_title(string tag) Converts a lowercase tag into title-case string (capitalizes first latters of the words) |
void | cot_tag_unregister(string tag) Unregisters a tag from the dictionary |
public array cot_tag_cloud(string area, string order, int limit)
public array cot_tag_complete(string tag, int min_length)
public int cot_tag_count(string tag, string area, mixed extra)
public bool cot_tag_exists(string tag)
public bool cot_tag_isset(string tag, int item, string area, mixed extra)
public array cot_tag_list(mixed item, string area, mixed extra)
public array cot_tag_parse(string input)
public string cot_tag_parse_query(string qs, array join_columns)
public string cot_tag_prep(string tag)
public static void cot_tag_register(string tag)
public bool cot_tag_remove(string tag, int item, string area, mixed extra)
public int cot_tag_remove_all(int item, string area, mixed extra)
public void cot_tag_search_form(string area)
public string cot_tag_title(string tag)
public void cot_tag_unregister(string tag)