• Publicity: Public Only All

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_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::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 ]