fs::get_item_id (public)

 fs::get_item_id -name name [ -folder_id folder_id ]

Defined in packages/file-storage/tcl/file-storage-procs.tcl

Get the item_id of a file

Switches:
-name (required)
-folder_id (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 test_fs_add_file_to_folder fs_add_file_to_folder (test file-storage) fs::get_item_id fs::get_item_id test_fs_add_file_to_folder->fs::get_item_id ad_conn ad_conn (public) fs::get_item_id->ad_conn content::item::get_id content::item::get_id (public) fs::get_item_id->content::item::get_id fs_get_root_folder fs_get_root_folder (public) fs::get_item_id->fs_get_root_folder packages/acs-templating/www/scripts/xinha/file-selector.tcl packages/acs-templating/ www/scripts/xinha/file-selector.tcl packages/acs-templating/www/scripts/xinha/file-selector.tcl->fs::get_item_id packages/file-storage/www/file-add.tcl packages/file-storage/ www/file-add.tcl packages/file-storage/www/file-add.tcl->fs::get_item_id packages/file-storage/www/folder-add.tcl packages/file-storage/ www/folder-add.tcl packages/file-storage/www/folder-add.tcl->fs::get_item_id packages/file-storage/www/folder-zip-add.tcl packages/file-storage/ www/folder-zip-add.tcl packages/file-storage/www/folder-zip-add.tcl->fs::get_item_id packages/xowiki/www/xinha/file-selector.tcl packages/xowiki/ www/xinha/file-selector.tcl packages/xowiki/www/xinha/file-selector.tcl->fs::get_item_id

Testcases:
fs_add_file_to_folder
Source code:
    if {$folder_id eq ""} {
        set folder_id [fs_get_root_folder -package_id [ad_conn package_id]]
    }
    return [content::item::get_id  -item_path      $name  -root_folder_id $folder_id  -resolve_index "f"]
Generic XQL file:
packages/file-storage/tcl/file-storage-procs.xql

PostgreSQL XQL file:
packages/file-storage/tcl/file-storage-procs-postgresql.xql

Oracle XQL file:
packages/file-storage/tcl/file-storage-procs-oracle.xql

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