Index: openacs-4/packages/acs-content-repository/www/doc/api/type.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/www/doc/api/type.adp,v diff -u -r1.2.2.4 -r1.2.2.5 --- openacs-4/packages/acs-content-repository/www/doc/api/type.adp 9 Jun 2016 13:03:11 -0000 1.2.2.4 +++ openacs-4/packages/acs-content-repository/www/doc/api/type.adp 1 Jul 2016 09:17:33 -0000 1.2.2.5 @@ -43,7 +43,7 @@
+
function create_attribute ( content_type in acs_attributes.object_type%TYPE, attribute_name in acs_attributes.attribute_name%TYPE, @@ -54,7 +54,7 @@ column_spec in varchar2 default 'varchar2(4000)' ) return acs_attributes.attribute_id%TYPE; -
@@ -73,13 +73,13 @@
+
function get_template ( content_type in cr_type_template_map.content_type%TYPE, use_context in cr_type_template_map.use_context%TYPE ) return cr_templates.template_id%TYPE; -
Parameters: | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Not yet documented | ||||||||||
Declaration: | ||||||||||
+ |
+
procedure create_type ( content_type in acs_object_types.object_type%TYPE, supertype in acs_object_types.object_type%TYPE @@ -132,14 +132,14 @@ name_method in acs_object_types.name_method%TYPE default null ); -
Drop an existing attribute. If you are using CMS, make sure to -call cm_form_widget.unregister_attribute_widget before +call cm_form_widget.unregister_attribute_widget before calling this function.
Author: | Karl Goldstein | @@ -149,38 +149,39 @@||||
---|---|---|---|---|---|
attribute_name: | The name of the attribute to drop | ||||
drop_column: | If 't', will also alter the table and remove the column where -the attribute is stored. The default is 'f' (leaves the table -untouched). | +drop_column: | If 't', will also alter the table and remove the column +where the attribute is stored. The default is 'f' (leaves +the table untouched). |
+
procedure drop_attribute ( content_type in acs_attributes.object_type%TYPE, attribute_name in acs_attributes.attribute_name%TYPE, drop_column in varchar2 default 'f' ); -
Create a view for the type which joins all attributes of the -type, including the inherited attributes. The view is named "
+type, including the inherited attributes. The view is named +" X" Called by create_attribute and create_type.Author: | Karl Goldstein | |||
---|---|---|---|---|
Parameters: | ||||
| ||||
Declaration: | ||||
+ |
procedure refresh_view ( content_type in cr_type_template_map.content_type%TYPE ); -
@@ -208,7 +209,7 @@
+
procedure register_child_type ( parent_type in cr_type_children.parent_type%TYPE, child_type in cr_type_children.child_type%TYPE, @@ -217,7 +218,7 @@ max_n in integer default null ); -
Parameters: | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Not yet documented | ||||||||||
Declaration: | ||||||||||
+ |
+
procedure register_relation_type ( content_type in cr_type_relations.content_type%TYPE, target_type in cr_type_relations.target_type%TYPE, @@ -268,7 +269,7 @@ max_n in integer default null ); -
@@ -288,18 +289,18 @@
+
procedure register_template ( content_type in cr_type_template_map.content_type%TYPE, template_id in cr_templates.template_id%TYPE, use_context in cr_type_template_map.use_context%TYPE, is_default in cr_type_template_map.is_default%TYPE default 'f' ); -
+
procedure set_default_template ( content_type in cr_type_template_map.content_type%TYPE, template_id in cr_templates.template_id%TYPE, use_context in cr_type_template_map.use_context%TYPE ); -
+
procedure unregister_child_type ( parent_type in cr_type_children.parent_type%TYPE, child_type in cr_type_children.child_type%TYPE, relation_tag in cr_type_children.relation_tag%TYPE default null ); -
Parameters: | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Not yet documented | ||||||||||
Declaration: | ||||||||||
+ |
+
procedure unregister_relation_type ( content_type in cr_type_relations.content_type%TYPE, target_type in cr_type_relations.target_type%TYPE, relation_tag in cr_type_relations.relation_tag%TYPE default null ); -
@@ -422,14 +423,14 @@
+
procedure unregister_template ( content_type in cr_type_template_map.content_type%TYPE default null, template_id in cr_templates.template_id%TYPE, use_context in cr_type_template_map.use_context%TYPE default null ); -