| Publicity: |
|---|
| [Public Only | All] |
stack_dump (public)stack_dump return the whole call stack as HTML |
stack_frame_values (public)stack_frame_values level return the variables and arrays of one frame as HTML |
template::get_resource_path (public)template::get_resource_path Get the template directory The body is doublequoted, so it is interpreted when this file is read |
template::util::array_to_vars (public)template::util::array_to_vars arrayname Declare local variables for every key in an array. |
template::util::clear_cookie (public)template::util::clear_cookie name [ domain ] Expires an existing cookie. |
template::util::get_cookie (public)template::util::get_cookie name [ default_value ] Retrieve the value of a cookie and return it Return the default if no such cookie exists |
template::util::get_opts (public)template::util::get_opts argv Builds an array named "opts" in the calling frame, containing all switches passed at the end of a proc. The array values are either switch parameters or 1 if no parameter was specified. Problem: there is currently no way to specify an option parameter that begins with a dash. This particularly problematic for negative numbers. |
template::util::get_param (public)template::util::get_param name [ section ] [ key ] Retreive a stored parameter, or "" if no such parameter If section/key are present, read the parameter from the specified section.key in the INI file, and cache them under the given name |
template::util::get_url_directory (public)template::util::get_url_directory url Get the directory portion of a URL. If the URL has a trailing slash, then return the entire URL. |
template::util::is_nil (public)template::util::is_nil ref Determines whether a variable both exists and is not an empty string. |
template::util::is_true (public)template::util::is_true x interprets its argument as a boolean. |
template::util::is_unique (public)template::util::is_unique table columns values Queries a database table for the existence of a particular row. Useful for validating form input to reduce the possibility of unique constraint violations. |
template::util::list_of_lists_to_array (public)template::util::list_of_lists_to_array lists array_ref Converts a list of lists in the form { { key value } { key value } ... } to an array. |
template::util::list_of_ns_sets_to_multirow (public)template::util::list_of_ns_sets_to_multirow -rows rows \
-var_name var_name [ -level level ]
Transform a list of ns_sets (most likely produced by db_list_of_ns_sets into a multirow datasource. |
template::util::list_opts (public)template::util::list_opts [ array_ref ] Converts an array to an option list |
template::util::list_to_array (public)template::util::list_to_array values array_ref columns Converts a list of values into an array, using a list of corresponding column names for the array keys. |
template::util::list_to_lookup (public)template::util::list_to_lookup values array_ref Turn a list into an array where each key corresponds to an element of the list... Sort of like a sparse bitmap. Each value corresponds to the key's position in the input list. |
template::util::list_to_multirow (public)template::util::list_to_multirow name rows [ level ] populate a multirow data source from a list string gotten from a call to template::util::multirow_to_list |
template::util::lnest (public)template::util::lnest listref value next [ args... ] Recursive procedure for building a hierarchical or multidimensional data structure in a list. |
template::util::lpop (public)template::util::lpop ref Removes the last item from a list. The operation is performed in-place, rather than returning the new list. |
template::util::multirow_foreach (public)template::util::multirow_foreach name code_text Deprecated. |
template::util::multirow_quote_html (public)template::util::multirow_quote_html multirow_ref column_ref implements template::util::quote_html on the designated column of a multirow |
template::util::multirow_to_list (public)template::util::multirow_to_list [ -level level ] name generate a list structure representitive of a multirow data source NB: if the multirow is generated by db_multirow, db_multirow must be called with the -local option |
template::util::number_list (public)template::util::number_list last_number [ start_at ] Return a list of numbers, {1 2 3 ... n} |
template::util::nvl (public)template::util::nvl value value_if_null Analogous to SQL NVL |
template::util::quote_html (public)template::util::quote_html html Quote possible HTML tags in the contents of the html parameter. |
template::util::read_file (public)template::util::read_file path Reads a text file. |
template::util::resolve_directory_url (public)template::util::resolve_directory_url url Resolve the file name for a directory URL |
template::util::set_cookie (public)template::util::set_cookie expire_state name value [ domain ] Create a cookie with specified parameters. The expiration state may be persistent, session, or a number of minutes from the current time. |
template::util::set_file_encoding (public)template::util::set_file_encoding file_channel_id Set encoding of the given file channel based on the OutputCharset parameter of AOLserver. All adp, tcl, and txt files are assumed to be in the same charset. |
template::util::set_param (public)template::util::set_param name value Set a stored parameter |
template::util::set_to_list (public)template::util::set_to_list set [ args... ] Turns an ns_set into a key-value list, excluding any number of specified keys. Useful for turning the contents on an ns_set into a form that may be cached or manipulated as a native Tcl data structure. |
template::util::set_to_vars (public)template::util::set_to_vars set [ args... ] Declare local variables for set values |
template::util::tcl_to_sql_list (public)template::util::tcl_to_sql_list lst Convert a TCL list to a SQL list, for use with the "in" statement. Uses DoubleApos (similar to ns_dbquotevalue) functionality to escape single quotes |
template::util::url_to_file (public)template::util::url_to_file url [ reference_url ] Resolve a URL into an absolute file path. |
template::util::vars_to_array (public)template::util::vars_to_array arrayname [ args... ] Place local variables into an array |
template::util::write_file (public)template::util::write_file path text Writes a text file |