acs::db::nsdb-postgresql method call content_item relate (public)

 <instance of acs::db::nsdb-postgresql[i]> call content_item relate \
    [ -dbn dbn ] -item_id item_id  -object_id object_id  \
    [ -relation_tag relation_tag ] [ -order_n order_n ] \
    [ -relation_type relation_type ]

Defined in packages/acs-tcl/tcl/00-acs-tcl-init.tcl

Automatically generated method TYPES: integer integer {character varying} integer {character varying}

Switches:
-dbn (optional)
-item_id (required)
-object_id (required)
-relation_tag (optional, defaults to "generic")
-order_n (optional, accept empty)
-relation_type (optional, defaults to "cr_item_rel")

Testcases:
No testcase defined.
Source code:
db_with_handle -dbn $dbn __DB {
   set s [ns_pg_bind 0or1row $__DB {select content_item__relate(CAST(:item_id AS integer),CAST(:object_id AS integer),:relation_tag,CAST(:order_n AS integer),:relation_type)}]
   return [ns_set value $s 0]
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: