content_search::datasource (private)

 content_search::datasource object_id

Defined in packages/acs-content-repository/tcl/search-procs.tcl

Provides data source for search interface. Used to access content items after search.

Parameters:
object_id

Partial Call Graph (max 5 caller/called nodes):
%3 cr_fs_path cr_fs_path (private) db_0or1row db_0or1row (public) content_search::datasource content_search::datasource content_search::datasource->cr_fs_path content_search::datasource->db_0or1row

Testcases:
No testcase defined.
Source code:
    set cr_fs_path [cr_fs_path]
    db_0or1row revisions_datasource {
        select r.revision_id as object_id,
               r.title,
               case i.storage_type
                    when 'lob' then cast(r.lob as text)
                    when 'file' then :cr_fs_path || r.content
                    else r.content
               end as content,
               r.mime_type as mime,
           '' as keywords,
               i.storage_type
        from cr_revisions r, cr_items i
        where revision_id = :object_id
        and i.item_id = r.item_id
    } -column_array datasource

    return [array get datasource]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: