Procedures for generating and processing content content creation and editing forms..
content::add_attribute_element
content::add_attribute_elements
content::add_basic_revision
content::add_child_relation_element
content::add_content
content::add_content_element
content::add_revision
content::add_revision_form
content::copy_content
content::get_attribute_enum_values
content::get_latest_revision
content::get_object_id
content::new_item
content::new_item_form
content::validate_name
* indicates required
Public Methods:content::add_attribute_element | ||||||||
Add a form element (possibly a compound widget) to an ATS form object. for entering or editing an attribute value.
|
content::add_attribute_elements | ||||||
Add form elements to an ATS form object for all attributes of a content type.
|
content::add_basic_revision | ||||||||||||||
Create a basic new revision using the content_revision PL/SQL API.
|
content::add_child_relation_element | ||||||
Add a select box listing all valid child relation tags. The form must contain a parent_id element and a content_type element. If the elements do not exist, or if there are no valid relation tags, this proc does nothing.
|
content::add_content | ||
Update the BLOB column of a revision with content submitted in a form
|
content::add_content_element | ||||
Adds a content input element to an ATS form object.
|
content::add_revision | ||||
Create a new revision for an existing item based on a valid form submission. Queries for attribute names and inserts a row into the attribute input view for the appropriate content type. Inserts the contents of a file into the content column of the cr_revisions table for the revision as well.
|
content::add_revision_form | ||||||||||||||
Adds elements to an ATS form object for adding a revision to an existing item. If the item already exists, element values default a previous revision (the latest one by default). If the form does not already exist, creates the form object and sets its enctype to multipart/form-data to allow for text entries greater than 4000 characters.
|
content::copy_content | ||||
Update the BLOB column of one revision with the content of another revision
|
content::get_attribute_enum_values | ||
Returns a list of { pretty_name enum_value } for an attribute of datatype enumeration.
|
content::get_latest_revision | ||
Get the ID of the latest revision for the specified content item.
|
content::get_object_id |
Grab an object ID for creating a new ACS object. |
content::new_item | ||||
Create a new item, including the initial revision, based on a valid form submission.
|
content::new_item_form | ||||||||||||||
Adds elements to an ATS form object for creating an item and its initial revision. If the form does not already exist, creates the form object and sets its enctype to multipart/form-data to allow for text entries greater than 4000 characters.
|
content::validate_name | ||
Make sure that name is unique for the folder
|
Private Methods:
content::add_revision_dml | ||||||||
Perform the DML to insert a revision into the appropriate input view.
|
content::attribute_insert_statement | ||||||||
Prepare the insert statement into the attribute input view for a new revision (see the content repository documentation for details about the view).
|
content::get_attribute_params | ||||
Query for parameters associated with a particular attribute
|
content::get_attributes | ||||
Returns columns from the acs_attributes table for all attributes associated with a content type.
|
content::get_default_content_method | ||
Gets the content input method most appropriate for an content type, based on the MIME types that are registered for that content type.
|
content::get_sql_value | ||||
Return the sql statement for a column value in an insert or update statement, using a bind variable for the actual value and wrapping it in a conversion function where appropriate.
|
content::get_type_attribute_params | ||
Query for attribute form metadata
|
content::get_type_info | ||||||
Return specified columns from the acs_object_types table.
|
content::get_widget_param_value | ||||
Utility procedure to return the value of a widget parameter
|
content::prepare_content_file | ||
Looks for an element named { content} in a form and prepares a temporarily file in UTF-8 for uploading to the content repository. Checks for a query variable named { content.tmpfile} to distinguish between file uploads and text entry. If the type of the file is text, then ensures that is in UTF-8. Does nothing if the uploaded file is in binary format.
|
content::set_attribute_values | ||||||||
Set the default values for attribute elements in ATS form object based on a previous revision
|
content::set_content_value | ||||
Set the default value for the content text area in an ATS form object based on a previous revision
|
content::string_to_file | ||
Write a string in UTF-8 encoding to of temp file so it can be uploaded into a BLOB (which is blind to character encodings). Returns the name of the temp file.
|
content::update_content_from_file | ||||
Update the BLOB column of a revision with the contents of a file
|
content::upload_content | ||||||||
Inserts content into the database from an uploaded file. Does automatic mime_type updating Parses text/html content and removes tags
|
* indicates required