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 @@ default_value:  The default value for the attribute, defaults to null -Declaration:

+Declaration:

 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;
 
-
+
See Also:acs_object_type.create_attribute, content_type.create_type

 

@@ -73,13 +73,13 @@ use_context:  The context in which the template is appropriate, such as 'admin' or 'public' -Declaration:

+Declaration:

 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;
 
-
+
See Also:content_item.register_template, content_item.unregister_template, content_item.get_template, content_type.unregister_template, content_type.register_template, @@ -89,12 +89,12 @@
  • Function: content_type.is_content_type - +
    Parameters:
    Not yet documented
    Declaration:
    
    +
    Parameters:
    Not yet documented
    Declaration:
    
     function is_content_type (
       object_type   in acs_object_types.object_type%TYPE
     ) return char;
     
    -

     

  • Procedure: content_type.create_type @@ -117,10 +117,10 @@ id_column:  The primary key for the table, defaults to 'XXX' -name_method:  As in acs_object_type.create_type +name_method:  As in acs_object_type.create_type -Declaration:
    
    +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
     );
     
    -
    +
    See Also:acs_object_type.create_type

     

  • Procedure: content_type.drop_attribute

    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.

    @@ -149,38 +149,39 @@ - + -
    Author:Karl Goldstein
    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).
    Declaration:
    
    +Declaration:
    
     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'
     );
     
    -
    +
    See Also:acs_object.drop_attribute, content_type.create_attribute, cm_form_widget.unregister_attribute_widget

     

  • Procedure: content_type.refresh_view

    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:
    -
    content_type:  The type for which the view is to be created.
    Declaration:
    
    +
    Declaration:
    
     procedure refresh_view (
       content_type  in cr_type_template_map.content_type%TYPE
     );
     
    -
    + See Also:content_type.create_type

     

    @@ -208,7 +209,7 @@ max_n:  The minimun number of relationships of this type which an item must have to go live. -Declaration:
    
    +Declaration:
    
     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
     );
     
    -
    +
    See Also:content_type.register_relation_type, content_type.register_child_type @@ -226,13 +227,13 @@ Procedure: content_type.register_mime_type - +
    Parameters:
    Not yet documented
    Declaration:
    
    +
    Parameters:
    Not yet documented
    Declaration:
    
     procedure register_mime_type (
       content_type  in cr_content_mime_type_map.content_type%TYPE,
       mime_type     in cr_content_mime_type_map.mime_type%TYPE
     );
     
    -

     

  • Procedure: @@ -259,7 +260,7 @@ max_n:  The minimun number of relationships of this type which an item must have to go live. -Declaration:
    
    +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
     );
     
    -
    +
    See Also:content_type.unregister_relation_type

     

    @@ -288,18 +289,18 @@ use_context:  The context in which the template is appropriate, such as 'admin' or 'public' -is_default:  If 't', this template becomes the default template for the -type, default is 'f'. +is_default:  If 't', this template becomes the default template for +the type, default is 'f'. -Declaration:
    
    +Declaration:
    
     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'
     );
     
    -
    +
    See Also:content_item.register_template, content_item.unregister_template, content_item.get_template, content_type.unregister_template, @@ -323,14 +324,14 @@ use_context:  The context in which the template is appropriate, such as 'admin' or 'public' -Declaration:
    
    +Declaration:
    
     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
     );
     
    -
    +
    See Also:content_item.register_template, content_item.unregister_template, content_item.get_template, content_type.unregister_template, content_type.register_template, @@ -354,14 +355,14 @@ relation_tag:  A simple token used to identify a set of relations. -Declaration:
    
    +Declaration:
    
     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
     );
     
    -
    +
    See Also:content_type.register_relation_type, content_type.register_child_type @@ -370,13 +371,13 @@ Procedure: content_type.unregister_mime_type - +
    Parameters:
    Not yet documented
    Declaration:
    
    +
    Parameters:
    Not yet documented
    Declaration:
    
     procedure unregister_mime_type (
       content_type  in cr_content_mime_type_map.content_type%TYPE,
       mime_type     in cr_content_mime_type_map.mime_type%TYPE
     );
     
    -

     

  • Procedure: @@ -395,14 +396,14 @@ relation_tag:  A simple token used to identify a set of relations. -Declaration:
    
    +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
     );
     
    -
    +
    See Also:content_type.register_relation_type

     

    @@ -422,14 +423,14 @@ use_context:  The context in which the template is to be unregistered -Declaration:
    
    +Declaration:
    
     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
     );
     
    -
    +
    See Also:content_item.register_template, content_item.unregister_template, content_item.get_template, content_type.set_default_template, content_type.register_template, @@ -439,5 +440,5 @@
  • -Last Modified: $‌Id: type.html,v 1.1.1.1.30.1 2016/06/09 08:21:01 +Last Modified: $‌Id: type.html,v 1.1.1.1.30.2 2016/06/22 07:40:41 gustafn Exp $