package_create_attribute_list (private)

 package_create_attribute_list [ -supertype supertype ] \
    [ -object_name object_name ] [ -limit_to limit_to ] \
    [ -table table ] [ -column column ] [ -column_value column_value ] \
    object_type

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

Generates the list of attributes for this object type. Each element in the list is (table_name, column_name, default_value, column_value) where default_value and column_value are optional. Note that if either of table_name, id_column is unspecified, we retrieve the values for both from the acs_object_types table

Switches:
-supertype (optional)
The supertype of the object we are creating. If specified, along with object_name, we lookup the parameters to supertype.object_name and include any missing parameters in our argument list.
-object_name (optional)
The name of the function / procedure we are creating. See supertype for explanation.
-limit_to (optional)
If empty, this argument is ignored. Otherwise, it is a list of all the columns to be included in the attribute list. Any attribute whose column_name is not in this list is then ignored.
-table (optional)
The table_name for this object_type (from the acs_object_types tables)
-column (optional)
The id_column for this object_type (from the acs_object_types tables)
-column_value (optional)
The value for this column in the present calling function. Useful when you are calling supertype function and need to refer to the supertype argument by a different name locally.
Parameters:
object_type (required)
The object type for which we are generating attributes
Author:
Michael Bryzek <mbryzek@arsdigita.com>
Created:
12/2000

Partial Call Graph (max 5 caller/called nodes):
%3 package_generate_body package_generate_body (private) package_create_attribute_list package_create_attribute_list package_generate_body->package_create_attribute_list acs_object_type::get acs_object_type::get (public) package_create_attribute_list->acs_object_type::get db_foreach db_foreach (public) package_create_attribute_list->db_foreach package_attribute_default package_attribute_default (private) package_create_attribute_list->package_attribute_default package_table_columns_for_type package_table_columns_for_type (private) package_create_attribute_list->package_table_columns_for_type util_memoize util_memoize (public) package_create_attribute_list->util_memoize

Testcases:
No testcase defined.
[ show source ]
Show another procedure: