- Publicity: Public Only All
category-relation-procs.tcl
Procedures to relate to categories trees (meta category) to one user_id
- Location:
- packages/categories/tcl/category-relation-procs.tcl
- Created:
- 2005-07-26
- Authors:
- Miguel Marin <miguelmarin@viaro.net>
- Viaro Networks www.viaro.net
Procedures in this file
- category::relation::add_meta_category (public)
- category::relation::get_meta_categories (public)
- category::relation::get_widget (public)
Detailed information
category::relation::add_meta_category (public)
category::relation::add_meta_category -category_id_one category_id_one \ -category_id_two category_id_two [ -user_id user_id ]
Creates a new meta category by creating a relation between category_id_one and category_id_two. This relation is also related to the user_id.
- Switches:
- Options:
- -category_id_one (required)
- -category_id_two (required)
- -user_id (optional)
- -user_id
- user that will be related to the meta category.
- -category_id_one
- one of the two category_id's to be related.
- -category_id_two
- the other category_id to be related.
- Authors:
- Miguel Marin <miguelmarin@viaro.net>
- Viaro Networks www.viaro.net
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- category_tree_procs
category::relation::get_meta_categories (public)
category::relation::get_meta_categories -rel_id rel_id
return cached list of category_one and category_two of the meta-category
- Switches:
- -rel_id (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- category_tree_procs
category::relation::get_widget (public)
category::relation::get_widget -tree_id_one tree_id_one \ -tree_id_two tree_id_two
Returns two select menus of the categories on each tree to be used in ad_form. The name of the elements are meta_category_one and meta_category_two.
- Switches:
- Options:
- -tree_id_one (required)
- -tree_id_two (required)
- Authors:
- Miguel Marin <miguelmarin@viaro.net>
- Viaro Networks www.viaro.net
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.