category_tree::get_data (public)

 category_tree::get_data tree_id [ locale ]

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

Get category tree name, description and other data.

Parameters:
tree_id (required)
category tree to get the data of.
locale (optional)
language in which to get the name and description.
Returns:
array: tree_name description site_wide_p
Author:
Timo Hentschel <timo@timohentschel.de>

Partial Call Graph (max 5 caller/called nodes):
%3 test_category_tree_procs category_tree_procs (test categories) category_tree::get_data category_tree::get_data test_category_tree_procs->category_tree::get_data category_tree::get_translation category_tree::get_translation (public) category_tree::get_data->category_tree::get_translation db_string db_string (public) category_tree::get_data->db_string packages/categories/lib/tree-code.tcl packages/categories/ lib/tree-code.tcl packages/categories/lib/tree-code.tcl->category_tree::get_data packages/categories/www/cadmin/category-usage.tcl packages/categories/ www/cadmin/category-usage.tcl packages/categories/www/cadmin/category-usage.tcl->category_tree::get_data packages/categories/www/cadmin/index.tcl packages/categories/ www/cadmin/index.tcl packages/categories/www/cadmin/index.tcl->category_tree::get_data packages/categories/www/cadmin/permission-manage.tcl packages/categories/ www/cadmin/permission-manage.tcl packages/categories/www/cadmin/permission-manage.tcl->category_tree::get_data packages/categories/www/cadmin/tree-copy-view.tcl packages/categories/ www/cadmin/tree-copy-view.tcl packages/categories/www/cadmin/tree-copy-view.tcl->category_tree::get_data

Testcases:
category_tree_procs
Source code:
        set tree(site_wide_p) [db_string get_site_wide_p {
        select site_wide_p
        from category_trees
        where tree_id = :tree_id
        }]
        lassign [category_tree::get_translation $tree_id $locale] tree(tree_name) tree(description)
        return [array get tree]
XQL Not present:
Generic
PostgreSQL XQL file:
packages/categories/tcl/category-trees-procs-postgresql.xql

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

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