category::get_tree (public)

 category::get_tree category_id

Defined in packages/categories/tcl/categories-procs.tcl

Gets the tree_id of the given category.

Parameters:
category_id (required)
category_id or list of category_id's for which to get the tree_id.
Returns:
tree_id of the tree the category belongs to.
Author:
Timo Hentschel <timo@timohentschel.de>

Partial Call Graph (max 5 caller/called nodes):
%3 test_category_get_procs category_get_procs (test categories) category::get_tree category::get_tree test_category_get_procs->category::get_tree category::get_data category::get_data (public) category::get_data->category::get_tree category::list::prepare_display category::list::prepare_display (public) category::list::prepare_display->category::get_tree install::xml::action::map-category-tree install::xml::action::map-category-tree (public) install::xml::action::map-category-tree->category::get_tree xowiki::notification::do_notifications xowiki::notification::do_notifications (public) xowiki::notification::do_notifications->category::get_tree

Testcases:
category_get_procs
Source code:
    if {[nsv_names categories] ne "" && [nsv_exists categories $category_id]} {
        set tree_id [lindex [nsv_get categories $category_id] 0]
    } else {
        set tree_id ""
    }
    return $tree_id
XQL Not present:
Generic
PostgreSQL XQL file:
packages/categories/tcl/categories-procs-postgresql.xql

Oracle XQL file:
packages/categories/tcl/categories-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: