attribute::array_for_type (public)
attribute::array_for_type [ -start_with start_with ] \ [ -include_storage_types include_storage_types ] array_name \ enum_array_name object_type
Defined in packages/acs-subsite/tcl/attribute-procs.tcl
Fills in 2 arrays used for displaying attributes
- Switches:
- -start_with
(defaults to"acs_object"
) (optional)- -include_storage_types
(defaults to"type_specific"
) (optional)- Parameters:
- array_name - The name of the array to hold the basic attribute information. The attributes defined are:
* array_name(pretty_name:$name) The pretty_name of the attribute * array_name(id:$name) The attribute_id of the attribute * array_name(datatype:$name) The datatype of the attribute
enum_array_name - The name of the array to hold the pretty name of the values of an enumeration. This is only used when the datatype of the attribute_name is enumeration. This array is a mapping from "$attribute_name:enum_value" to value_pretty_name.
object_type - The object for which we are looking up attributes
- Returns:
- A list of all the names of attributes we looked up. This list can be used to iterated through the arrays:
set attr_list [attribute::array_for_type attr_props enum_values "group"] foreach key $attr_list { set attribute_id $attr_props(id:$attribute_name) ... }- Author:
- Michael Bryzek <mbryzek@arsdigita.com>
- Created:
- 1/8/2001
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.