tagcloud-procs.tcl

Procs to generate a tag cloud for a given category tree.

Location:
packages/categories/tcl/tagcloud-procs.tcl
Created:
Sun Oct 2 16:58:34 2005
Author:
Matthew Burke <matt-oacs@bluedino.net>
CVS Identification:
$Id: tagcloud-procs.tcl,v 1.8.2.1 2019/03/15 13:28:50 antoniop Exp $

Procedures in this file

Detailed information

category::tagcloud::get_minmax_tagweights (private)

 category::tagcloud::get_minmax_tagweights -tag_list tag_list

Returns a list with the minimum and maximum weight values in the given list.

Switches:
-tag_list
(required)
Author:
Matthew Burke <matt-oacs@bluedino.net>

Partial Call Graph (max 5 caller/called nodes):
%3 category::tagcloud::tagcloud category::tagcloud::tagcloud (public) category::tagcloud::get_minmax_tagweights category::tagcloud::get_minmax_tagweights category::tagcloud::tagcloud->category::tagcloud::get_minmax_tagweights

Testcases:
No testcase defined.

category::tagcloud::get_tags (public)

 category::tagcloud::get_tags -tree_id tree_id

Returns a list of categories and their weights (number of objects mapped to each category) for a give category tree. This is a memoized function which caches for two hours.

Switches:
-tree_id
(required)
Author:
Matthew Burke <matt-oacs@bluedino.net>
Created:
Oct 1, 2005
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 test_category_object_mapping category_object_mapping (test categories) category::tagcloud::get_tags category::tagcloud::get_tags test_category_object_mapping->category::tagcloud::get_tags category::tagcloud::get_tags_no_mem category::tagcloud::get_tags_no_mem (private) category::tagcloud::get_tags->category::tagcloud::get_tags_no_mem util_memoize util_memoize (public) category::tagcloud::get_tags->util_memoize category::tagcloud::tagcloud category::tagcloud::tagcloud (public) category::tagcloud::tagcloud->category::tagcloud::get_tags

Testcases:
category_object_mapping

category::tagcloud::get_tags_no_mem (private)

 category::tagcloud::get_tags_no_mem -tree_id tree_id

Returns a list of categories and their weights (number of objects mapped to each category) for a give category tree.

Switches:
-tree_id
(required)
Author:
Matthew Burke <matt-oacs@bluedino.net>
Created:
Oct 1, 2005

Partial Call Graph (max 5 caller/called nodes):
%3 category::tagcloud::get_tags category::tagcloud::get_tags (public) category::tagcloud::get_tags_no_mem category::tagcloud::get_tags_no_mem category::tagcloud::get_tags->category::tagcloud::get_tags_no_mem ad_conn ad_conn (public) category::tagcloud::get_tags_no_mem->ad_conn db_list_of_lists db_list_of_lists (public) category::tagcloud::get_tags_no_mem->db_list_of_lists parameter::get parameter::get (public) category::tagcloud::get_tags_no_mem->parameter::get

Testcases:
No testcase defined.

category::tagcloud::scale_weight (private)

 category::tagcloud::scale_weight -weight weight -extremes extremes

Returns the weight as a font-size between 10px and 36px scaled between the min and max weights passed in.

Switches:
-weight
(required)
-extremes
(required)
Author:
Matthew Burke <matt-oacs@bluedino.net>

Partial Call Graph (max 5 caller/called nodes):
%3 category::tagcloud::tagcloud category::tagcloud::tagcloud (public) category::tagcloud::scale_weight category::tagcloud::scale_weight category::tagcloud::tagcloud->category::tagcloud::scale_weight

Testcases:
No testcase defined.

category::tagcloud::tagcloud (public)

 category::tagcloud::tagcloud -tree_id tree_id

Generate a tag cloud for the categories in the given category tree.

Switches:
-tree_id
(required)
Options:
-tree_id
tree_id of the tree for which to generate the cloud.
Returns:
HTML fragment for the tag cloud.
Author:
Matthew Burke <matt-oacs@bluedino.net>

Partial Call Graph (max 5 caller/called nodes):
%3 test_category_object_mapping category_object_mapping (test categories) category::tagcloud::tagcloud category::tagcloud::tagcloud test_category_object_mapping->category::tagcloud::tagcloud category::tagcloud::get_minmax_tagweights category::tagcloud::get_minmax_tagweights (private) category::tagcloud::tagcloud->category::tagcloud::get_minmax_tagweights category::tagcloud::get_tags category::tagcloud::get_tags (public) category::tagcloud::tagcloud->category::tagcloud::get_tags category::tagcloud::scale_weight category::tagcloud::scale_weight (private) category::tagcloud::tagcloud->category::tagcloud::scale_weight

Testcases:
category_object_mapping
[ show source ]