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

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):
packages/xowiki/www/ckeditor-images/upload_image.tcl packages/xowiki/ www/ckeditor-images/upload_image.tcl xowiki::guesstype xowiki::guesstype packages/xowiki/www/ckeditor-images/upload_image.tcl->xowiki::guesstype xowiki::Page instproc create_link xowiki::Page instproc create_link xowiki::Page instproc create_link->xowiki::guesstype xowiki::test::require_page xowiki::test::require_page (private) xowiki::test::require_page->xowiki::guesstype ad_file ad_file (public) xowiki::guesstype->ad_file

Testcases:
No testcase defined.

xowiki::locales (private)

 xowiki::locales

Partial Call Graph (max 5 caller/called nodes):
test_xowiki_test_cases xowiki_test_cases (test xowiki) xowiki::locales xowiki::locales test_xowiki_test_cases->xowiki::locales lang::conn::locale lang::conn::locale (public) xowiki::locales->lang::conn::locale lang::system::get_locales lang::system::get_locales (public) xowiki::locales->lang::system::get_locales Class ::xowiki::formfield::localized_text Class ::xowiki::formfield::localized_text (public) Class ::xowiki::formfield::localized_text->xowiki::locales

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):
Class ::xowiki::WikiForm Class ::xowiki::WikiForm (public) xowiki::validate_form_field xowiki::validate_form_field Class ::xowiki::WikiForm->xowiki::validate_form_field util_user_message util_user_message (public) xowiki::validate_form_field->util_user_message

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):
Class ::xowiki::WikiForm Class ::xowiki::WikiForm (public) xowiki::validate_name xowiki::validate_name Class ::xowiki::WikiForm->xowiki::validate_name export_vars export_vars (public) xowiki::validate_name->export_vars lang::system::get_locales lang::system::get_locales (public) xowiki::validate_name->lang::system::get_locales util_user_message util_user_message (public) xowiki::validate_name->util_user_message

Testcases:
No testcase defined.
[ show source ]