Index: openacs-4/packages/acs-content-repository/www/doc/api/folder.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/www/doc/api/folder.adp,v diff -u -r1.2.2.3 -r1.2.2.4 --- openacs-4/packages/acs-content-repository/www/doc/api/folder.adp 9 Jun 2016 08:44:49 -0000 1.2.2.3 +++ openacs-4/packages/acs-content-repository/www/doc/api/folder.adp 1 Jul 2016 09:17:32 -0000 1.2.2.4 @@ -15,10 +15,11 @@
Content folders contain related content items and allow content managers to group content as they see fit. Within a content folder, content items must have unique names since this is where they will -be served from. For example within the folder "movies" (served from -"/movies") all items must have unique names, such as: "terminator," -"terminator2" (served from "/movies/terminator, -"/movies/terminator2" respectively).
+be served from. For example within the folder "movies" +(served from "/movies") all items must have unique names, +such as: "terminator," "terminator2" (served +from "/movies/terminator, "/movies/terminator2" +respectively).
folder_id The: folder id -
+
function get_index_page ( folder_id in cr_folders.folder_id%TYPE ) return cr_items.item_id%TYPE; -
folder_id: The folder id -
+
function get_label ( folder_id in cr_folders.folder_id%TYPE ) return cr_folders.label%TYPE; -
folder_id: The folder id -
+
function is_empty ( folder_id in cr_folders.folder_id%TYPE ) return varchar2; -
@@ -88,15 +89,16 @@
item_id: The item id -
+
function is_folder ( item_id in cr_items.item_id%TYPE ) return char; -
@@ -108,53 +110,55 @@
folder_id: The folder id content_type: The content type to be checked - -include_subtypes: If 't', all subtypes of the content_type will be -checked, returning 't' if all of them are registered. If 'f', only -an exact match with content_type will be performed. +include_subtypes: If 't', all subtypes of the content_type +will be checked, returning 't' if all of them are +registered. If 'f', only an exact match with +content_type will be performed.
+
function is_registered ( folder_id in cr_folders.folder_id%TYPE, content_type in cr_folder_type_map.content_type%TYPE, include_subtypes in varchar2 default 'f' ) return varchar2; -
Determine if the item target_folder_id is a subfolder -of the item folder_id +
Determine if the item target_folder_id is a subfolder +of the item folder_id
Author: | Karl Goldstein | ||||||
---|---|---|---|---|---|---|---|
Returns: | 't' if the item target_folder_id is a -subfolder of the item folder_id, 'f' otherwise | +Returns: | 't' if the item +target_folder_id is a subfolder of the item +folder_id, 'f' otherwise | ||||
Parameters: | |||||||
| |||||||
Declaration: | |||||||
+ |
function is_sub_folder ( folder_id in cr_folders.folder_id%TYPE, target_folder_id in cr_folders.folder_id%TYPE ) return char; -
@@ -179,16 +183,16 @@
+
function new ( name in cr_items.name%TYPE, label in cr_folders.label%TYPE, @@ -202,7 +206,7 @@ creation_ip in acs_objects.creation_ip%TYPE default null ) return cr_folders.folder_id%TYPE; -
@@ -220,13 +224,13 @@
+
procedure copy ( folder_id in cr_folders.folder_id%TYPE, target_folder_id in cr_folders.folder_id%TYPE ); -
@@ -238,12 +242,12 @@
folder_id: The id of the folder to delete -
+
procedure delete ( folder_id in cr_folders.folder_id%TYPE ); -
@@ -261,13 +265,13 @@
+
procedure move ( folder_id in cr_folders.folder_id%TYPE, target_folder_id in cr_folders.folder_id%TYPE ); -
@@ -285,14 +289,14 @@
+
procedure register_content_type ( folder_id in cr_folders.folder_id%TYPE, content_type in cr_folder_type_map.content_type%TYPE, include_subtypes in varchar2 default 'f' ); -
+
procedure rename ( folder_id in cr_folders.folder_id%TYPE, name in cr_items.name%TYPE default null, label in cr_folders.label%TYPE default null, description in cr_folders.description%TYPE default null ); -
@@ -343,17 +347,17 @@
+
procedure unregister_content_type ( folder_id in cr_folders.folder_id%TYPE, content_type in cr_folder_type_map.content_type%TYPE, include_subtypes in varchar2 default 'f' ); -
-Last Modified: $Id: folder.html,v 1.2.18.1 2016/06/09 08:21:01 +Last Modified: $Id: folder.html,v 1.2.18.2 2016/06/22 07:40:41 gustafn Exp $