fs::get_parent (public)

 fs::get_parent -item_id item_id

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

Get the parent of a given item.

Switches:
-item_id (required)

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_parent fs::get_parent test_fs_add_file_to_folder->fs::get_parent db_string db_string (public) fs::get_parent->db_string fs::add_created_version fs::add_created_version (public, deprecated) fs::add_created_version->fs::get_parent fs::delete_file fs::delete_file (public) fs::delete_file->fs::get_parent fs::delete_folder fs::delete_folder (public) fs::delete_folder->fs::get_parent 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_parent packages/file-storage/www/download-zip.tcl packages/file-storage/ www/download-zip.tcl packages/file-storage/www/download-zip.tcl->fs::get_parent

Testcases:
fs_add_file_to_folder
Source code:
    return [db_string get_parent_id {}]
Generic XQL file:
<fullquery name="fs::get_parent.get_parent_id">
    <querytext>
	select parent_id from cr_items where item_id=:item_id
    </querytext>
</fullquery>
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: