Index: openacs-4/packages/acs-content-repository/www/doc/api/keyword.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/www/doc/api/keyword.adp,v diff -u -r1.2.2.4 -r1.2.2.5 --- openacs-4/packages/acs-content-repository/www/doc/api/keyword.adp 9 Jun 2016 13:03:11 -0000 1.2.2.4 +++ openacs-4/packages/acs-content-repository/www/doc/api/keyword.adp 1 Jul 2016 09:17:33 -0000 1.2.2.5 @@ -32,12 +32,12 @@ Returns:The description for the specified keyword Parameters:
-
keyword_id:  The keyword id
Declaration:

+Declaration:

 function get_description (
   keyword_id  in cr_keywords.keyword_id%TYPE
 ) return varchar2;
 
-
+
See Also:content_keyword.get_heading, content_keyword.set_description @@ -51,12 +51,12 @@ Returns:The heading for the specified keyword Parameters:
-
keyword_id:  The keyword id
Declaration:

+Declaration:

 function get_heading (
   keyword_id  in cr_keywords.keyword_id%TYPE
 ) return varchar2;
 
-
+
See Also:content_keyword.set_heading, content_keyword.get_description @@ -72,12 +72,12 @@ keyword exists Parameters:
-
keyword_id:  The keyword id
Declaration:

+Declaration:

 function get_path (
   keyword_id in cr_keywords.keyword_id%TYPE
 ) return varchar2;
 
-
+
See Also:content_keyword.new

 

@@ -87,8 +87,8 @@ Author:Karl Goldstein -Returns:'t' if the keyword may be matched to an item, 'f' -otherwise +Returns:'t' if the keyword may be matched to an +item, 'f' otherwise Parameters:
@@ -99,24 +99,27 @@ of the following values: -
item_id:  The item id
Declaration:

+Declaration:

 function is_assigned (
   item_id      in cr_items.item_id%TYPE,
   keyword_id   in cr_keywords.keyword_id%TYPE,
   recurse      in varchar2 default 'none'
 ) return varchar2;
 
-
+
See Also:content_keyword.item_assign

 

@@ -127,22 +130,23 @@ Author:Karl Goldstein -Returns:'t' if the keyword has no descendants, 'f' -otherwise +Returns:'t' if the keyword has no descendants, +'f' otherwise Parameters:
-
keyword_id:  The keyword id
Declaration:

+Declaration:

 function is_leaf (
   keyword_id  in cr_keywords.keyword_id%TYPE
 ) return varchar2;
 
-
+
See Also:content_keyword.new

 

  • Function: content_keyword.new -

    Creates a new keyword (also known as "subject category").

    +

    Creates a new keyword (also known as "subject +category").

    @@ -158,20 +162,20 @@ - + - - - -
    Author:Karl Goldstein
    keyword_id:  The id of the new keyword. A new id will be allocated if this parameter is null
    object_type:  The type for the new keyword, defaults to 'content_keyword'. -This parameter may be used by subclasses of -content_keyword to initialize the superclass.object_type:  The type for the new keyword, defaults to +'content_keyword'. This parameter may be used by subclasses +of content_keyword to initialize the superclass.
    creation_date:  As in acs_object.new +creation_date:  As in acs_object.new
    creation_ip:  As in acs_object.new +creation_ip:  As in acs_object.new
    creation_user:  As in acs_object.new +creation_user:  As in acs_object.new
    Declaration:
    
    +Declaration:
    
     function new (
       heading       in cr_keywords.heading%TYPE,
       description   in cr_keywords.description%TYPE default null,
    @@ -185,7 +189,7 @@
       object_type   in acs_object_types.object_type%TYPE default 'content_keyword'
     ) return cr_keywords.keyword_id%TYPE;
     
    -
    +
    See Also:acs_object.new, content_item.new, content_keyword.item_assign, content_keyword.delete @@ -199,12 +203,12 @@ Author:Karl Goldstein Parameters:
    -
    keyword_id:  The id of the keyword to be deleted
    Declaration:
    
    +Declaration:
    
     procedure delete (
       keyword_id  in cr_keywords.keyword_id%TYPE
     );
     
    -
    +
    See Also:acs_object.delete, content_keyword.item_unassign

     

    @@ -220,13 +224,13 @@ keyword_id:  The keyword to be assigned -context_id:  As in acs_rel.new, deprecated +context_id:  As in acs_rel.new, deprecated -creation_ip:  As in acs_rel.new, deprecated +creation_ip:  As in acs_rel.new, deprecated -creation_user:  As in acs_rel.new, deprecated +creation_user:  As in acs_rel.new, deprecated -Declaration:
    
    +Declaration:
    
     procedure item_assign (
       item_id       in cr_items.item_id%TYPE,
       keyword_id    in cr_keywords.keyword_id%TYPE,
    @@ -235,7 +239,7 @@
       creation_ip   in acs_objects.creation_ip%TYPE default null
     );
     
    -
    +
    See Also:acs_rel.new, content_keyword.item_unassign

     

    @@ -251,13 +255,13 @@ keyword_id:  The keyword to be unassigned -Declaration:
    
    +Declaration:
    
     procedure item_unassign (
       item_id     in cr_items.item_id%TYPE,
       keyword_id  in cr_keywords.keyword_id%TYPE
     );
     
    -
    +
    See Also:acs_rel.delete, content_keyword.item_assign

     

    @@ -273,13 +277,13 @@ description:  The new description -Declaration:
    
    +Declaration:
    
     procedure set_description (
       keyword_id  in cr_keywords.keyword_id%TYPE,
       description in cr_keywords.description%TYPE
     );
     
    -
    +
    See Also:content_keyword.set_heading, content_keyword.get_description @@ -295,13 +299,13 @@ heading:  The new heading -Declaration:
    
    +Declaration:
    
     procedure set_heading (
       keyword_id  in cr_keywords.keyword_id%TYPE,
       heading     in cr_keywords.heading%TYPE
     );
     
    -
    +
    See Also:content_keyword.get_heading, content_keyword.set_description @@ -310,5 +314,5 @@

     

    -Last Modified: $‌Id: keyword.html,v 1.1.1.1.30.1 2016/06/09 08:21:01 +Last Modified: $‌Id: keyword.html,v 1.1.1.1.30.2 2016/06/22 07:40:41 gustafn Exp $