xo::db::CrClass proc lookup (public)
xo::db::CrClass lookup -name name [ -parent_id parent_id ] \ [ -content_type content_type ]
Defined in packages/xotcl-core/tcl/cr-procs.tcl
Check, whether a content item with the given name exists. When content_type is provided (e.g. -content_type "::%") then a like operation is applied on the value.
- Switches:
- -name
(required)- -parent_id
(defaults to"-100"
) (optional)- -content_type
(optional)- Returns:
- item_id If the item exists, return its item_id, otherwise 0.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- xotcl_core_tutorial_4, create_folder_with_page, xowiki_test_cases, path_resolve