• Publicity: Public Only All

category-form-procs.tcl

Procs for the integration in ad_form of the site-wide categorization package.

Location:
packages/categories/tcl/category-form-procs.tcl
Created:
06 February 2004
Author:
Branimir Dolicki <bdolicki@branimir.com>
CVS Identification:
$Id: category-form-procs.tcl,v 1.8.2.2 2019/11/29 14:32:04 antoniop Exp $

Procedures in this file

Detailed information

category::ad_form::add_widgets (public)

 category::ad_form::add_widgets \
    -container_object_id container_object_id \
    [ -categorized_object_id categorized_object_id ] \
    -form_name form_name [ -element_name element_name ] \
    [ -excluded_trees excluded_trees ] [ -help_text help_text ]

For each category tree associated with this container_object_id (usually package_id) put a category widget into the ad_form. On form submission the procedure category::ad_form::get_categories should be called to collect the categories in which this object belongs.

Switches:
-container_object_id (required)
-categorized_object_id (optional)
-form_name (required)
-element_name (optional, defaults to "category_id")
-excluded_trees (optional)
-help_text (optional)
Author:
Branimir Dolicki <bdolicki@branimir.com>

Partial Call Graph (max 5 caller/called nodes):
%3 Class ::Generic::Form Class ::Generic::Form (public) category::ad_form::add_widgets category::ad_form::add_widgets Class ::Generic::Form->category::ad_form::add_widgets Generic::Form instproc generate Generic::Form instproc generate (public) Generic::Form instproc generate->category::ad_form::add_widgets packages/categories/lib/categorize.tcl packages/categories/ lib/categorize.tcl packages/categories/lib/categorize.tcl->category::ad_form::add_widgets packages/categories/lib/map.tcl packages/categories/ lib/map.tcl packages/categories/lib/map.tcl->category::ad_form::add_widgets packages/faq/www/admin/q-and-a-add-edit.tcl packages/faq/ www/admin/q-and-a-add-edit.tcl packages/faq/www/admin/q-and-a-add-edit.tcl->category::ad_form::add_widgets ad_form ad_form (public) category::ad_form::add_widgets->ad_form category_tree::get_mapped_trees category_tree::get_mapped_trees (public) category::ad_form::add_widgets->category_tree::get_mapped_trees

Testcases:
No testcase defined.

category::ad_form::fill_widgets (public)

 category::ad_form::fill_widgets \
    -container_object_id container_object_id \
    [ -categorized_object_id categorized_object_id ] \
    [ -element_name element_name ]

Reads mapped categories values from categorized object and sets them into its auto-generated category form widgets. To be used in the -edit_request clause of ad_form.

Switches:
-container_object_id (required)
-categorized_object_id (optional)
-element_name (optional, defaults to "category_id")
Author:
Antonio Pisano <antonio@elettrotecnica.it>

Partial Call Graph (max 5 caller/called nodes):
%3 Class ::Generic::Form Class ::Generic::Form (public) category::ad_form::fill_widgets category::ad_form::fill_widgets Class ::Generic::Form->category::ad_form::fill_widgets Generic::Form instproc generate Generic::Form instproc generate (public) Generic::Form instproc generate->category::ad_form::fill_widgets category::get_mapped_categories category::get_mapped_categories (public) category::ad_form::fill_widgets->category::get_mapped_categories category_tree::get_mapped_trees category_tree::get_mapped_trees (public) category::ad_form::fill_widgets->category_tree::get_mapped_trees template::adp_level template::adp_level (public) category::ad_form::fill_widgets->template::adp_level

Testcases:
No testcase defined.

category::ad_form::get_categories (public)

 category::ad_form::get_categories \
    -container_object_id container_object_id \
    [ -element_name element_name ]

Collects categories from the category widget in the format compatible with category::add_ad_form_elements. To be used in the -on_submit clause of ad_form.

Switches:
-container_object_id (required)
-element_name (optional, defaults to "category_id")
Author:
Branimir Dolicki <bdolicki@branimir.com>

Partial Call Graph (max 5 caller/called nodes):
%3 Class ::Generic::Form Class ::Generic::Form (public) category::ad_form::get_categories category::ad_form::get_categories Class ::Generic::Form->category::ad_form::get_categories Generic::Form instproc generate Generic::Form instproc generate (public) Generic::Form instproc generate->category::ad_form::get_categories packages/categories/lib/map.tcl packages/categories/ lib/map.tcl packages/categories/lib/map.tcl->category::ad_form::get_categories packages/faq/www/admin/q-and-a-add-edit.tcl packages/faq/ www/admin/q-and-a-add-edit.tcl packages/faq/www/admin/q-and-a-add-edit.tcl->category::ad_form::get_categories packages/file-storage/www/file-add.tcl packages/file-storage/ www/file-add.tcl packages/file-storage/www/file-add.tcl->category::ad_form::get_categories category_tree::get_mapped_trees category_tree::get_mapped_trees (public) category::ad_form::get_categories->category_tree::get_mapped_trees template::adp_level template::adp_level (public) category::ad_form::get_categories->template::adp_level

Testcases:
No testcase defined.
[ show source ]