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)

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: