category::get_data (public)
category::get_data category_id [ locale ]
Defined in packages/categories/tcl/categories-procs.tcl
Gets the category name and the tree name in the specified language, if available. Use default language otherwise.
- Parameters:
- category_id (required)
- category_id to get the names.
- locale (optional)
- language in which to get the names. [ad_conn locale] used by default.
- Returns:
- list of category_id, category_name, tree_id and tree_name.
- Author:
- Timo Hentschel <timo@timohentschel.de>
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- category_get_procs
Source code: set tree_id [category::get_tree $category_id] if {$tree_id eq ""} { # category not found return } return [list $category_id [category::get_name $category_id $locale] $tree_id [category_tree::get_name $tree_id $locale]]XQL Not present: Generic PostgreSQL XQL file: packages/categories/tcl/categories-procs-postgresql.xql
Oracle XQL file: packages/categories/tcl/categories-procs-oracle.xql