email_image::add_relation (public)

 email_image::add_relation -user_id user_id -item_id item_id

Defined in packages/acs-subsite/tcl/email-image-procs.tcl

Add a new relation between user_id and item_id

Switches:
-user_id
(required)
-item_id
(required)
the item_id of the image in the content repository

Partial Call Graph (max 5 caller/called nodes):
%3 email_image::edit_email_image email_image::edit_email_image (public) email_image::add_relation email_image::add_relation email_image::edit_email_image->email_image::add_relation email_image::new_item email_image::new_item (public) email_image::new_item->email_image::add_relation db_exec_plsql db_exec_plsql (public) email_image::add_relation->db_exec_plsql

Testcases:
No testcase defined.
Source code:
    db_exec_plsql add_relation {}
Generic XQL file:
packages/acs-subsite/tcl/email-image-procs.xql

PostgreSQL XQL file:
<fullquery name="email_image::add_relation.add_relation">
    <querytext>
	select acs_rel__new (
        null,
        'email_image_rel',
        :user_id,
        :item_id,
        null,
        null,
        null
        )
     </querytext>
</fullquery>
packages/acs-subsite/tcl/email-image-procs-postgresql.xql

Oracle XQL file:
<fullquery name="email_image::add_relation.add_relation">
    <querytext>
        begin
          :1 := acs_rel.new (
                 rel_type => 'email_image_rel',
                 object_id_one => :user_id,
                 object_id_two => :item_id);
        end;
     </querytext>
</fullquery>
packages/acs-subsite/tcl/email-image-procs-oracle.xql

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