fs::get_object_prettyname (public)

 fs::get_object_prettyname -object_id object_id

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

Select a pretty name for this object. If title is empty, returns name.

Switches:
-object_id (required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_fs_add_delete_copy fs_add_delete_copy (test file-storage) fs::get_object_prettyname fs::get_object_prettyname test_fs_add_delete_copy->fs::get_object_prettyname db_string db_string (public) fs::get_object_prettyname->db_string

Testcases:
fs_add_delete_copy
Source code:
    return [db_string select_object_prettyname {} -default $object_id]
Generic XQL file:
<fullquery name="fs::get_object_prettyname.select_object_prettyname">
    <querytext>
            select coalesce(title,name) as prettyname
            from fs_objects
            where object_id = :object_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: