Home
The Toolkit for Online Communities
15902 Community Members, 1 member online, 2264 visitors today
Log In Register

richtext-or-file-procs.tcl

OpenACS Home : ACS API Browser : ACS Templating 5.5.1 : richtext-or-file-procs.tcl
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.5 2007/11/21 14:08:44 emmar Exp $

Procedures in this file

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 - Reference variable to the form element
Returns:
Submitted data in the richtext_or_datafile list form
 

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 - Reference variable to the submitted value
message_ref - Reference variable for returning an error message
Returns:
True (1) if the submitted value is valid, false (0) otherwise
 

template::util::richtext_or_file (public)

template::util::richtext_or_file command [ args... ]
Dispatch procedure for the richtext_or_file object

Parameters:
command
 

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
value (optional)
 

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)
 

template::util::richtext_or_file::format_options (public)

template::util::richtext_or_file::format_options
Returns a formatting option list

 

template::util::richtext_or_file::formats (public)

template::util::richtext_or_file::formats
Returns a list of valid richtext_or_file formats

 

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 proerties are:
  • storage_type
  • mime_type
  • text
  • filename
  • tmp_filename
  • content_url

Parameters:
what
richtext_or_file_list
 

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 proerties are:
  • storage_type
  • mime_type
  • text
  • filename
  • tmp_filename
  • content_url

Parameters:
what
richtext_or_file_list
value
 

template::widget::richtext_or_file (public)

template::widget::richtext_or_file element_reference tag_attributes
Render a richtext_or_file widget

Parameters:
element_reference - Reference variable to the form element
tag_attributes - Attributes to include in the generated HTML
Returns:
Form HTML for the widget