content::item::get_id_by_name (public)
content::item::get_id_by_name -name name -parent_id parent_id
Defined in packages/acs-content-repository/tcl/content-item-procs.tcl
Returns The item_id of the content item with the passed in name
- Switches:
- -name (required)
- Name of the content item
- -parent_id (required)
- Parent_id of the content item
- Returns:
- The item_id belonging to the name, empty string if no item_id was found
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- cr_item_search_triggers, fs_add_file_to_folder
Source code: return [db_string get_item_id_by_name {} -default ""]Generic XQL file: <fullquery name="content::item::get_id_by_name.get_item_id_by_name"> <querytext> select item_id from cr_items where name = :name and parent_id = :parent_id </querytext> </fullquery>packages/acs-content-repository/tcl/content-item-procs.xql
PostgreSQL XQL file: packages/acs-content-repository/tcl/content-item-procs-postgresql.xql
Oracle XQL file: packages/acs-content-repository/tcl/content-item-procs-oracle.xql