- Publicity: Public Only All
xowiki-form-procs.tcl
XoWiki - form classes
- Location:
- packages/xowiki/tcl/xowiki-form-procs.tcl
- Created:
- 2006-04-10
- Author:
- Gustaf Neumann
- CVS Identification:
$Id: xowiki-form-procs.tcl,v 1.151 2026/11/13 17:06:07 gustafn Exp $
Procedures in this file
- xowiki::guesstype (public)
- xowiki::locales (private)
- xowiki::page_templates (private)
- xowiki::validate_form_field (private)
- xowiki::validate_name (private)
Detailed information
xowiki::guesstype (public)
xowiki::guesstype fn
Determine a MIME type using ns_guesstype and fall back to extension matching when it returns a generic type.
- Parameters:
- fn (required)
- Filename or path.
- Returns:
- The MIME type, defaulting to application/octet-stream.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
xowiki::locales (private)
xowiki::locales
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- xowiki_test_cases
xowiki::page_templates (private)
xowiki::page_templates
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
xowiki::validate_form_field (private)
xowiki::validate_form_field field_name
Validate a caller's field value using the active WikiForm field object. Report any validation error to the user.
- Parameters:
- field_name (required)
- Name of the form field and its value variable.
- Returns:
- 1 on success, or 0 on validation failure.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
xowiki::validate_name (private)
xowiki::validate_name [ data ]
Validate and normalize the name in the caller's name variable. Apply language and file naming rules and resolve eligible autoname collisions.
- Parameters:
- data (optional)
- Page object, or empty to use the active WikiForm data.
- Returns:
- 1 if the resulting name is valid, or 0 otherwise.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.