group::get_id (public)

 group::get_id -group_name group_name [ -subsite_id subsite_id ] \
    [ -application_group_id application_group_id ]

Defined in packages/acs-subsite/tcl/group-procs.tcl

Retrieve the group_id to a given group-name. If you have more than one group with this name, it will return the first one it finds. Keep that in mind when using this procedure.

Switches:
-group_name (required)
the name of the group to look for
-subsite_id (optional)
the ID of the subsite to search for the group name
-application_group_id (optional)
the ID of the application group to search for the group name
Returns:
the first group_id of the groups found for that group_name.
Authors:
Christian Langmann <C_Langmann@gmx.de>
Malte Sussdorff <openacs@sussdorff.de>
Created:
2005-06-09

Testcases:
acs_subsite_group_type
Source code:
    return [util_memoize [list group::get_id_not_cached  -group_name $group_name  -subsite_id $subsite_id  -application_group_id $application_group_id]]
XQL Not present:
Generic
PostgreSQL XQL file:
packages/acs-subsite/tcl/group-procs-postgresql.xql

Oracle XQL file:
packages/acs-subsite/tcl/group-procs-oracle.xql

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