• 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

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:
-category_id_one
(required)
-category_id_two
(required)
-user_id
(optional)
Options:
-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):
%3 test_category_tree_procs category_tree_procs (test categories) category::relation::add_meta_category category::relation::add_meta_category test_category_tree_procs->category::relation::add_meta_category ad_conn ad_conn (public) category::relation::add_meta_category->ad_conn db_exec_plsql db_exec_plsql (public) category::relation::add_meta_category->db_exec_plsql db_string db_string (public) category::relation::add_meta_category->db_string

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):
%3 test_category_tree_procs category_tree_procs (test categories) category::relation::get_meta_categories category::relation::get_meta_categories test_category_tree_procs->category::relation::get_meta_categories category::relation::get_meta_category_internal category::relation::get_meta_category_internal (private) category::relation::get_meta_categories->category::relation::get_meta_category_internal util_memoize util_memoize (public) category::relation::get_meta_categories->util_memoize

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:
-tree_id_one
(required)
-tree_id_two
(required)
Options:
Authors:
Miguel Marin <miguelmarin@viaro.net>
Viaro Networks www.viaro.net

Partial Call Graph (max 5 caller/called nodes):
%3 category_tree::get_name category_tree::get_name (public) category_tree::get_tree category_tree::get_tree (public) category::relation::get_widget category::relation::get_widget category::relation::get_widget->category_tree::get_name category::relation::get_widget->category_tree::get_tree

Testcases:
No testcase defined.
[ show source ]