fs::get_root_folder (public)

 fs::get_root_folder [ -package_id package_id ]

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

Get the root folder of a package instance.

Switches:
-package_id (optional)
Package instance of the root folder to retrieve
Returns:
folder_id of the root folder retrieved

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_root_folder fs::get_root_folder test_fs_add_file_to_folder->fs::get_root_folder test_fs_create_folder_using_api fs_create_folder_using_api (test file-storage) test_fs_create_folder_using_api->fs::get_root_folder ad_conn ad_conn (public) fs::get_root_folder->ad_conn db_exec_plsql db_exec_plsql (public) fs::get_root_folder->db_exec_plsql callback::pm::project_new::impl::file_storage callback::pm::project_new::impl::file_storage (private) callback::pm::project_new::impl::file_storage->fs::get_root_folder fs::after_mount fs::after_mount (private) fs::after_mount->fs::get_root_folder fs::before_unmount fs::before_unmount (private) fs::before_unmount->fs::get_root_folder fs::get_folder_contents fs::get_folder_contents (public, deprecated) fs::get_folder_contents->fs::get_root_folder fs::get_folder_contents_count fs::get_folder_contents_count (public) fs::get_folder_contents_count->fs::get_root_folder

Testcases:
fs_create_folder_using_api, fs_add_file_to_folder
Source code:
    if {$package_id eq ""} {
        set package_id [ad_conn package_id]
    }

    return [db_exec_plsql get_root_folder {}]
Generic XQL file:
packages/file-storage/tcl/file-storage-procs.xql

PostgreSQL XQL file:
<fullquery name="fs::get_root_folder.get_root_folder">
    <querytext>
            select file_storage__get_root_folder(:package_id);
        </querytext>
</fullquery>
packages/file-storage/tcl/file-storage-procs-postgresql.xql

Oracle XQL file:
<fullquery name="fs::get_root_folder.get_root_folder">
    <querytext>
            begin
                :1 := file_storage.get_root_folder(
                    package_id => :package_id
                );
            end;
        </querytext>
</fullquery>
packages/file-storage/tcl/file-storage-procs-oracle.xql

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