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):
- 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