fs_folder_p (public)

 fs_folder_p folder_id

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

Returns 1 if the folder_id corresponds to a folder in the file-storage system. Returns 0 otherwise.

Parameters:
folder_id (required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_fs_add_delete_copy fs_add_delete_copy (test file-storage) fs_folder_p fs_folder_p test_fs_add_delete_copy->fs_folder_p db_0or1row db_0or1row (public) fs_folder_p->db_0or1row 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_folder_p packages/attachments/www/file-add-2.tcl packages/attachments/ www/file-add-2.tcl packages/attachments/www/file-add-2.tcl->fs_folder_p packages/attachments/www/file-add.tcl packages/attachments/ www/file-add.tcl packages/attachments/www/file-add.tcl->fs_folder_p packages/attachments/www/simple-add-2.tcl packages/attachments/ www/simple-add-2.tcl packages/attachments/www/simple-add-2.tcl->fs_folder_p packages/attachments/www/simple-add.tcl packages/attachments/ www/simple-add.tcl packages/attachments/www/simple-add.tcl->fs_folder_p

Testcases:
fs_add_delete_copy
Source code:
    return [db_0or1row is_folder {
        select 1 from acs_objects
        where object_id = :folder_id
        and object_type = 'content_folder'}]
Generic XQL file:
<fullquery name="fs_folder_p.object_type">
    <querytext>
            select object_type 
            from acs_objects
            where object_id = :folder_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: