xo::db::CrClass proc id_belongs_to_package (public)

 xo::db::CrClass[i] id_belongs_to_package [ -item_id item_id ] \
    [ -revision_id revision_id ] -package_id package_id 

Defined in /var/www/openacs.org/packages/xotcl-core/tcl/cr-procs.tcl

Check if the provided item_id or revision_id belongs to the provided package.

Switches:
-item_id (optional, integer, defaults to "0")
-revision_id (optional, integer, defaults to "0")
-package_id (required, integer)
Returns:
boolean success

Testcases:
create_form_with_form_instance, check_page_template_constraint
[ show source ]
Show another procedure: