attribute::add (public)

 attribute::add [ -default default ] [ -min_n_values min_n_values ] \
    [ -max_n_values max_n_values ] object_type datatype pretty_name \
    pretty_plural

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

wrapper for the acs_attribute.create_attribute call. Note that this procedure assumes type-specific storage.

Switches:
-default (optional)
-min_n_values (optional)
-max_n_values (optional)
Parameters:
object_type (required)
datatype (required)
pretty_name (required)
pretty_plural (required)
Returns:
The attribute_id of the newly created attribute
Author:
Michael Bryzek <mbryzek@arsdigita.com>
Created:
12/2000

Partial Call Graph (max 5 caller/called nodes):
%3 test_acs_subsite_attributes acs_subsite_attributes (test acs-subsite) attribute::add attribute::add test_acs_subsite_attributes->attribute::add attribute::datatype_to_sql_type attribute::datatype_to_sql_type (private) attribute::add->attribute::datatype_to_sql_type db_0or1row db_0or1row (public) attribute::add->db_0or1row db_string db_string (public) attribute::add->db_string plsql_utility::generate_oracle_name plsql_utility::generate_oracle_name (public) attribute::add->plsql_utility::generate_oracle_name packages/acs-subsite/www/admin/attributes/add-2.tcl packages/acs-subsite/ www/admin/attributes/add-2.tcl packages/acs-subsite/www/admin/attributes/add-2.tcl->attribute::add

Testcases:
acs_subsite_attributes
[ show source ]
Show another procedure: