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):
%3 test_cr_item_search_triggers cr_item_search_triggers (test acs-content-repository) content::item::get_id_by_name content::item::get_id_by_name test_cr_item_search_triggers->content::item::get_id_by_name test_fs_add_file_to_folder fs_add_file_to_folder (test file-storage) test_fs_add_file_to_folder->content::item::get_id_by_name db_string db_string (public) content::item::get_id_by_name->db_string fs::file_copy fs::file_copy (public) fs::file_copy->content::item::get_id_by_name packages/acs-developer-support/www/css-edit.tcl packages/acs-developer-support/ www/css-edit.tcl packages/acs-developer-support/www/css-edit.tcl->content::item::get_id_by_name packages/file-storage/www/copy.tcl packages/file-storage/ www/copy.tcl packages/file-storage/www/copy.tcl->content::item::get_id_by_name packages/file-storage/www/folder-create.tcl packages/file-storage/ www/folder-create.tcl packages/file-storage/www/folder-create.tcl->content::item::get_id_by_name packages/file-storage/www/folder-zip-add.tcl packages/file-storage/ www/folder-zip-add.tcl packages/file-storage/www/folder-zip-add.tcl->content::item::get_id_by_name

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

[ hide source ] | [ make this the default ]
Show another procedure: