content::item::get_live_revision (public)

 content::item::get_live_revision -item_id item_id

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

Retrieves the live revision for the item. If the item has no live revision, returns an empty string.

Switches:
-item_id (required)
The item_id of the content item
Returns:
The live revision_id for the item, or an empty string if no live revision exists
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 test_cr_item_search_triggers cr_item_search_triggers (test acs-content-repository) content::item::get_live_revision content::item::get_live_revision test_cr_item_search_triggers->content::item::get_live_revision package_exec_plsql package_exec_plsql (public) content::item::get_live_revision->package_exec_plsql apm_generate_tarball apm_generate_tarball (public) apm_generate_tarball->content::item::get_live_revision content::init content::init (public) content::init->content::item::get_live_revision content::item::get_content content::item::get_content (public) content::item::get_content->content::item::get_live_revision fs::get_object_info fs::get_object_info (public) fs::get_object_info->content::item::get_live_revision packages/acs-subsite/www/user/portrait/index.tcl packages/acs-subsite/ www/user/portrait/index.tcl packages/acs-subsite/www/user/portrait/index.tcl->content::item::get_live_revision

Testcases:
cr_item_search_triggers
Source code:
    return [package_exec_plsql -var_list [list  [list item_id $item_id ]  ] content_item get_live_revision]
Generic XQL file:
packages/acs-content-repository/tcl/content-item-procs.xql

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

Oracle XQL file:
packages/acs-content-repository/tcl/content-item-procs-oracle.xql

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