membership_rel::get (public)

 membership_rel::get -rel_id rel_id

Defined in packages/acs-tcl/tcl/membership-rel-procs.tcl

Return the user_id of a rel_id

Switches:
-rel_id (required)

Partial Call Graph (max 5 caller/called nodes):
%3 membership_rel::get_group_id membership_rel::get_group_id (public) membership_rel::get membership_rel::get membership_rel::get_group_id->membership_rel::get membership_rel::get_user_id membership_rel::get_user_id (public) membership_rel::get_user_id->membership_rel::get packages/acs-subsite/www/members/member-state-change.tcl packages/acs-subsite/ www/members/member-state-change.tcl packages/acs-subsite/www/members/member-state-change.tcl->membership_rel::get db_1row db_1row (public) membership_rel::get->db_1row

Testcases:
No testcase defined.
Source code:
        db_1row select_rel_id {
            select u.user_id, r.object_id_one as group_id
            from   acs_rels r,
            users u
            where  r.rel_id = :rel_id
            and    u.user_id = r.object_id_two
        }
        return [list user_id $user_id group_id $group_id]
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-tcl/tcl/membership-rel-procs.xql

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