group_type::new (public)

 group_type::new [ -group_type group_type ] [ -execute_p execute_p ] \
    [ -supertype supertype ] pretty_name pretty_plural

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

Creates a new group type

Example:

        # create a new group of type user_discount_class
        set group_type [group_type::new -group_type $group_type  -supertype group  "User Discount Class" "User Discount Classes"]
        

Switches:
-group_type
(optional)
The type of group_type to create. If empty, we generate a unique group_type based on "group_id" where id is the next value from acs_object_id_seq.
-execute_p
(defaults to "t") (optional)
If t, we execute the pl/sql. If f, we return a string that represents the pl/sql we are about to execute.
-supertype
(defaults to "group") (optional)
Parameters:
pretty_name
pretty_plural
Returns:
the group_type of the object created
Author:
Michael Bryzek <mbryzek@arsdigita.com>
Created:
12/2000

Partial Call Graph (max 5 caller/called nodes):
%3 test_acs_subsite_group_type acs_subsite_group_type (test acs-subsite) group_type::new group_type::new test_acs_subsite_group_type->group_type::new db_1row db_1row (public) group_type::new->db_1row db_dml db_dml (public) group_type::new->db_dml db_exec_plsql db_exec_plsql (public) group_type::new->db_exec_plsql db_map db_map (public) group_type::new->db_map db_nextval db_nextval (public) group_type::new->db_nextval packages/acs-subsite/www/admin/group-types/new.tcl packages/acs-subsite/ www/admin/group-types/new.tcl packages/acs-subsite/www/admin/group-types/new.tcl->group_type::new

Testcases:
acs_subsite_group_type
[ show source ]
Show another procedure: