Index: openacs-4/packages/acs-templating/tcl/element-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/element-procs.tcl,v diff -u -r1.8 -r1.9 --- openacs-4/packages/acs-templating/tcl/element-procs.tcl 16 Sep 2002 10:56:13 -0000 1.8 +++ openacs-4/packages/acs-templating/tcl/element-procs.tcl 24 Sep 2002 09:06:04 -0000 1.9 @@ -9,9 +9,36 @@ # This is free software distributed under the terms of the GNU Public # License. Full text of the license is available from the GNU Project: # http://www.fsf.org/copyleft/gpl.html +ad_proc -public element { command form_id element_id args } { + form is really template::element although when in + the "template" namespace you may omit the + template:: + @see template::element +} - + ad_proc -public template::element { command form_id element_id args } { + Manage elements of form objects. +

+ see the individual commands for further information. + @param command one of create, error_p, exists, get_property, get_value, + get_values, querygetall, set_error, set_properties, set_value + @param form_id string identifying the form + @param element_id string identifying the element + @see template::element::create + @see template::element::error_p + @see template::element::exists + @see template::element::get_property + @see template::element::get_value + @see template::element::get_values + @see template::element::querygetall + @see template::element::set_error + @see template::element::set_properties + @see template::element::set_value + + @see template::form +} { eval template::element::$command $form_id $element_id $args } Index: openacs-4/packages/acs-templating/tcl/form-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/form-procs.tcl,v diff -u -r1.6 -r1.7 --- openacs-4/packages/acs-templating/tcl/form-procs.tcl 1 Sep 2002 19:09:28 -0000 1.6 +++ openacs-4/packages/acs-templating/tcl/form-procs.tcl 24 Sep 2002 09:06:04 -0000 1.7 @@ -12,8 +12,31 @@ # Commands for managing dynamic templated forms. -ad_proc -public template::form { command args } { +ad_proc -public form {command args} { + form is really template::form although when in + the "template" namespace you may omit the + template:: + @see template::form +} - + +ad_proc -public template::form { command args } { + template::form command invokes form functions. + Please see the individual functions for + their arguments. + + @see template::form::create + @see template::form::exists + @see template::form::export + @see template::form::get_combined_values + @see template::form::get_values + @see template::form::is_request + @see template::form::is_submission + @see template::form::is_valid + @see template::form::section + @see template::form::set_values + @see template::form::size +} { eval template::form::$command $args } Index: openacs-4/packages/acs-templating/tcl/paginator-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/paginator-procs.tcl,v diff -u -r1.8 -r1.9 --- openacs-4/packages/acs-templating/tcl/paginator-procs.tcl 16 Sep 2002 19:40:41 -0000 1.8 +++ openacs-4/packages/acs-templating/tcl/paginator-procs.tcl 24 Sep 2002 09:06:04 -0000 1.9 @@ -10,7 +10,24 @@ # http://www.fsf.org/copyleft/gpl.html ad_proc -public template::paginator { command args } { + pagination object. Please see the individual command for + their arguments. + @see template::paginator + @see template::paginator::create + @see template::paginator::get_context + @see template::paginator::get_data + @see template::paginator::get_display_info + @see template::paginator::get_group + @see template::paginator::get_group_count + @see template::paginator::get_groups + @see template::paginator::get_page + @see template::paginator::get_page_count + @see template::paginator::get_pages + @see template::paginator::get_row + @see template::paginator::get_row_count + @see template::paginator::get_row_ids +} { eval paginator::$command $args } Index: openacs-4/packages/acs-templating/tcl/query-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/query-procs.tcl,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-templating/tcl/query-procs.tcl 15 Sep 2002 22:10:53 -0000 1.10 +++ openacs-4/packages/acs-templating/tcl/query-procs.tcl 24 Sep 2002 09:06:04 -0000 1.11 @@ -589,15 +589,53 @@ } + +ad_proc -public multirow { + {-ulevel 1} + {-local:boolean} + op + name + args +} { + multirow is really template::multirow or possibly + template::query::multirow depending on context. + the "template::" or "template::query::" + may be ommitted depending on what the namespace + is. .tcl pages are evaluated in the template:: + namespace. + + @see template::multirow + @see template::query::multirow +} - + ad_proc -public template::multirow { {-ulevel 1} {-local:boolean} - op + command name args } { - Perform get/set operations on a multirow datasource + Create/Manipulate a multirow datasource (for use with <multiple> tags) +

+
template::multirow create datasourcename column [column ...]
+
creates a multirow datasource of datasourcename
+
template::multirow extend datasourcename column [column ...]
+
extend adds a column to an existing multirow
+
template::multirow append datasourcename value [value ...]
+
appends the row to an existing multirow.
+
template::multirow size datasourcename
+
returns the rowcount
+
template::multirow get datasourcename rownum [column]
+
returns the row of of data (or the particular row/column if column is provided)
+
template::multirow get datasourcename rownum column value
+
set an element value
+
template::multirow foreach datasource code
+
evaluate code block for each row (like db_foreach)
+
template::multirow upvar datasource [new_name]
+
upvar the multirow, aliasing to new_name if provided
+
+ @param local If set, the multirow will be looked for in the scope the number of levels up given by ulevel (normally the caller's scope), @@ -608,21 +646,24 @@ Used in conjunction with the "local" parameter to specify how many levels up the multirow variable resides. - @param op + @param command Multirow datasource operation: create, extend, append, size, get, set, foreach @param name Name of the multirow datasource @param args optional args + + @see db_multirow + @see template::query::multirow } { if { $local_p } { set multirow_level_up $ulevel } else { set multirow_level_up \#[adp_level] } - switch -exact $op { + switch -exact $command { create { upvar $multirow_level_up $name:rowcount rowcount $name:columns columns @@ -768,7 +809,7 @@ } default { - error "Unknown op $op in template::multirow. + error "Unknown command $command in template::multirow. Must be create, extend, append, get, set, size, upvar, or foreach." } }