- Publicity: Public Only All
richtext-or-file-procs.tcl
Rich text input widget and datatype for OpenACS templating system.
- Location:
- packages/acs-templating/tcl/richtext-or-file-procs.tcl
- Created:
- 2003-01-27
- Author:
- Lars Pind <lars@pinds.com>
- CVS Identification:
$Id: richtext-or-file-procs.tcl,v 1.15 2024/09/11 06:15:48 gustafn Exp $
Procedures in this file
- template::data::transform::richtext_or_file (public)
- template::data::validate::richtext_or_file (public)
- template::util::richtext_or_file (public)
- template::util::richtext_or_file::acquire (public)
- template::util::richtext_or_file::create (public)
- template::util::richtext_or_file::format_options (public)
- template::util::richtext_or_file::formats (public)
- template::util::richtext_or_file::get_property (public)
- template::util::richtext_or_file::set_property (public)
- template::widget::richtext_or_file (public)
Detailed information
template::data::transform::richtext_or_file (public)
template::data::transform::richtext_or_file element_ref
Transform submitted data into a valid richtext_or_file data structure (list)
- Parameters:
- element_ref (required)
- Reference variable to the form element
- Returns:
- Submitted data in the richtext_or_datafile list form
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
template::data::validate::richtext_or_file (public)
template::data::validate::richtext_or_file value_ref message_ref
Validate submitted richtext_or_file by checking that the format is valid, HTML doesn't contain illegal tags, etc.
- Parameters:
- value_ref (required)
- Reference variable to the submitted value
- message_ref (required)
- Reference variable for returning an error message
- Returns:
- True (1) if the submitted value is valid, false (0) otherwise
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
template::util::richtext_or_file (public)
template::util::richtext_or_file command [ args... ]
Dispatch procedure for the richtext_or_file object
- Parameters:
- command (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
template::util::richtext_or_file::acquire (public)
template::util::richtext_or_file::acquire type [ value ]
Create a new richtext_or_file value with some predefined value Basically, create and set the richtext_or_file value
- Parameters:
- type (required)
- value (optional)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
template::util::richtext_or_file::create (public)
template::util::richtext_or_file::create [ storage_type ] \ [ mime_type ] [ text ] [ filename ] [ tmp_filename ] \ [ content_url ]
Create a richtext_or_file datastructure.
- Parameters:
- storage_type (optional)
- mime_type (optional)
- text (optional)
- filename (optional)
- tmp_filename (optional)
- content_url (optional)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
template::util::richtext_or_file::format_options (public)
template::util::richtext_or_file::format_options
Returns a formatting option list
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
template::util::richtext_or_file::formats (public)
template::util::richtext_or_file::formats
Returns a list of valid richtext_or_file formats
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
template::util::richtext_or_file::get_property (public)
template::util::richtext_or_file::get_property what \ richtext_or_file_list
Get a property of the richtext_or_file datatype. Valid properties are:
- storage_type
- mime_type
- text
- filename
- tmp_filename
- content_url
- Parameters:
- what (required)
- richtext_or_file_list (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
template::util::richtext_or_file::set_property (public)
template::util::richtext_or_file::set_property what \ richtext_or_file_list value
Set a property of the richtext_or_file datatype. Valid properties are:
- storage_type
- mime_type
- text
- filename
- tmp_filename
- content_url
- Parameters:
- what (required)
- richtext_or_file_list (required)
- value (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
template::widget::richtext_or_file (public)
template::widget::richtext_or_file element_reference tag_attributes
Render a richtext_or_file widget
- Parameters:
- element_reference (required)
- Reference variable to the form element
- tag_attributes (required)
- Attributes to include in the generated HTML
- Returns:
- Form HTML for the widget
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.