content::item::get_best_revision (public)

 content::item::get_best_revision -item_id item_id

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

Attempts to retrieve the live revision for the item. If no live revision exists, attempts to retrieve the latest revision. If the item has no revisions, returns an empty string.

Switches:
-item_id (required)
The item_id of the content item
Returns:
The best revision_id for the item, or an empty string if no revisions exist
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_best_revision content::item::get_best_revision test_cr_item_search_triggers->content::item::get_best_revision package_exec_plsql package_exec_plsql (public) content::item::get_best_revision->package_exec_plsql content::init content::init (public) content::init->content::item::get_best_revision image::resize image::resize (public) image::resize->content::item::get_best_revision packages/forums/lib/message/attachment-list.tcl packages/forums/ lib/message/attachment-list.tcl packages/forums/lib/message/attachment-list.tcl->content::item::get_best_revision packages/general-comments/www/admin/delete.tcl packages/general-comments/ www/admin/delete.tcl packages/general-comments/www/admin/delete.tcl->content::item::get_best_revision packages/general-comments/www/delete.tcl packages/general-comments/ www/delete.tcl packages/general-comments/www/delete.tcl->content::item::get_best_revision

Testcases:
cr_item_search_triggers
[ show source ]
Show another procedure: