Index: openacs-4/packages/acs-content-repository/www/doc/api/item.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/www/doc/api/item.adp,v diff -u -r1.2.2.8 -r1.2.2.9 --- openacs-4/packages/acs-content-repository/www/doc/api/item.adp 1 Dec 2015 11:17:40 -0000 1.2.2.8 +++ openacs-4/packages/acs-content-repository/www/doc/api/item.adp 9 Jun 2016 08:44:49 -0000 1.2.2.9 @@ -27,12 +27,11 @@ See also: content_revision, content_folder
Retrieve the content type of this item. Only objects of this -type may be used as revisions for the item.
-Author: | Karl Goldstein |
---|---|
-
Retrieve the parent of the given item
-+
Retrieve the parent of the given item
Author: | Karl Goldstein |
---|---|
-
+
Takes in a path, such as "/tv/programs/star_trek/episode_203" and returns the id of the item with this path. Note: URLs are abstract (no extensions are allowed in content item names and -extensions are stripped when looking up content items)
-Author: | Karl Goldstein |
---|---|
See Also: | content_item.get_path |
-
+
Retrieves the id of the latest revision for the item (as opposed -to the live revision)
-Author: | Karl Goldstein |
---|---|
See Also: | content_item.get_live_revision |
-
Retrieves the id of the live revision for the item
-Note that this function does nothing else besides retrieving the +
+
Retrieves the id of the live revision for the item
Note that this function does nothing else besides retrieving the
value of the column cr_items.live_revision
. It is thus
more efficient in many cases to join against cr_items
-and retrieve the value directly.
Returns: | The id of the live revision for this item, or null if no live revision exists | @@ -141,13 +130,10 @@See Also: | content_item.set_live_revision, content_item.get_latest_revision |
---|
-
Get the parent folder.
-+
Get the parent folder.
Author: | Michael Pih |
---|---|
-
+
Retrieves the full path to an item, in the form of -"/tv/programs/star_trek/episode_203"
-Author: | Karl Goldstein |
---|---|
See Also: | content_item.get_id, content_item.write_to_file |
-
Retrieves the publish date for the item
-+
Retrieves the publish date for the item
Author: | Karl Goldstein |
---|---|
See Also: | content_item.get_live_revision, content_item.get_latest_revision, |
-
+
Return the total count of revisions for this item
-Author: | Karl Goldstein |
---|---|
See Also: | content_revision.new |
-
+
Parameters: | |
---|---|
Not yet documented | |
Declaration: | |
function get_root_folder return cr_folders.folder_id%TYPE; |
-
+
Retrieves the template which should be used to render this item. If no template is registered to specifically render the item in the given context, the default template for the item's type is -returned.
-Author: | Karl Goldstein |
---|---|
See Also: | content_type.register_template, content_item.register_template, |
-
+
Retrieves the title for the item, using either the latest or the live revision. If the specified item is in fact a folder, return the folder's label. In addition, this function will automatically -resolve symlinks.
-Author: | Karl Goldstein |
---|---|
See Also: | content_item.get_live_revision, content_item.get_latest_revision, content_symlink.resolve |
-
+
Retrieves the virtual path to an item, in the form of -"/tv/programs/star_trek/episode_203"
-Author: | Michael Pih |
---|---|
See Also: | content_item.get_id, content_item.write_to_file, content_item.get_path |
-
+
Determine if the item is an index page for the specified folder. The item is an index page for the folder if it exists in the folder -and its item name is "index".
-Author: | Karl Goldstein |
---|---|
See Also: | content_folder.get_index_page |
-
+
Determines if an item is publishable. Publishable items must meet the following criteria: 1) for each child type, the item has n children, min_n < n < max_n 2) for each relation type, the item has n relations, min_n < n < max_n 3) any -'publishing_wf' workflows are finished
-Author: | Michael Pih |
---|---|
-
+
Determines if one type is a subclass of another. A class is -always a subclass of itself.
-Author: | Karl Goldstein |
---|---|
See Also: | acs_object_type.create_type |
-
+
Determines if an item would be a valid child of another item by checking if the parent allows children of the would-be child's content type and if the parent already has n_max children of that -content type.
-Author: | Michael Pih |
---|---|
-
+
Creates a new content item. If the data, title or text parameters are specified, also creates a revision -for the item.
-Author: | Karl Goldstein |
---|---|
See Also: | acs_object.new |
-
+
Parameters: | |
---|---|
Not yet documented | |
Declaration: | |
function relate ( @@ -554,15 +510,13 @@ ) return cr_item_rels.rel_id%TYPE; |
-
+
Copies the item to a new location, creating an identical item with no revisions or associated workflow. If the target folder does not exist, or if the folder already contains an item with the same -name as the given item, an error will be thrown.
-Author: | Karl Goldstein | ||
---|---|---|---|
Parameters: | |||
|
+
Deletes the specified content item, along with any revisions, symlinks, workflows, and template relations for the item. Use with -caution - this operation cannot be undone.
-Author: | Karl Goldstein | ||
---|---|---|---|
Parameters: | |||
|
+
Move the specified item to a different folder. If the target folder does not exist, or if the folder already contains an item -with the same name as the given item, an error will be thrown.
-Author: | Karl Goldstein | ||
---|---|---|---|
Parameters: | |||
|
+
Registers a template which will be used to render this item.
-Author: | Karl Goldstein | ||
---|---|---|---|
Parameters: | |||
|
+
Renames the item. If an item with the specified name already -exists under this item's parent, an error is thrown
-Author: | Karl Goldstein | ||
---|---|---|---|
Parameters: | |||
|
+
Make the specified revision the live revision for the item
-Author: | Karl Goldstein | ||
---|---|---|---|
Parameters: | |||
|
+
Sets the release period for the item. This information may be used by applications to update the publishing status of items at -periodic intervals.
-Author: | Karl Goldstein |
---|---|
Parameters: | |
|
+
Unregisters a template which will be used to render this -item.
-Author: | Karl Goldstein | ||
---|---|---|---|
Parameters: | |||
|
+
Parameters: | |
---|---|
Not yet documented | |
Declaration: | |
procedure unset_live_revision ( @@ -772,14 +711,11 @@ ); |
-
+
Writes the content of the live revision of this item to a file, -creating all the neccessary directories in the process
-Author: | Karl Goldstein | ||
---|---|---|---|
Parameters: | |||
|