• Publicity: Public Only All

category-xml-procs.tcl

Procedures for importing/exporting category trees from/to XML documents.

Location:
packages/categories/tcl/category-xml-procs.tcl
Created:
2003-12-02
Author:
Tom Ayles <tom@beatniq.net>
CVS Identification:
$Id: category-xml-procs.tcl,v 1.6.2.1 2019/11/15 08:24:10 gustafn Exp $

Procedures in this file

Detailed information

category_tree::xml::import (public)

 category_tree::xml::import [ -site_wide ] xml

Imports a category tree from an XML representation.

Switches:
-site_wide
(boolean) (optional)
Parameters:
xml - A string containing the source XML to import from
Returns:
The category tree identifier
Author:
Tom Ayles <tom@beatniq.net>

Partial Call Graph (max 5 caller/called nodes):
%3 test_category_tree_import category_tree_import (test categories) category_tree::xml::import category_tree::xml::import test_category_tree_import->category_tree::xml::import category_tree::add category_tree::add (public) category_tree::xml::import->category_tree::add category_tree::update category_tree::update (public) category_tree::xml::import->category_tree::update category_tree::xml::add_category category_tree::xml::add_category (private) category_tree::xml::import->category_tree::xml::add_category db_transaction db_transaction (public) category_tree::xml::import->db_transaction dom dom category_tree::xml::import->dom category_tree::xml::import_from_file category_tree::xml::import_from_file (public) category_tree::xml::import_from_file->category_tree::xml::import

Testcases:
category_tree_import

category_tree::xml::import_from_file (public)

 category_tree::xml::import_from_file [ -site_wide ] file

Imports a category tree from a given file.

Switches:
-site_wide
(boolean) (optional)
Parameters:
file

Partial Call Graph (max 5 caller/called nodes):
%3 test_category_tree_import category_tree_import (test categories) category_tree::xml::import_from_file category_tree::xml::import_from_file test_category_tree_import->category_tree::xml::import_from_file category_tree::xml::import category_tree::xml::import (public) category_tree::xml::import_from_file->category_tree::xml::import tdom::xmlReadFile tdom::xmlReadFile category_tree::xml::import_from_file->tdom::xmlReadFile install::xml::action::load-categories install::xml::action::load-categories (public) install::xml::action::load-categories->category_tree::xml::import_from_file

Testcases:
category_tree_import
[ show source ]