category_tree::add (public)
category_tree::add [ -tree_id tree_id ] -name name \ [ -description description ] [ -site_wide_p site_wide_p ] \ [ -locale locale ] [ -user_id user_id ] \ [ -creation_ip creation_ip ] [ -context_id context_id ]
Defined in packages/categories/tcl/category-trees-procs.tcl
Insert a new category tree. The same translation will be added in the default language if it's in a different language.
- Switches:
- Options:
- -tree_id (optional)
- -name (required)
- -description (optional)
- -site_wide_p (optional, defaults to
"f"
)- -locale (optional)
- -user_id (optional)
- -creation_ip (optional)
- -context_id (optional)
- -tree_id
- tree_id of the category tree to be inserted.
- -locale
- locale of the language. [ad_conn locale] used by default.
- -name
- tree name.
- -description
- description of the category tree.
- -user_id
- user that adds the category tree. [ad_conn user_id] used by default.
- -creation_ip
- ip-address of the user that adds the category tree. [ad_conn peeraddr] used by default.
- -context_id
- context_id of the category tree. [ad_conn package_id] used by default.
- Returns:
- tree_id
- Author:
- Timo Hentschel <timo@timohentschel.de>
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- category_synonyms, category_link, category_crud, category_get_procs, category_tree_procs