Index: openacs-4/packages/acs-content-repository/www/doc/api/keyword.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/www/doc/api/keyword.html,v diff -u -N -r1.1.1.1.30.1 -r1.1.1.1.30.2 --- openacs-4/packages/acs-content-repository/www/doc/api/keyword.html 9 Jun 2016 08:21:01 -0000 1.1.1.1.30.1 +++ openacs-4/packages/acs-content-repository/www/doc/api/keyword.html 22 Jun 2016 07:40:41 -0000 1.1.1.1.30.2 @@ -1,569 +1,569 @@ - -
--Content Repository : content_keyword -
- - -
Keyword cassify a content_item. For example: If you have some press releases about dogs. -You might want assigning the Keyword dog to every single content_item. -
-- -
- - -
Retrieves the description of the content keyword -
- -Author: | Karl Goldstein | |||
---|---|---|---|---|
Returns: | The description for the specified keyword | |||
Parameters: | ||||
-
- - |
- ||||
Declaration: | ||||
--function get_description ( - keyword_id in cr_keywords.keyword_id%TYPE -) return varchar2; - -- | ||||
See Also: | content_keyword.get_heading, content_keyword.set_description |
- -
-
Retrieves the heading of the content keyword -
- -Author: | Karl Goldstein | |||
---|---|---|---|---|
Returns: | The heading for the specified keyword | |||
Parameters: | ||||
-
- - |
- ||||
Declaration: | ||||
--function get_heading ( - keyword_id in cr_keywords.keyword_id%TYPE -) return varchar2; - -- | ||||
See Also: | content_keyword.set_heading, content_keyword.get_description |
- -
-
Retreives a path to the keyword/subject category, with the most general -category at the root of the path -
- -Author: | Karl Goldstein | |||
---|---|---|---|---|
Returns: | The path to the keyword, or null if no such keyword exists | |||
Parameters: | ||||
-
- - |
- ||||
Declaration: | ||||
--function get_path ( - keyword_id in cr_keywords.keyword_id%TYPE -) return varchar2; - -- | ||||
See Also: | content_keyword.new |
- -
-
Determines if the keyword is assigned to the item -
- -Author: | Karl Goldstein | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Returns: | 't' if the keyword may be matched to an item, 'f' otherwise | |||||||||
Parameters: | ||||||||||
-
- - |
- ||||||||||
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 |
- -
-
Determines if the keyword has no sub-keywords associated with it -
- -Author: | Karl Goldstein | |||
---|---|---|---|---|
Returns: | 't' if the keyword has no descendants, 'f' otherwise | |||
Parameters: | ||||
-
- - |
- ||||
Declaration: | ||||
--function is_leaf ( - keyword_id in cr_keywords.keyword_id%TYPE -) return varchar2; - -- | ||||
See Also: | content_keyword.new |
- -
-
Creates a new keyword (also known as "subject category"). -
- -Author: | Karl Goldstein | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns: | The id of the newly created keyword | ||||||||||||||||||||||||
Parameters: | |||||||||||||||||||||||||
-
- - |
- |||||||||||||||||||||||||
Declaration: | |||||||||||||||||||||||||
--function new ( - heading in cr_keywords.heading%TYPE, - description in cr_keywords.description%TYPE default null, - parent_id in cr_keywords.parent_id%TYPE default null, - keyword_id in cr_keywords.keyword_id%TYPE default null, - creation_date in acs_objects.creation_date%TYPE - default sysdate, - creation_user in acs_objects.creation_user%TYPE - default null, - creation_ip in acs_objects.creation_ip%TYPE default null, - 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 |
- -
-
Deletes the specified keyword, which must be a leaf. Unassigns the -keyword from all content items. Use with caution - this -operation cannot be undone. -
- -Author: | Karl Goldstein | |||
---|---|---|---|---|
Parameters: | ||||
-
- - |
- ||||
Declaration: | ||||
--procedure delete ( - keyword_id in cr_keywords.keyword_id%TYPE -); - -- | ||||
See Also: | acs_object.delete, content_keyword.item_unassign |
- -
-
Assigns this keyword to a content item, creating a relationship between them -
- -Author: | Karl Goldstein | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters: | ||||||||||||||||
-
- - |
- ||||||||||||||||
Declaration: | ||||||||||||||||
--procedure item_assign ( - item_id in cr_items.item_id%TYPE, - keyword_id in cr_keywords.keyword_id%TYPE, - context_id in acs_objects.context_id%TYPE default null, - creation_user in acs_objects.creation_user%TYPE default null, - creation_ip in acs_objects.creation_ip%TYPE default null -); - -- | ||||||||||||||||
See Also: | acs_rel.new, content_keyword.item_unassign |
- -
-
Unassigns this keyword to a content item, removing a relationship between them -
- -Author: | Karl Goldstein | ||||||
---|---|---|---|---|---|---|---|
Parameters: | |||||||
-
- - |
- |||||||
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 |
- -
-
Sets a new description for the keyword -
- -Author: | Karl Goldstein | ||||||
---|---|---|---|---|---|---|---|
Parameters: | |||||||
-
- - |
- |||||||
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 |
- -
-
Sets a new heading for the keyword -
- -Author: | Karl Goldstein | ||||||
---|---|---|---|---|---|---|---|
Parameters: | |||||||
-
- - |
- |||||||
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 |
-
- - -Last Modified: $Id$ - - - + + +
+Content Repository : content_keyword +
+ + +
Keyword cassify a content_item. For example: If you have some press releases about dogs. +You might want assigning the Keyword dog to every single content_item. +
++ +
+ + +
Retrieves the description of the content keyword +
+ +Author: | Karl Goldstein | |||
---|---|---|---|---|
Returns: | The description for the specified keyword | |||
Parameters: | ||||
+
+ + |
+ ||||
Declaration: | ||||
++function get_description ( + keyword_id in cr_keywords.keyword_id%TYPE +) return varchar2; + ++ | ||||
See Also: | content_keyword.get_heading, content_keyword.set_description |
+ +
+
Retrieves the heading of the content keyword +
+ +Author: | Karl Goldstein | |||
---|---|---|---|---|
Returns: | The heading for the specified keyword | |||
Parameters: | ||||
+
+ + |
+ ||||
Declaration: | ||||
++function get_heading ( + keyword_id in cr_keywords.keyword_id%TYPE +) return varchar2; + ++ | ||||
See Also: | content_keyword.set_heading, content_keyword.get_description |
+ +
+
Retreives a path to the keyword/subject category, with the most general +category at the root of the path +
+ +Author: | Karl Goldstein | |||
---|---|---|---|---|
Returns: | The path to the keyword, or null if no such keyword exists | |||
Parameters: | ||||
+
+ + |
+ ||||
Declaration: | ||||
++function get_path ( + keyword_id in cr_keywords.keyword_id%TYPE +) return varchar2; + ++ | ||||
See Also: | content_keyword.new |
+ +
+
Determines if the keyword is assigned to the item +
+ +Author: | Karl Goldstein | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Returns: | 't' if the keyword may be matched to an item, 'f' otherwise | |||||||||
Parameters: | ||||||||||
+
+ + |
+ ||||||||||
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 |
+ +
+
Determines if the keyword has no sub-keywords associated with it +
+ +Author: | Karl Goldstein | |||
---|---|---|---|---|
Returns: | 't' if the keyword has no descendants, 'f' otherwise | |||
Parameters: | ||||
+
+ + |
+ ||||
Declaration: | ||||
++function is_leaf ( + keyword_id in cr_keywords.keyword_id%TYPE +) return varchar2; + ++ | ||||
See Also: | content_keyword.new |
+ +
+
Creates a new keyword (also known as "subject category"). +
+ +Author: | Karl Goldstein | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns: | The id of the newly created keyword | ||||||||||||||||||||||||
Parameters: | |||||||||||||||||||||||||
+
+ + |
+ |||||||||||||||||||||||||
Declaration: | |||||||||||||||||||||||||
++function new ( + heading in cr_keywords.heading%TYPE, + description in cr_keywords.description%TYPE default null, + parent_id in cr_keywords.parent_id%TYPE default null, + keyword_id in cr_keywords.keyword_id%TYPE default null, + creation_date in acs_objects.creation_date%TYPE + default sysdate, + creation_user in acs_objects.creation_user%TYPE + default null, + creation_ip in acs_objects.creation_ip%TYPE default null, + 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 |
+ +
+
Deletes the specified keyword, which must be a leaf. Unassigns the +keyword from all content items. Use with caution - this +operation cannot be undone. +
+ +Author: | Karl Goldstein | |||
---|---|---|---|---|
Parameters: | ||||
+
+ + |
+ ||||
Declaration: | ||||
++procedure delete ( + keyword_id in cr_keywords.keyword_id%TYPE +); + ++ | ||||
See Also: | acs_object.delete, content_keyword.item_unassign |
+ +
+
Assigns this keyword to a content item, creating a relationship between them +
+ +Author: | Karl Goldstein | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters: | ||||||||||||||||
+
+ + |
+ ||||||||||||||||
Declaration: | ||||||||||||||||
++procedure item_assign ( + item_id in cr_items.item_id%TYPE, + keyword_id in cr_keywords.keyword_id%TYPE, + context_id in acs_objects.context_id%TYPE default null, + creation_user in acs_objects.creation_user%TYPE default null, + creation_ip in acs_objects.creation_ip%TYPE default null +); + ++ | ||||||||||||||||
See Also: | acs_rel.new, content_keyword.item_unassign |
+ +
+
Unassigns this keyword to a content item, removing a relationship between them +
+ +Author: | Karl Goldstein | ||||||
---|---|---|---|---|---|---|---|
Parameters: | |||||||
+
+ + |
+ |||||||
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 |
+ +
+
Sets a new description for the keyword +
+ +Author: | Karl Goldstein | ||||||
---|---|---|---|---|---|---|---|
Parameters: | |||||||
+
+ + |
+ |||||||
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 |
+ +
+
Sets a new heading for the keyword +
+ +Author: | Karl Goldstein | ||||||
---|---|---|---|---|---|---|---|
Parameters: | |||||||
+
+ + |
+ |||||||
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 |
+
+ + +Last Modified: $Id$ + + +