category_tree::get_id (public)

 category_tree::get_id name [ locale ]

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

Gets the id of a category tree given a name.

Parameters:
name (required)
the name of the category tree to retrieve
locale (optional, defaults to "en_US")
the locale in which the name is supplied
Returns:
the tree id or empty string if no category tree was found
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_id category_tree::get_id test_category_tree_procs->category_tree::get_id db_list db_list (public) category_tree::get_id->db_list Class ::xowiki::includelet::categories Class ::xowiki::includelet::categories (public) Class ::xowiki::includelet::categories->category_tree::get_id

Testcases:
category_tree_procs
Source code:
        return [db_list get_category_tree_id {
            select tree_id
            from category_tree_translations
            where name = :name
            and locale = :locale
        }]
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: