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 (optional, defaults to
"t"
)- If t, we execute the pl/sql. If f, we return a string that represents the pl/sql we are about to execute.
- -supertype (optional, defaults to
"group"
)- Parameters:
- pretty_name (required)
- pretty_plural (required)
- 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):
- Testcases:
- acs_subsite_group_type