fs_file_p (public)

 fs_file_p file_id

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

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

Parameters:
file_id (required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_fs_add_delete_copy fs_add_delete_copy (test file-storage) fs_file_p fs_file_p test_fs_add_delete_copy->fs_file_p db_0or1row db_0or1row (public) fs_file_p->db_0or1row packages/file-storage/www/file-edit.tcl packages/file-storage/ www/file-edit.tcl packages/file-storage/www/file-edit.tcl->fs_file_p packages/file-storage/www/file.tcl packages/file-storage/ www/file.tcl packages/file-storage/www/file.tcl->fs_file_p packages/file-storage/www/permissions.tcl packages/file-storage/ www/permissions.tcl packages/file-storage/www/permissions.tcl->fs_file_p

Testcases:
fs_add_delete_copy
Source code:
    return [db_0or1row is_file {
        select 1 from acs_objects
        where object_id = :file_id
        and object_type = 'content_item'}]
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: