content::revision::item_id (public)

 content::revision::item_id -revision_id revision_id

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

Gets the item_id of the item to which the revision belongs.

Switches:
-revision_id (required)
The revision id
Returns:
The item_id of the item to which this revision belongs

Partial Call Graph (max 5 caller/called nodes):
%3 test_content_revision content_revision (test acs-content-repository) content::revision::item_id content::revision::item_id test_content_revision->content::revision::item_id db_string db_string (public) content::revision::item_id->db_string acs_mail_lite::send_immediately acs_mail_lite::send_immediately (private) acs_mail_lite::send_immediately->content::revision::item_id callback::search::url::impl::file_storage_object callback::search::url::impl::file_storage_object (private) callback::search::url::impl::file_storage_object->content::revision::item_id content::item::get_content content::item::get_content (public) content::item::get_content->content::revision::item_id content::item::get_revision_content content::item::get_revision_content (public) content::item::get_revision_content->content::revision::item_id content::revision::file_stats content::revision::file_stats (private) content::revision::file_stats->content::revision::item_id

Testcases:
content_revision
Source code:
    return [db_string item_id {
        select item_id
        from cr_revisions
        where revision_id = :revision_id
    } -default ""]
Generic XQL file:
packages/acs-content-repository/tcl/content-revision-procs.xql

PostgreSQL XQL file:
packages/acs-content-repository/tcl/content-revision-procs-postgresql.xql

Oracle XQL file:
<fullquery name="content::revision::item_id.item_id">
    <querytext>
      select item_id
      from cr_revisions
      where revision_id = :revision_id
    </querytext>
</fullquery>
packages/acs-content-repository/tcl/content-revision-procs-oracle.xql

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